select 'number of whales ' , count(address) from (select sum(balance) as balance_amount, address from algorand.account
group by address
having balance_amount > 50000
)
UNION
-- -
select 'number of whales swaps' , count(DISTINCT swapper) from algorand.swaps where swapper in (select address from algorand.account
having balance > 50000)
UNION
select 'percentage of whales swaps' , count(DISTINCT swapper)/2971 * 100 from algorand.swaps where swapper in (select address from algorand.account
having balance > 50000)