Query editor
with transfers as (select"from" as wallet,-sum(cast(value as double) / pow(10, 18)) as amountfrom op_optimism.GovernanceToken_evt_Transferwhere evt_block_time < timestamp '2023-07-01 08:00 UTC'group by 1unionselect"to" as wallet,sum(cast(value as double) / pow(10, 18)) as amountfrom op_optimism.GovernanceToken_evt_Transferwhere evt_block_time < timestamp '2023-07-01 08:00 UTC'group by 1),transfer_sum as (select "wallet",sum(amount) as balancefrom transfersgroup by "wallet")selectwallet as "OPHolder",balance as "OPAmount"from transfer_sumwhere balance > 0