select pool_name,
count(DISTINCT tx_hash) as swaps,
count(DISTINCT origin_from_address) as swappers,
sum(amount_out_usd) as usd_volume
from polygon.sushi.ez_swaps
where block_timestamp::date >= '2022-06-01'
and pool_name is not null
and amount_out_usd>0
group by 1
order by 2 DESC
limit 10