Query editor
with outgoing as (select sum(value) / 1e18 as value, "to" as account from erc20_arbitrum.evt_Transfer where "from" = 0xeff788abdd7877e20dc48d28b3f09c9af2672531 and contract_address = 0xA6efAE0C9293B4eE340De31022900bA747eaA92D group by 2), incoming as (select sum(value) / 1e18 as value, "from" as account from erc20_arbitrum.evt_Transfer where "to" = 0xeff788abdd7877e20dc48d28b3f09c9af2672531 and contract_address = 0xA6efAE0C9293B4eE340De31022900bA747eaA92D 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 (0xeff788abdd7877e20dc48d28b3f09c9af2672531)order by balance desc;