Query editor
with total_market as(select token_pair, sum(amount_usd) as vol from dex.tradeswhere block_month = timestamp '2025-09-01'and blockchain='arbitrum'group by 1), uniswap_market as(select token_pair, sum(amount_usd) as vol from dex.tradeswhere block_month = timestamp '2025-09-01'and blockchain='arbitrum'and project='uniswap'group by 1), uniswap_v4_market as(select token_pair, sum(amount_usd) as vol from dex.tradeswhere block_month = timestamp '2025-09-01'and blockchain='arbitrum'and project='uniswap'and version= '4'group by 1)select tm.token_pair, tm.vol, um.vol as uniswap_volume, u4.vol as uniswap_v4_volume, um.vol / tm.vol as uniswap_share, u4.vol/tm.vol as uniswap_v4_sharefrom total_market tmleft join uniswap_market um on (tm.token_pair=um.token_pair)left join uniswap_v4_market u4 on (tm.token_pair=u4.token_pair)order by 2 desc