with tab1 as (select origin_from_address as buyer, count(distinct tx_hash) as purchases_count
from ethereum.core.ez_dex_swaps
where token_out='0x0f5d2fb29fb7d3cfee444a200298f468908cc942' and block_timestamp::date>='2021-01-01'
group by 1)
select purchases_count, count(distinct buyer) as buyer_count
from tab1
group by 1
order by 1