with platforms as ( select PLATFORM , CONCAT(symbol_in, '->', symbol_out) as pair , count(DISTINCT(tx_hash)) as total_tx, count(DISTINCT(origin_from_address)) as total_swapper,
sum(amount_in_usd) as volume, avg(amount_in_usd) as avg_volume
from ethereum.core.ez_dex_swaps
where block_timestamp::date >= '2022-01-01'
group by 1,2)
select PLATFORM , pair , total_tx
from platforms
where PLATFORM = 'uniswap-v2'
and pair is not null
order by 3 desc
limit 5