Query editor
WITHethereum_automation AS (SELECTSUM(usd_amount) AS reward_usd,count(*) as tx_hashFROMchainlink_ethereum.automation_reward_daily daily),avalanche_c_automation AS (SELECTSUM(usd_amount) AS reward_usd,count(*) as tx_hashFROMchainlink_avalanche_c.automation_reward_daily daily),bnb_automation AS (SELECTSUM(usd_amount) AS reward_usd,count(*) as tx_hashFROMchainlink_bnb.automation_reward_daily daily),fantom_automation AS (SELECTSUM(usd_amount) AS reward_usd,count(*) as tx_hashFROMchainlink_fantom.automation_reward_daily daily),polygon_automation AS (SELECTSUM(usd_amount) AS reward_usd,count(*) as tx_hashFROMchainlink_polygon.automation_reward_daily daily),total_automation AS (SELECTSUM(reward_usd) AS reward_usd,sum(tx_hash) as tx_hashFROM(SELECT*FROMethereum_automationUNION ALLSELECT*FROMavalanche_c_automationUNION ALLSELECT*FROMbnb_automationUNION ALLSELECT*FROM