Query editor
SELECT protocol AS venue, SUM(volume_usd) AS cumulative_volume_usd,SUM(volume_usd)/NULLIF(SUM(SUM(volume_usd)) OVER(),0) AS share_of_total,SUM(swap_events) AS swap_events, MAX(through_date_utc) AS through_date_utcFROM dune.paimonfinance.result_ppoly_market_dailyGROUP BY 1 ORDER BY cumulative_volume_usd DESC