Query editor
with protocol_rates as (SELECTdate_trunc('hour', evt_block_time) as ts_hour,avg(POW(10, 12) * CAST(withdrawalAmount as DOUBLE) / CAST(burnedAmount as DOUBLE)) as rateFROM resolv_ethereum.rlpmintandredeemrequests_evt_burnrequestcompletedwhere evt_block_time > cast('2025-08-01' as timestamp)group by 1), dex_rates as (select timestamp as ts_hour,price as ratefrom prices.hourwhere contract_address = 0x4956b52aE2fF65D74CA2d61207523288e4528f96and timestamp > cast('2025-08-01' as timestamp)and blockchain = 'ethereum')select pr.ts_hour,pr.rate as protocol_rate,dr.rate as dex_rate,(pr.rate / dr.rate - 1) as difffrom protocol_rates prjoin dex_rates dr on pr.ts_hour = dr.ts_hour