Query editor
with provider_fee as (selectevt_block_time as timestamp,provider,amount/1e18 as revenue_ethfrom donutcompany_base.miner_evt_miner__providerfeewhere provider = from_hex('0x463B1E8E78B28027b423Ea6f00695f01a84EFe72')),eth_prices as (select minute, avg(price) as eth_usdfrom prices.usdwhere blockchain='base' and symbol='WETH'group by minute),provider_usd as (select(p.revenue_eth * pr.eth_usd) as revenue_usdfrom provider_fee pleft join eth_prices pron date_trunc('minute', p.timestamp)=pr.minute)selectsum(revenue_usd) as peeples_donuts_revenue_usdfrom provider_usd;