Query editor
with dex_trade_transactions as (select distinctblockchain,date_trunc('month', block_date) as month,tx_from as wallet,tx_hashfrom dex.tradeswhere blockchain in ('bnb', 'base', 'robinhood', 'polygon', 'arbitrum')and block_month >= date '2026-01-01'and block_month < date '2026-10-01'and block_date >= date '2026-01-01'and block_date < date '2026-10-01'and tx_from is not nulland tx_hash is not null),qualifying_wallet_months as (select wallet, month, count(*) as dex_trade_transactionsfrom dex_trade_transactionsgroup by 1, 2having count(*) > 5),all_transactions as (select 'bnb' as blockchain, block_time, "from" as wallet, hash as tx_hashfrom bnb.transactionswhere block_date >= date '2026-01-01'and block_date < date '2026-10-01'union allselect 'base' as blockchain, block_time, "from" as wallet, hash as tx_hashfrom base.transactionswhere block_date >= date '2026-01-01'and block_date < date '2026-10-01'union allselect 'robinhood' as blockchain, block_time, "from" as wallet, hash as tx_hashfrom robinhood.transactionswhere block_date >= date '2026-01-01'and block_date < date '2026-10-01'union allselect 'polygon' as blockchain, block_time, "from" as wallet, hash as tx_hashfrom polygon.transactionswhere block_date >= date '2026-01-01'and block_date < date '2026-10-01'union allselect 'arbitrum' as blockchain, block_time, "from" as wallet, hash as tx_hashfrom arbitrum.transactionswhere block_date >= date '2026-01-01'and block_date < date '2026-10-01'),wallet_month_counts as (selectt.wallet,date_trunc('month', t.block_time) as month,count(*) as total_transactionsfrom all_transactions tinner join qualifying_wallet_months qon t.wallet = q.walletand date_trunc('month', t.block_time) = q.monthgroup by 1, 2),active_wallet_months as (select