Query editor
with Uni as (selectdate_trunc('month', block_time) as month,sum(amount_usd) as uni_volfrom dex.tradeswhere project like '%uniswap%'and block_date >= timestamp '2023-06-01'group by date_trunc('month', block_time)),xchange as (selectdate_trunc('month', block_time) as month,sum(amount_usd) as x_volfrom dex.tradeswhere project='xchange'and block_date >= timestamp '2023-06-01'group by date_trunc('month', block_time))select x.month, x_vol, uni_vol, (x_vol/uni_vol)*100 as pct_unifrom xchange x inner join Uni u on x.month=u.monthorder by 1 desc