Query editor
WITHtvl as (SELECTdate_trunc('day', call_block_time) as day,ROW_NUMBER() OVER (PARTITION BY date_trunc('day', call_block_time) ORDER BY call_block_time DESC) as rank_,call_tx_hash,call_success,call_block_time,output_2/1e18 as tvl_ethFROMrenzo_ethereum.RestakeManager_call_calculateTVLsWHERE call_success = true),tvl_eth as (SELECTday,tvl_ethFROMtvlWHERE rank_ = 1)SELECT*FROM(SELECTt.day,t.tvl_eth as eigenlayer_eth,t.tvl_eth * p.price as eigenlayer_usd,t.tvl_eth + COALESCE(sy.tvl_eth, 0) as tvl_eth,(t.tvl_eth * p.price) + COALESCE(sy.tvl_usd, 0) as tvl_usd,sy.tvl_usd as symbiotic_usd,sy.tvl_eth as symbiotic_ethFROMtvl_eth tLEFT JOINprices.usd pON p.blockchain = 'ethereum'AND p.symbol = 'WETH'AND p.minute = t.dayLEFT JOINquery_3919869 syON t.day = sy.day) xORDER BY 1 DESC