Query editor
WITH combined_tokens AS (SELECTtokenA AS token,output_poolFROM uniswap_v3_ethereum.Factory_call_createPoolWHERE call_success = trueUNION ALLSELECTtokenB AS token,output_poolFROM uniswap_v3_ethereum.Factory_call_createPoolWHERE call_success = true)SELECTrow_number() OVER (ORDER BY COUNT(DISTINCT ct.output_pool) DESC) AS "rank",ct.token,t.symbol,COUNT(DISTINCT ct.output_pool) AS pool_countFROM combined_tokens ctLEFT JOIN tokens.erc20 tON t.contract_address = ct.tokenWHERE t.blockchain = 'ethereum'GROUP BY 2, 3ORDER BY pool_count DESC