Query editor
withdeposit_bpt as (selectevt_block_time,cast(value/1e18 as double) as amount,"from" as userfrom erc20_arbitrum.evt_Transferwhere "to" in (0xaefd22d0153e69f3316dca9095e7279b3a2f8af2,0xbdaa858fd7b0dc05f8256330facb35de86283ca0)and contract_address = 0x569061E2D807881F4A33E1cbE1063bc614cB75a4),withdraw_bpt as (selectevt_block_time,-cast(value/1e18 as double) as amount,"to" as userfrom erc20_arbitrum.evt_Transferwhere "from" in (0xaefd22d0153e69f3316dca9095e7279b3a2f8af2,0xbdaa858fd7b0dc05f8256330facb35de86283ca0)and contract_address = 0x569061E2D807881F4A33E1cbE1063bc614cB75a4),combined as (select * from deposit_bptunion allselect * from withdraw_bpt),balance as (selectuser,sum(amount) as balancefrom combinedgroup by user)select count(user) as no_vly2k_holdersfrom balancewhere balance > 0.1