Query editor
-- This query has been migrated to run on DuneSQL.-- If you need to change back because you’re seeing issues, use the Query History view to restore the previous version.-- If you notice a regression, please email [email protected].SELECTyear,SUM(SUM(pairs)) OVER (ORDER BYyear) AS cumulative_pairsFROM(SELECTDATE_TRUNC('year', evt_block_time) AS year,COUNT(DISTINCT pair) AS pairsFROMuniswap_v2_ethereum.Factory_evt_PairCreatedGROUP BY1UNIONSELECTDATE_TRUNC('year', evt_block_time) AS year,COUNT(DISTINCT exchange) AS pairsFROMuniswap_ethereum.Factory_evt_NewExchangeGROUP BY1UNIONSELECTDATE_TRUNC('year', evt_block_time) AS year,COUNT(DISTINCT pool) AS pairsFROMuniswap_v3_ethereum.Factory_evt_PoolCreatedGROUP BY1) AS netGROUP BY1ORDER BY1 DESC