Query editor
WITH validators as (SELECT 'Staking' as label, count(index) as validators, sum(effective_balance)/ 1e9 as stakedFROM beacon.validatorsWHERE exit_epoch IS NULL AND effective_balance >= 32e8UNION ALLSELECT 'Unstaking' as label, count(index) as validators, sum(effective_balance)/ 1e9 as stakedFROM beacon.validatorsWHERE exit_epoch IS NOT NULL),prices as (SELECT "timestamp" , price FROM prices.day WHERE blockchain = 'ethereum' and contract_address = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2ORDER BY "timestamp" DESCLIMIT 1),saking_usd as (SELECTv.*, p."timestamp",p.price * v.staked /1000000000 as staked_usd from validators vLEFT JOIN prices p ON 1=1)SELECT * FROM saking_usd order by label