Query editor
WITH base_oi AS (SELECT* FROM "query_4802457(query_id='4802488')"),eth_prices AS (-- Fetch the daily average price of WETHSELECTdate_trunc('day', minute) AS day,AVG(price) AS eth_priceFROM prices.usdWHERE symbol = 'WETH'AND blockchain = 'ethereum'GROUP BY 1)SELECTb.timestamp,b.chain,-- Replace 'open_interest_usd' with the actual column name from your base queryb.OI_USD,p.eth_price,(b.OI_USD / p.eth_price) AS open_interest_ethFROM base_oi bLEFT JOIN eth_prices pON date_trunc('day', b.timestamp) = p.dayORDER BYb.timestamp,b.chain