Query editor
with outgoing as (select sum(value) / 1e18 as value, "to" as account from erc20_arbitrum.evt_Transfer where "from" = 0x8544890AABc7ef4A1a2CD427529A65E6b111112C and contract_address = 0x62FdDfC2D4b35aDec79c6082CA2894eAb01aC0db group by 2), incoming as (select sum(value) / 1e18 as value, "from" as account from erc20_arbitrum.evt_Transfer where "to" = 0x8544890AABc7ef4A1a2CD427529A65E6b111112C and contract_address = 0x62FdDfC2D4b35aDec79c6082CA2894eAb01aC0db group by 2), total as (selectincoming.account,(incoming.value - coalesce(outgoing.value, 0)) as balancefromincomingleft joinoutgoing on (incoming.account = outgoing.account))select account, balance from totalwherebalance > 0 andaccount not in (0x8544890AABc7ef4A1a2CD427529A65E6b111112C)order by balance desc;