Query editor
-- ETH retained in winning 2017 auction deeds immediately after finalization.-- This is the second-price settlement after the winner's excess bid refund.-- It was a refundable deposit, not revenue received by ENS.WITH first_events AS (SELECThash AS labelhash,value AS settled_wei,row_number() OVER (PARTITION BY hash ORDER BY evt_block_number, evt_index) AS occurrenceFROM ethereumnameservice_ethereum.registrar_old_evt_hashregisteredWHERE contract_address = 0x6090a6e47849629b7245dfa1ca21d94cd15878efAND evt_block_date >= DATE '2017-05-01'AND evt_block_date < DATE '2017-07-01'AND evt_block_number < 3919721)SELECTcount(*) AS auctioned_names,CAST(sum(settled_wei) AS VARCHAR) AS total_locked_wei,round(CAST(sum(settled_wei) AS DOUBLE) / 1e18, 3) AS total_locked_ethFROM first_eventsWHERE occurrence = 1;