Query editor
with a as(selecttrader_id,sum(amount_usd) as amount,COUNT(DISTINCT tx_id) AS numberOfTrades,COUNT(DISTINCT DATE_TRUNC('day', block_time)) AS numberOfActiveDays,count (DISTINCT tx_id)/COUNT(DISTINCT DATE_TRUNC('day', block_time) ) as TradeRatio,count (distinct token_bought_symbol) as tokens_tradedfrom dex_solana.tradeswhere block_time >= TIMESTAMP '2024-08-01'and block_time <= TIMESTAMP '2024-10-31'--where DATE(block_time) >= NOW() - interval '90' day--and amount_usd >= 10and token_bought_symbol not in ('SOL','USDC','USDT','weth','WBTC', 'JitoSOL','mSOL' , 'stSOL' ,'jito' , 'bSOL' , 'jSOL' , 'scnSOL' ,'mrgnLST','edgeSOL','pwrSOL' ,'superSOL' ,'jucySOL' ,'bonkSOL' ,'driftSOL' ,'compassSOL' ,'heliusSOL' ,'picoSOL' , 'jupSOL','')group by 1)select * from awhere amount >= 140