Query editor
withtime_series as (select*fromunnest (sequence(date('2022-1-1'), current_date, interval '1' day)) as tbl (day)),pstake as (selectday,SUM(value) OVER (ORDER BYday) as pstakefrom(selectday,sum(value) / 1e18 as valuefrom(selectdate_trunc('day', "evt_block_time") as day,sum(CAST(value AS double)) * 1 as valuefromerc20_bnb.evt_Transferwhere"contract_address" = 0xc2e9d07f66a89c44062459a47a0d2dc038e4fb16and "from" = 0x0000000000000000000000000000000000000000group by1UNION ALLselectdate_trunc('day', "evt_block_time") as day,sum(CAST(value AS double)) * -1 as valuefromerc20_bnb.evt_Transferwhere"contract_address" = 0xc2e9d07f66a89c44062459a47a0d2dc038e4fb16and "to" = 0x0000000000000000000000000000000000000000group by1) zgroup by1) zz),stader as (selectday,SUM(value) OVER (ORDER BYday) as staderfrom(selectday,