Query editor
with transfers as (select"from" as wallet,-1 as value,tokenId,evt_block_timefrom test_ethereum.Beanz_evt_Transferwhere evt_block_time < timestamp '2023-08-16 08:00 UTC'unionselect"to" as wallet,1 as value,tokenId,evt_block_timefrom test_ethereum.Beanz_evt_Transferwhere evt_block_time < timestamp '2023-08-16 08:00 UTC'),transfer_sum as (select "wallet",sum(value) as "value"from transfersgroup by "wallet")selectwallet as "BeanzHolder",value as "BeanzAmount"from transfer_sumwhere value > 0