Query editor
WITH names AS (SELECTBYTEARRAY_SUBSTRING(data, 6, BYTEARRAY_TO_BIGINT(BYTEARRAY_REVERSE(BYTEARRAY_SUBSTRING(data, 2, 4)))) AS string_binary,CONCAT(CAST(TRIM(FROM_UTF8(BYTEARRAY_SUBSTRING(data, 6, BYTEARRAY_TO_BIGINT(BYTEARRAY_REVERSE(BYTEARRAY_SUBSTRING(data, 2, 4)))))) AS VARCHAR),CAST('.sol' AS VARCHAR)) AS string_utf8,tx_id,block_time,LOWER(tx_signer) AS owner -- Normalize wallet addresses to lowercaseFROM solana.instruction_callsWHEREexecuting_account = 'jCebN34bUfdeUYJT13J1yG16XWQpt5PDx6Mse9GUqhR'AND BYTEARRAY_SUBSTRING(data, 1, 1) IN (0x01, 0x09, 0x0d, 0x00, 0x11))SELECTCOUNT(DISTINCT owner) AS total_distinct_wallets_with_3_digit_snsFROM namesWHERELENGTH(string_utf8) = 8 /* Ensure SNS name is 3 digits + ".sol" (7 characters) */AND REGEXP_LIKE(SUBSTRING(string_utf8, 1, LENGTH(string_utf8) - 4),'^[0-9]+$' /* Ensure SNS name is numeric */);