Query editor
WITH Ethereum as (SELECTdate_trunc('month', time) AS month,AVG(gas_used) AS avg_gas_used,AVG(size) AS avg_block_sizeFROM ethereum.blocksWHERE time > TIMESTAMP '2022-01-01'GROUP BY 1ORDER BY 1),optimism as (SELECTdate_trunc('month', time) AS month,AVG(gas_used) AS avg_gas_used,AVG(size) AS avg_block_sizeFROM optimism.blocksWHERE time > TIMESTAMP '2022-01-01'GROUP BY 1ORDER BY 1)SELECTa.month as month,a.avg_gas_used as "Ethereum_Gas",b.avg_gas_used as "Optimist_Gas",a.avg_block_size as "Ethereum_Block_size",b.avg_block_size as "Optimist_Block_size"FROM Ethereum aLEFT JOIN optimism b ON a.month = b.monthORDER BY a.month;