Query editor
WITH NO_keys AS (SELECTo.nodeOperatorId,o.totalKeysCountFROM lido_ethereum.CSModule_evt_TotalSigningKeysCountChanged oJOIN (SELECT nodeOperatorId, MAX(evt_block_time) AS last_deposit_dateFROM lido_ethereum.CSModule_evt_TotalSigningKeysCountChangedGROUP BY nodeOperatorId) t ON o.nodeOperatorId = t.nodeOperatorId AND o.evt_block_time = t.last_deposit_dateorder by o.totalKeysCount desc)selecttotalKeysCount,count (nodeOperatorId) as NOsfrom NO_keyswhere totalKeysCount > 0group by totalKeysCountorder by NOs desc