Query editor
WITHdates AS (SELECTdate_add('day',CAST(seq AS integer),TIMESTAMP '2023-04-12') AS dayFROMUNNEST (sequence(0,date_diff('day', TIMESTAMP '2023-04-12', current_timestamp))) AS t (seq)),entities AS (SELECT DISTINCTentity,categoryFROMstaking_ethereum.entitiesWHEREcategory IN ('Liquid Staking', 'CEX')AND entity NOT IN ('Bifrost','KingHash','Poloniex','SharedStake','ssv.network','Tranchess','WEX Exchange','Gate.io','Harbour','StaFi','staked.finance','CREAM','Gemini','Bitfinex')),dates_entities AS (SELECTday,entity,categoryFROMdatesCROSS JOIN entities),withdrawn_by_entity AS (SELECTdate_trunc('day', w.block_time) AS time,d.entity AS entity, -- Corrected the alias hereSUM(w.amount / 1e9) as withdrawFROMethereum.withdrawals wINNER JOIN staking_ethereum.deposits d ON w.address = d.withdrawal_addressAND date_trunc('day', w.block_time) = date_trunc('day', d.block_time)WHERE