Query editor
-- V3: adds artist/festival NFT collection buyers (verified via nft.trades discovery)-- Electronic subset: Aoki (A0K1VERSE + editions), deadmau5 (HEAD5)-- Other music: Snoop (Doggies, Sound, Ape Tracks, GaryVee), KINGSHIP, Deathbats ClubWITH users AS (SELECT DISTINCT address FROM dune.a3f9c2.dataset_dune_upload_evm),electronic_collections AS (SELECT addr FROM (VALUES(0xe4462eb568e2dfbb5b0ca2d3dbb1a35c9aa98aad), -- A0K1VERSE Credits(0x28462739c3eb65a571bf92689e8257c806bd275d), -- A0K1VERSE Passport(0x01ba93514e5eb642ec63e95ef7787b0edd403add), -- Steve Aoki(0xc7170a6c9218bfac05a5cd3d40003b0d04e8750a), -- Steve Aoki Avatars(0xa4d8f0ac7af275f7e87d071ab1bd87a524b0007f), -- Nyan Aoki(0x5a4414b6e4027f7eecee263d74c93c43e7d3cd1c), -- Neon Future OE(0x2af6eb2bfda21572615708532602454e5413bda1), -- Dream Catcher OE(0x208a40d3d8e4d438d95e0647a2e4e0d78e6525b5), -- Goblintown Anthem(0x89d2e41408eacbbcc5eebeffaaa27fd2a01ff88b) -- HEAD5 (polygon)) AS t(addr)),other_music_collections AS (SELECT addr FROM (VALUES(0xc7df86762ba83f2a6197e1ff9bb40ae0f696b9e6), -- The Doggies(0x9f83b08d90eeda539f7e2797fed3f6996917bba8), -- KINGSHIP(0x1d3ada5856b14d9df178ea5cab137d436dc55f1d), -- Deathbats Club(0x37a03d4af1d7046d1126987b20117a0fdcbf6535), -- Snoop on Sound(0x647037de761696d224333778e69082ce3b742242), -- Ape Drops 01(0x52f516a94d0eb5fd8fa628484e864c80bed497e4) -- Step Back) AS t(addr)),artist_nft_buyers AS (SELECTbuyer AS address,MAX(CASE WHEN nft_contract_address IN (SELECT addr FROM electronic_collections) THEN 1 ELSE 0 END) AS electronic_artistFROM nft.tradesWHERE amount_usd > 0AND nft_contract_address IN (SELECT addr FROM electronic_collectionsUNION ALLSELECT addr FROM other_music_collections)GROUP BY 1),sound_collectors AS (SELECT DISTINCT "to" AS address FROM (SELECT "to" FROM sound_xyz_ethereum.soundeditionv1_evt_mintedUNION ALLSELECT "to" FROM sound_xyz_multichain.superminter_evt_mintedUNION ALLSELECT "to" FROM sound_xyz_multichain.superminterv2_evt_mintedUNION ALLSELECT "to" FROM sound_xyz_base.superminterv2_evt_mintedUNION ALLSELECT "to" FROM sound_xyz_multichain.soundeditionv2_1_evt_mintedUNION ALLSELECT "to" FROM sound_xyz_base.soundeditionv2_1_evt_minted