Query editor
with fulldate as (selectdate_trunc('day',evt_block_time) as fullbtfromerc20_avalanche_c.evt_Transferwhere evt_block_time > DATE '2022-07-22'group by 1order by 1),a as (selectdate_trunc('day', call_block_time) as dt,sum / 1e18 as amount,userfromxeta_avalanche_c.XetaToken_call_transferFromBackendwhere call_block_time > DATE '2022-07-22'and user <> 0x9A0e00ff86732755379eb5e68DBDe7fF868616c9and call_block_number < 22095237and call_success = trueunion allselectdate_trunc('day', call_block_time) as dt,sum / 1e18 as amount,userfromxetacapital_avalanche_c.X3taToken_call_transferFromBackendwhere user <> 0x9A0e00ff86732755379eb5e68DBDe7fF868616c9and call_success = true),claim1 as(selectfullbt,amountfromfulldate left join aon fullbt = dt),claim2 as (selectfullbt,sum(amount) as Claimed_Dailyfrom claim1group by fullbt)selectfullbt,Coalesce(Claimed_Daily,0) as Claimed_Daily,(sum(Claimed_Daily) over ()) as Total,(sum(Claimed_Daily) over (order by fullbt)) as Total_Claimed_Rewardsfrom claim2