Query editor
/* Migration success :)There are some cases such as unnest/sequence and array/json functions the migrator won't take care of for you(but we have examples of in the docs linked below!)If you're still running into issues, check out the doc examples https://dune.com/docs/reference/dune-v2/query-engine/or reach out to us in the Dune discord in the #dune-sql channel.*/WITHeth AS (SELECTDATE_TRUNC('week', block_time) AS eweek,COUNT(*) AS etxsFROMethereum.transactionsGROUP BY1),arb AS (SELECTDATE_TRUNC('week', block_time) AS aweek,COUNT(*) AS atxsFROMarbitrum.transactionsGROUP BY1),opt AS (SELECTDATE_TRUNC('week', block_time) AS oweek,COUNT(*) AS otxsFROMoptimism.transactionsGROUP BY1),poly AS (SELECTDATE_TRUNC('week', block_time) AS oweek,COUNT(*) AS otxsFROMpolygon.transactionsGROUP BY1),gwei AS (SELECTDATE_TRUNC('week', block_time) AS week,AVG(gas_price) / 1e9 AS base_feeFROMethereum.transactionsGROUP BY1)SELECTeth.eweek,eth.etxs / 604800 AS etps,arb.atxs / 604800 AS atps,opt.otxs / 604800 AS otps,poly.otxs / 604800 AS ptps,