Query editor
WITHtime_seq AS (SELECTsequence(CAST('2024-06-18' AS timestamp), -- Start datedate_trunc('day', CAST(now() AS timestamp)), -- Today's date, truncated to start of the dayinterval '1' day) AS time),days AS (SELECTday_grouped.time AS day_groupedFROMtime_seq,UNNEST(time_seq.time) AS day_grouped(time) -- Clearer aliasing for the unnested column),actions AS (SELECTevt_block_time as block_date,evt_block_number as block_number,evt_tx_hash as tx_hash,-(value/1e18) as symbiotic_net,0 as s_ultraeth_in,-(value/1e18) as s_ultraeth_out,'Burn ultraETHs' as action_type,"from" as addressFROMerc20_blast.evt_transferWHERE contract_address = 0xbb4e01B8940E8E2b3a95cED7941969D033786FF7AND "to" = 0x0000000000000000000000000000000000000000UNION ALLSELECTevt_block_time as block_date,evt_block_number as block_number,evt_tx_hash as tx_hash,value/1e18 as symbiotic_net,value/1e18 as s_ultraeth_in,0 as s_ultraeth_out,'Mint ultraETHs' as action_type,"to" as addressFROMerc20_blast.evt_transferWHERE contract_address = 0xbb4e01B8940E8E2b3a95cED7941969D033786FF7AND "from" = 0x0000000000000000000000000000000000000000),price_data AS (SELECTminute,priceFROMprices.usdWHEREblockchain = 'ethereum' ANDsymbol = 'WETH'