with tab1 as (select tx:body:messages[0]:from_address as sender, count(distinct tx_id) as Tx_Count
from terra.core.fact_transactions
where tx:body:messages[0]:amount[0]:denom='uluna'
and TX_SUCCEEDED='TRUE'
group by 1)
select tx_count, count(sender) as sender_count
from tab1
group by 1
order by 2 desc