Query editor
WITHethTransactions AS (SELECTDATE_TRUNC('{{period}}', block_time) AS "Time",COUNT(DISTINCT "from") AS "Users",COUNT("from") AS "Transactions",'Ethereum' AS chainFROMethereum.transactionsWHERE"to" = 0x8c82a71b629db618847682cd3155e6742304b710AND DATE_TRUNC('day', block_time) > CAST('2022-07-18' AS TIMESTAMP)GROUP BY1),gnosisTransactions AS (SELECTDATE_TRUNC('{{period}}', block_time) AS "Time",COUNT(DISTINCT "from") AS "Users",COUNT("from") AS "Transactions",'Gnosis' AS chainFROMgnosis.transactionsWHERE"to" = 0x8c82a71b629db618847682cd3155e6742304b710AND DATE_TRUNC('day', block_time) > CAST('2022-07-18' AS TIMESTAMP)GROUP BY1),bnbTransactions AS (SELECTDATE_TRUNC('{{period}}', block_time) AS "Time",COUNT(DISTINCT "from") AS "Users",COUNT("from") AS "Transactions",'BSC' AS chainFROMbnb.transactionsWHERE"to" = 0x8c82a71b629db618847682cd3155e6742304b710AND DATE_TRUNC('day', block_time) > CAST('2022-07-18' AS TIMESTAMP)GROUP BY1),polygonTransactions AS (SELECTDATE_TRUNC('{{period}}', block_time) AS "Time",COUNT(DISTINCT "from") AS "Users",COUNT("from") AS "Transactions",'Polygon' AS chainFROMpolygon.transactionsWHERE"to" = 0x8c82a71b629db618847682cd3155e6742304b710AND DATE_TRUNC('day', block_time) > CAST('2022-07-18' AS TIMESTAMP)GROUP BY1),allTransactions AS (SELECT*