Query editor
WITH ranked_payooors AS (SELECTROW_NUMBER() OVER (ORDER BY total_tx_fee_eth DESC) AS N,gas_payooor,transactions,total_tx_fee_eth,total_tx_fee_usd_historical,total_tx_fee_usd_current,total_tx_fee_usd_change,CASEWHEN POSITION(' ' IN gas_payooor) > 0 THEN SUBSTRING(gas_payooor, 1, POSITION(' ' IN gas_payooor) - 1)ELSE gas_payooorEND AS ENSFROM (SELECTgas_payooor,COUNT(tx_hash) AS transactions,SUM(tx_fee_eth) AS total_tx_fee_eth,SUM(tx_fee_usd_historical) AS total_tx_fee_usd_historical,SUM(tx_fee_usd_current) AS total_tx_fee_usd_current,(SUM(tx_fee_usd_current) - SUM(tx_fee_usd_historical)) / SUM(tx_fee_usd_historical) AS total_tx_fee_usd_changeFROM (dune.protocolguild.result_transactions-- Transactions https://dune.com/queries/2676536)GROUP BY gas_payooor))SELECTN,gas_payooor,transactions,total_tx_fee_eth,total_tx_fee_usd_historical,total_tx_fee_usd_current,total_tx_fee_usd_change,ENSFROM ranked_payooorsORDER BY N