Query editor
-- One month per query to keep every raw-history stage below 120 seconds.-- Aggregate before joining the frozen January entrant cohort.WITH monthly AS (SELECT trader_id AS wallet, min(block_time) AS first_trade,max(block_time) AS last_trade, count(*) AS trade_legsFROM dex_solana.tradesWHERE block_month = DATE '2026-01-01'AND block_date >= DATE '2026-01-01' AND block_date < DATE '2026-02-01'AND block_time >= TIMESTAMP '2026-01-01' AND block_time < TIMESTAMP '2026-02-01'AND varbinary_substring(xxhash64(to_utf8(trader_id)), 1, 1) < 0x02AND (token_bought_mint_address LIKE '%pump' OR token_sold_mint_address LIKE '%pump')GROUP BY 1)SELECT 'Solana memecoins' AS venue, m.wallet, m.first_trade, m.last_trade,m.trade_legs, BIGINT '4096' AS activity_maskFROM monthly mJOIN dune.defiance_cr.dataset_memecoin_expanded_cohort_jan2025_20260905 c ON m.wallet = c.wallet