Query editor
with bc as (select "to" as holder, cast(value as int256) as valuefrom powerpool_ethereum.xCVP_evt_Transferwhere "to" != 0x0000000000000000000000000000000000000000union allselect "from" as holder, -cast(value as int256) as valuefrom powerpool_ethereum.xCVP_evt_Transferwhere "from" != 0x0000000000000000000000000000000000000000)select holder, round(SUM(value)/1e18) as xCVP_balancefrom bcgroup by 1having SUM(value)/1e18 > 0order by 2 desc