Query editor
with base as (select-- date_trunc('day', block_time) as dt-- , trader_id-- token_pairproject-- , case when d.trader_id = q.signer then 'bot' else 'person' end as category, approx_distinct(tx_id) as txn_count, sum(amount_usd/1000000) as "USD Volume (Million)", sum(amount_usd/1000000) as "Total USD Volume (Million)"from dex_solana.trades d-- left join query_5679223 q on d.trader_id = q.signerwhere 1=1and amount_usd > 0and block_time >= NOW() - INTERVAL '180' dayand project != 'solfi'group by 1order by 4 desc)select * from baseorder by 4 desclimit 1000