Query editor
withpermissioned_pool AS (SELECTDATE_TRUNC('day', evt_block_time) date,"caller" address,SUM(assets) / POWER(10, 18) eth_stakedFROMstader_ethereum.StaderStakePoolsManager_evt_DepositedGROUP BY1,2),permissionless_pool as (SelectDATE_TRUNC('day', block_time) date,"from" address,SUM(value / POWER(10, 18)) eth_stakedFROMethereum.transactionswhere"to" = 0x4f4Bfa0861F62309934a5551E0B2541Ee82fdcF1and value > 0group by1,2),withdrawal_initiated as (SELECTDATE_TRUNC('day', evt_block_time) date,"_msgSender" address,-1 * (SUM(_etherAmount / 1e18)) eth_withdraw_requestedFROMstader_ethereum.UserWithdrawalManager_evt_WithdrawRequestReceivedGROUP BY1,2),base_data as (SELECT * FROM permissioned_pool--UNION ALL--SELECT * FROM permissionless_poolUNION ALLSELECT * FROM withdrawal_initiated),dates as (withday_seq as (SELECT(SEQUENCE(CAST('2023-06-06' AS TIMESTAMP),CAST(NOW() as TIMESTAMP),INTERVAL '1' day)) AS day)SELECTdays.day