Query editor
WITH date_spine AS (SELECTDATE_TRUNC('day', series) AS dtFROM UNNEST(SEQUENCE(TRY_CAST((SELECTDATE_TRUNC('day', MIN(block_time))FROM tokens.transfersWHEREcontract_address IN (0x8238884ec9668ef77b90c6dff4d1a9f4f4823bfe, 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0)) AS DATE),CURRENT_DATE,INTERVAL '1' day) ) AS _u(series)), transfers AS (SELECTblock_time,blockchain,-TRY_CAST(amount_raw AS DOUBLE) AS amount_rawFROM tokens.transfersWHERE((blockchain = 'ethereum'AND contract_address = 0x8238884ec9668ef77b90c6dff4d1a9f4f4823bfe)OR (blockchain = 'base' AND contract_address = 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0))AND "to" = 0x0000000000000000000000000000000000000000UNION ALLSELECTblock_time,blockchain,TRY_CAST(amount_raw AS DOUBLE) AS amount_rawFROM tokens.transfersWHERE((blockchain = 'ethereum'AND contract_address = 0x8238884ec9668ef77b90c6dff4d1a9f4f4823bfe)OR (blockchain = 'base' AND contract_address = 0xad55aebc9b8c03fc43cd9f62260391c13c23e7c0))AND "from" = 0x0000000000000000000000000000000000000000), daily_amounts AS (SELECTDATE_TRUNC('day', block_time) AS dt,SUM(CASE WHEN blockchain = 'ethereum' THEN amount_raw / 1e18 ELSE 0 END) AS eth_amount,SUM(CASE WHEN blockchain = 'base' THEN amount_raw / 1e18 ELSE 0 END) AS base_amountFROM transfersGROUP BY1), complete_daily_amounts AS (SELECTdate_spine.dt,COALESCE(daily_amounts.eth_amount, 0) AS eth_amount,