Query editor
with tmp as (select date_trunc('day', evt_block_time) as dt,sum(amount) as amountfrom(selectevt_block_time,cast(value as double)/1e18 as amountfrom erc20_ethereum.evt_transferwhere contract_address = 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3and to = 0x90d2af7d622ca3141efa4d8f1f24d86e5974cc8funion allselectevt_block_time,-cast(value as double)/1e18 as amountfrom erc20_ethereum.evt_transferwhere contract_address = 0x4c9EDD5852cd905f086C759E8383e09bff1E68B3and "from" = 0x90d2af7d622ca3141efa4d8f1f24d86e5974cc8f) as rawgroup by 1)selectdt,amount as daily_deposit_amount,sum(amount) over(order by dt asc) as total_daily_amountfrom tmporder by dt desc