Published
Edited
Mar 4, 2022
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
db.describe()
Insert cell
db.describe("ghozaliEverydayTransfer20220221")
Insert cell
Insert cell
viewof tableGhozaliEverydayTransfer = Inputs.table(ghozaliEverydayTransfer, {})
Insert cell
Insert cell
viewof table = Inputs.table(owners, {})
Insert cell
owners = db.query(`
WITH latest_block AS (
SELECT token_id, MAX(block_timestamp) AS block_timestamp
FROM ghozaliEverydayTransfer20220221
GROUP BY 1
)
SELECT trf_to AS address,
COUNT(DISTINCT token_id) AS nfts
FROM ghozaliEverydayTransfer20220221
JOIN latest_block USING (block_timestamp, token_id)
GROUP BY 1 ORDER BY 2 DESC
`)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
dbClient.describe()
Insert cell
FileAttachment("bquxjob_25997e28_17f2b7a6067.csv").csv()
Insert cell
import {DuckDBClient} from '@cmudig/duckdb'
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more