Query editor
-- Eight dashboard counters over hash-verified, plaintext Prepunk labels.-- Unknown labels are excluded. length() counts Unicode code points, matching-- the existing Prepunk length pie. Bands are disjoint: <7, 7, and >7.-- The malformed counter is a live SQL screen for noncanonical historical-- labels (uppercase, dots, or punctuation/symbols outside emoji sequences).-- ENSIP-15 normalization is more nuanced than this screen; this is not a full-- replacement for ethers.ensNormalize when checking an individual label.WITH named AS (SELECT nameFROM query_5191935WHERE name IS NOT NULL),flags AS (SELECTname,length(name) AS codepoints,regexp_like(name, '[\x{1F000}-\x{1FAFF}\x{2600}-\x{27BF}\x{20E3}]') AS has_emoji,regexp_like(name, '\p{Lu}|\.') OR regexp_like(regexp_replace(name,'[\x{1F000}-\x{1FAFF}\x{2600}-\x{27BF}\x{FE0F}\x{200D}\x{20E3}]',''),'[^\p{L}\p{N}\p{M}-]') AS malformed,regexp_like(name, '^[0-9]+$') AS digits_only,regexp_like(name, '^[A-Za-z]+$') AS text_only,regexp_like(name, '^[A-Za-z0-9]+$')AND regexp_like(name, '[A-Za-z]')AND regexp_like(name, '[0-9]') AS alphanumericFROM named)SELECTcount_if(codepoints < 7) AS under_7,count_if(codepoints = 7) AS exactly_7,count_if(codepoints > 7) AS over_7,count_if(has_emoji) AS has_emoji,count_if(malformed) AS malformed,count_if(digits_only) AS digits_only,count_if(text_only) AS text_only,count_if(alphanumeric) AS alphanumeric,count(*) AS known_namesFROM flags;