Query editor
with provider_fee as (selectevt_block_time as timestamp,amount / 1e18 as revenue_ethfrom donutcompany_base.miner_evt_miner__providerfeewhere provider = from_hex('0xce70B8b8B61de260E4d22acCe46B0b2baf348BFE')),eth_prices as (selectminute,avg(price) as eth_usdfrom prices.usdwhere blockchain = 'base'and symbol = 'WETH'group by minute)selectdate_trunc('day', p.timestamp) as day,sum(p.revenue_eth * pr.eth_usd) as daily_revenue_usdfrom provider_fee pleft join eth_prices pron date_trunc('minute', p.timestamp) = pr.minutegroup by 1order by 1;