Query editor
-- The 2017 eight-week soft launch assigned an earliest auction time from the-- high 128 bits of each labelhash. Its first 32 bits are sufficient for daily-- cohorts (about 1.2 ms precision), then timestamps are rounded to seconds.-- Earliest finalization is five days after the name first became auctionable.WITH labels AS (SELECT"registered date" AS finalized_at,from_base(substr(labelhash, 3, 8), 16) AS hash_prefix32FROM query_5191935),unlocks AS (SELECTfinalized_at,date_add('second',CAST(floor(4838400.0 * hash_prefix32 / 4294967296.0) AS bigint),TIMESTAMP '2017-05-04 11:00:00') AS auction_allowed_atFROM labels),lags AS (SELECTCAST(date_trunc('day', auction_allowed_at) AS date) AS unlock_day,date_diff('second', date_add('day', 5, auction_allowed_at), finalized_at) / 3600.0 AS hours_after_earliest_finalizationFROM unlocks)SELECTunlock_day,count(*) AS eventual_prepunk_names,count_if(hours_after_earliest_finalization < 24) AS finalized_within_24h,round(approx_percentile(hours_after_earliest_finalization, 0.5), 1)AS median_wait_hours,round(approx_percentile(hours_after_earliest_finalization, 0.9), 1)AS p90_wait_hoursFROM lagsGROUP BY 1ORDER BY 1;