Query editor
SELECTCASE blockchainWHEN 'ethereum' THEN 'L1'ELSE 'L2'END AS chain_type,COUNT(DISTINCT tx_hash) as transactions,SUM(amount_usd) as volume_usd,AVG(amount_usd) as amount_usd_avg,COUNT(DISTINCT tx_from) as swappersFROM dex.trades tradesWHERE blockchain IN ('optimism', 'base', 'arbitrum', 'polygon', 'ethereum', 'bnb', 'avalanche_c', 'celo')AND project = 'uniswap'GROUP BY 1