SELECT DISTINCT from_currency , to_currency , pool_ids
from osmosis.core.fact_swaps
where pool_ids IN
(
SELECT pool_ids
from osmosis.core.fact_swaps
WHERE block_timestamp >= '2022-05-01'
group by pool_ids
order by count(tx_id) desc
limit 10
)
limit 100