Query editor
WITH token_pair as (SELECTtoken_pair, tx_hash, block_dateFROM dex.tradesWHERE project = 'uniswap'AND block_time >= NOW() - INTERVAL '3' MONTH),fees AS (SELECTtx_hash, tx_fee_usdFROM gas.feesWHERE blockchain = 'ethereum'AND block_time >= NOW() - INTERVAL '3' MONTH)SELECTt.token_pair,t.block_date,SUM(f.tx_fee_usd) AS total_gas_fee_usdFROM token_pair tJOIN fees f ON t.tx_hash = f.tx_hashGROUP BY t.token_pair, t.block_dateORDER BY total_gas_fee_usd DESCLIMIT 10