with a as
(select
SENDER as Algo_User, count(distinct TX_ID) as Count_Transactions, sum(FEE) as Fee_Amount
from flipside_prod_db.algorand.transactions where BLOCK_TIMESTAMP::date>='2022-01-01' and BLOCK_TIMESTAMP::date<='2022-07-06'
group by 1 order by 2 DESC
limit 10)
select
Row_number() over(order by Count_Transactions desc ) as rank,
* from a