Query editor
-- Information Exchange — new wallets per month, by where each wallet first tradedWITH firsts AS (SELECT wallet,min(first_day) AS first_day,min_by(CASE WHEN source = 'Decrypt' THEN 'Decrypt' WHEN segment = 'USD markets' THEN 'Myriad · real-money markets' ELSE 'Myriad · points markets' END, first_day) AS started_onFROM dune.ilanhz.result_information_exchange_walletsGROUP BY 1)SELECT CAST(date_trunc('month', first_day) AS date) AS month, started_on, count(*) AS new_walletsFROM firstsGROUP BY 1, 2ORDER BY 1, 2