Query editor
SELECTCASEWHEN LOWER(question) LIKE '%trump%' OR LOWER(question) LIKE '%election%' OR LOWER(question) LIKE '%president%' THEN 'Politics'WHEN LOWER(question) LIKE '%bitcoin%' OR LOWER(question) LIKE '%eth%' OR LOWER(question) LIKE '%crypto%' THEN 'Crypto'WHEN LOWER(question) LIKE '%nfl%' OR LOWER(question) LIKE '%nba%' OR LOWER(question) LIKE '%sport%' THEN 'Sports'WHEN LOWER(question) LIKE '%stock%' OR LOWER(question) LIKE '%price%' THEN 'Finance'ELSE 'Other'END as category,COUNT(DISTINCT question) as market_count,SUM(amount) as total_volume_usd,COUNT(*) as trade_countFROM polymarket_polygon.market_tradesWHERE block_time >= CAST('2024-01-01' AS TIMESTAMP)GROUP BY 1ORDER BY total_volume_usd DESC