Query editor
with axiom_trades as (selecttrader_id,casewhen token_sold_symbol = 'WSOL' then token_bought_mint_addresselse token_sold_mint_addressend as token_mint,amount_usdfrom dex_solana.tradeswhere block_time > now() - interval '7' dayand trade_source = 'FLASHX8DrLbgeR8FcfNV1F5krxYcYMUdBkrP1EPBtxB9'),token_stats as (selecttoken_mint,count(distinct trader_id) as unique_traders,count(*) as total_trades,sum(amount_usd) as total_volumefrom axiom_tradesgroup by 1)selectcasewhen unique_traders = 1 then 'a_single_wallet'when unique_traders between 2 and 5 then 'b_2_to_5'when unique_traders between 6 and 20 then 'c_6_to_20'when unique_traders between 21 and 100 then 'd_21_to_100'else 'e_100_plus'end as trader_concentration,count(*) as tokens,sum(total_trades) as trades,sum(total_volume) as volume_usd,avg(unique_traders) as avg_traders_per_token,sum(total_volume) / (select sum(total_volume) from token_stats) as volume_sharefrom token_statsgroup by 1order by 1;