Query editor
with trades as (selecttoken_pair,token_bought_address,token_bought_symbol,token_sold_address,token_sold_symbol,block_time,tx_hash,amount_usd,tx_from as trader,blockchainfromdex.tradeswhere project = 'uniswap')select * from (selectdate_trunc('month', block_time) as month,token_pair,count(distinct tx_hash) as swaps,count(distinct trader) as traders,sum(amount_usd) as volume_usd,avg(amount_usd) as average_amount_usd,row_number() over (partition by date_trunc('month', block_time) order by sum(amount_usd) desc) as ratefromtradeswheretoken_pair is not nullgroup by 1, 2)where rate <= 10order by month, volume_usd desc