Query editor
with token_prices as (selectsymbol,avg(price) as pricefrom prices.usd pwhere blockchain = 'ethereum'and symbol in ('ETH', 'USDC', 'USDT')and minute >= timestamp '2023-12-15'group by 1),eth_price as (selectsymbol,avg(price) as pricefrom prices.usd pwhere symbol = 'ETH'and minute >= timestamp '2023-12-15'group by 1),prices as (select * from token_pricesunion allselect * from eth_price),eth_xfers as (select'ETH' as token,cast("from" as varchar) as sender,count(*) as txs,sum(value) / power(10, 18) as valuefrom ethereum.transactions eleft join ens.reverse_latest rev on e."from" = rev.addresswhere to = 0x43D70985e2336EEF64342A9393aF7dfC2Aa7744a -- portaland successand "from" <> 0x0000000000000000000000000000000000000000and block_time >= timestamp '2023-11-18'group by 1, 2),remaining as (select'stETH' as token,cast("from" as varchar) as sender,count(*) as txs,sum(cast(value as double) / 1e18) as valuefrom erc20_ethereum.evt_Transfer eleft join ens.reverse_latest rev on e."from" = rev.addresswhere contract_address = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 -- stETHand to = 0x43D70985e2336EEF64342A9393aF7dfC2Aa7744a -- Portaland "from" <> 0x0000000000000000000000000000000000000000and evt_block_time >= timestamp '2023-12-15'group by 1, 2union all