Query editor
with token0_table as(select chain, token0 as token, count(distinct pool) as pools from uniswap_v3_multichain.factory_evt_poolcreated group by 1,2),token1_table as(select chain, token1 as token, count(distinct pool) as pools from uniswap_v3_multichain.factory_evt_poolcreated group by 1,2),combined as(select * from token0_tableunion allselect * from token1_table),top_tokens as(select chain, token, sum(pools) as total_pools from combinedgroup by 1,2)select tt.*,tok.symbol from top_tokens tt inner join tokens.erc20 tokon (tt.chain=tok.blockchain and tt.token=tok.contract_address)order by total_pools desc