Query editor
withall_traders as (SELECTdate_trunc('week',block_time) as week, tx_signer, sum(amount_usd) as volumeFROM (SELECTtx_signer, tx_id, block_time, max(COALESCE(input_usd,output_usd)) as amount_usdFROm jupiter_solana.aggregator_swapsgroup by 1,2,3)WHERE amount_usd is not nullgroup by 1,2)SELECTweek, casewhen volume < 1e2 then '< $100'when volume >= 1e2 and volume < 1e3 then '< $1,000'when volume >= 1e3 and volume < 1e4 then '< $10,000'when volume >= 1e4 and volume < 1e5 then '< $100,000'when volume >= 1e5 and volume < 1e6 then '< $1,000,000'when volume >= 1e6 then '$1m+'end as trader_bucket, count(*)FROM all_tradersgroup by 1,2