Query editor
-- cngn_top_pools.sql-- Top cNGN Liquidity Pools by Historical Volume-- Filter: Excludes pools with < $1 Total Volume.SELECTchain,dex,pool_name,pool_address,COUNT(DISTINCT transaction_hash) AS tx_count,SUM(CAST(usd_value AS DOUBLE)) AS total_volume_usd,ROUND(AVG(CAST(usd_value AS DOUBLE)), 2) AS avg_swap_size_usdFROM dune.lavavc_team_2642.result_c_ngn_unified_dex_trading_history_all_chainWHERE usd_value IS NOT NULLGROUP BY 1,2,3,4HAVING SUM(CAST(usd_value AS DOUBLE)) >= 1 -- Keep only relevant pools (>= $1 Volume)ORDER BY total_volume_usd DESC