Query editor
WITHthirty_day_volume AS (SELECTproject AS "Project",SUM(CAST(amount_usd AS DOUBLE)) AS usd_volumeFROMdex.trades AS tWHEREblock_time > NOW() - INTERVAL '30' dayGROUP BY1)SELECTROW_NUMBER() OVER (ORDER BYSUM(thirty.usd_volume) DESC NULLS FIRST) AS "Rank",thirty."Project",SUM(thirty.usd_volume) AS "30 Day Volume (USD)"FROMthirty_day_volume AS thirtyWHERENOT thirty.usd_volume IS NULLGROUP BY2ORDER BY3 DESC NULLS FIRST