Query editor
WITH deposits AS(SELECT SUM(CAST(value AS DOUBLE))/ 1e18 AS eth_depositsFROM ethereum.tracesWHERE "to" = 0x00000000219ab540356cBB839Cbe05303d7705FaAND (LOWER(call_type) NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type is null)AND successAND CAST(value AS DOUBLE) > 0AND block_time >= date('2020-11-01')),full_withdrawals AS (SELECT SUM(amount)/1e9 AS total_full_eth_withdrawalsFROM ethereum.withdrawalsWHERE CAST(amount AS DOUBLE)>20*1e9)SELECT eth_deposits, total_full_eth_withdrawals, eth_deposits - total_full_eth_withdrawals AS eth_staked, (eth_deposits - total_full_eth_withdrawals)/32 AS active_validatorsFROM deposits, full_withdrawals