Query editor
WITH top_pairs AS (SELECT token_pairFROM dex_solana.tradesWHERE block_month >= now() - INTERVAL '3' monthGROUP BY 1ORDER BY SUM(amount_usd) DESCLIMIT 5)SELECTt.block_date, t.token_pair, SUM(t.amount_usd) AS "Volume"FROM dex_solana.trades tINNER JOIN top_pairs tp ON t.token_pair = tp.token_pairWHERE t.block_month >= now() - INTERVAL '3' monthGROUP BY 1, 2ORDER BY 1