Query editor
with table1 as (SELECTCOUNT(DISTINCT(tx_from)) as traders,DATE_TRUNC('month', block_time) as monthly,count(tx_hash) as total_swaps,SUM(amount_usd) as Trading_volumeFROM dex.tradesWHEREblockchain = 'sonic' AND project = 'shadow'AND block_time >= DATE '2022-01-01'GROUP BY 2ORDER BY 2 DESC )--GROUP BY 1SELECTmonthly, Trading_volume, total_swaps, tradersFROM table1ORDER BY 1 DESC