Query editor
WITH withdrawn as (selectvalidator_index * UINT256 '1' as validator_index,MAX(block_time) as last_withdrawal,SUM(amount)/1e9 as total_withdrawnfrom ethereum.withdrawals-- from goerli.withdrawalsgroup by validator_index),exits as (select * from withdrawnwhere total_withdrawn > 16),exit_requests as (selectevt_block_time,evt_block_number,nodeOperatorId,validatorIndex,0 as withdrawnfrom lido_ethereum.ValidatorsExitBusOracle_evt_ValidatorExitRequest-- from lido_goerli.ValidatorsExitBusOracle_evt_ValidatorExitRequest),exit_status_beacon as(SELECTvalidator_index,block_timeFROM beacon.voluntary_exitsWHERE block_slot > 6451750),exit_status as (selectr.evt_block_time as request_time,r.evt_block_number,r.nodeOperatorId,concat('<a href="https://beaconcha.in/validator/',cast(r.validatorIndex as varchar),'" target = "_blank">',cast(r.validatorIndex as varchar),'</a>') as validatorIndex,-- concat('<a href="https://goerli.beaconcha.in/validator/',cast(r.validatorIndex as varchar),'" target = "_blank">',cast(r.validatorIndex as varchar),'</a>') as validatorIndex,x.last_withdrawal as last_full_withdrawal,eb.block_time as exit_time_bn,COALESCE(w.total_withdrawn, r.withdrawn) AS total_withdrawnfrom exit_requests rLEFT JOIN withdrawn w on r.validatorIndex = w.validator_indexLEFT JOIN exits x on r.validatorIndex = x.validator_indexLEFT JOIN exit_status_beacon eb on r.validatorIndex = eb.validator_index)selectrequest_time,evt_block_number,nodeOperatorId,validatorIndex,last_full_withdrawal,exit_time_bn,CASEWHEN exit_time_bn IS NOT NULL THEN date_diff('hour', request_time, exit_time_bn )ELSE NULLEND AS time_to_exit,case