Query editor
with r as (selectdate_trunc('{{Timeframe}}', block_time) AS day,blockchain,amount as eth,amount_usdfrom tokens.transferswhere to = 0xCd777a10502256dB93c2b0A8e8F64a5174c6cbDaand block_time > timestamp '2025-02-01'),r_eth as (selectday,eth,amount_usdfrom rwhere blockchain = 'ethereum'),r_arb as (selectday,eth,amount_usdfrom rwhere blockchain = 'arbitrum'),r_bas as (selectday,eth,amount_usdfrom rwhere blockchain = 'base'),eth_p as (select priceFROM prices.usd_latestWHERE symbol='ETH'AND contract_address IS NULL)selectr_eth.day,COALESCE(r_eth.eth, 0) as eth_eth,COALESCE(r_eth.eth, 0)*eth_p.price as eth_usd,COALESCE(r_arb.eth, 0) as eth_arb,COALESCE(r_arb.eth, 0)*eth_p.price as arb_usd,COALESCE(r_bas.eth, 0) as eth_base,COALESCE(r_bas.eth, 0)*eth_p.price as base_usdfrom r_ethleft join r_arb on r_eth.day = r_arb.dayleft join r_bas on r_eth.day = r_bas.daycross join eth_p