select
ADDRESS_NAME as token_TO,
count(tx_id) as swaps,
count(distinct swapper) as swappers
--sum(swaps) over (partition by SWAP_PROGRAM order by day) as cum_swaps
from solana.core.fact_swaps s join solana.core.dim_labels b on s.SWAP_TO_MINT=b.ADDRESS
where SUCCEEDED='TRUE'
and BLOCK_TIMESTAMP>= '2022-05-01'
group by 1
order by 2 desc limit 10