Query editor
with transfers as (selectsource, destination, block_timefrom ton.messageswhere block_date > TIMESTAMP '2025-01-01'and direction = 'in'union allselectsource, destination, block_timefrom ton.jetton_eventswhere block_date > TIMESTAMP '2025-01-01'and tx_aborted = false), users_first_interacted_with_games as (selecta.address as user_address, min_by(l.name, block_time) as projectfrom ton.accounts ainner join transfers t on t.source = a.addressand abs(date_diff('hour', a.deployment_at, t.block_time)) < 24inner join dune.ton_foundation.dataset_labels l on l.address = t.destinationand l.category = 'gaming'and cardinality(interfaces) = 1and interfaces[1] like 'wallet_%'group by1), marketplaces as (selectname as marketplace_name, address as marketplace_address, subcategoryfrom dune.ton_foundation.dataset_labelswhere tags like '%telegram-gifts%'),gifts_users as (select distinctprev_owner as user_addressfrom ton.nft_eventswhere type = 'sale'and collection_address in (selectcol_addressfrom dune.rdmcd.result_gifts_collection_addresses)union allselect distinctowner_address as user_addressfrom ton.nft_eventswhere type = 'sale'and collection_address in (selectcol_addressfrom dune.rdmcd.result_gifts_collection_addresses)union allselect distinct