Skip to content

Conform

Check and standardize phone numbers, emails, IBANs, EU VAT numbers, card numbers, URLs and postal codes offline, with no external service

Connector software
Free and open source
Service credentials
Not needed
Use with an agent

Install the Orchard skill in your project to help your agent find connectors, configure them, and verify SQL results.

npx skills add Query-farm/vgi-skills --skill orchard

Copy this request into your coding agent to get started.

Use https://query.farm/products/orchard/connectors/conform/index.md to help me query Conform with DuckDB or Haybarn 2.0.1 and VGI protocol 3.4. Ask only for missing details about the result I need or whether I want local execution, self-hosting or Query Farm hosting. Check the connector's actual hosting availability, credentials and input requirements. Read one format of each needed reference and the exact object declarations before writing SQL. Use a released connector, and distinguish a saved example result from anything you actually execute. If you cannot run the query, tell me what remains to verify.

Validate and normalise a column of email addresses

Example output · captured
Connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT email, conform.main.is_valid_email(email) AS valid,
  conform.main.normalize_email(email) AS normalized,
  conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
Result
email valid normalized domain
[email protected] true [email protected] example.com
[email protected] true [email protected] query.farm
[email protected] true [email protected] sub.example.org

Quick start

Choose where to run Conform, then follow the steps below.

The connector runs alongside DuckDB or Haybarn. No Query Farm account is needed.

1. Install the vgi extension

Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.

setup.sql
SET allow_extension_repositories = 'allowed';

CREATE EXTENSION REPOSITORY IF NOT EXISTS query_farm
    WITH PREFIX 'https://duckdb-extensions.query.farm';

INSTALL vgi FROM query_farm;
LOAD vgi FROM query_farm;

2. Attach the connector

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'conform' AS conform (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-conform-worker'
);

3. Run a query

query.sql
SELECT email, conform.main.is_valid_email(email) AS valid,
  conform.main.normalize_email(email) AS normalized,
  conform.main.email_domain(email) AS domain
FROM (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]')) AS t(email)
More example queries →
Technical details
Verified connector release
v0.5.0
Engine
2.0.1
VGI protocol
3.4.0
Verified on
December 1, 2026
Release notes on GitHub
Pin a version for production

When running the connector yourself, keep a specific release until you’re ready to upgrade. Replace the ATTACH statement above with this one and follow the same extension and credential setup.

Attach with uvx

Needs uv. uvx builds the worker from its release tag on first attach and reuses the cached environment after that.

ATTACH 'conform' AS conform (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-conform-worker'
);

Overview

Validate + normalize phone/email/IBAN/VAT/card/URL/postal fields for SQL

Catalog

Everything conform exposes once attached — read straight from the worker's released build.

conform 1 schema
main 3 tables · 21 functions

Field validation, normalization, and discovery functions for the conform catalog

Schema examples (12)
Examples (12)

Check whether a string is a syntactically valid email address.

SELECT conform.main.is_valid_email('[email protected]');

Canonicalize an email address (lower-cased domain) for deduplication.

SELECT conform.main.normalize_email('[email protected]');

Format a US phone number into canonical E.164 storage form.

SELECT conform.main.format_phone_e164('202-456-1111');

Validate an IBAN (length plus mod-97 checksum).

SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32');
8 more examples

Detect a payment card's brand from its prefix and length.

SELECT conform.main.card_brand('4111111111111111');

Mask a card number, keeping only the last four digits.

SELECT conform.main.mask_card('4111-1111-1111-1111');

Format-check a US postal (ZIP) code.

SELECT conform.main.is_valid_postal_code('90210', 'US');

List every recognized payment-card brand.

SELECT * FROM conform.main.card_brands() ORDER BY brand;

Count sign-ups per email domain after dropping invalid addresses, collapsing addresses that differ only in domain case into one unique address.

WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;

Find contacts whose (valid) phone number belongs to a different country than the one on their record, showing the number's real region, E.164 form and line type.

WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;

Audit supplier bank details: validate and pretty-print each IBAN, normalize the VAT number, and flag whether the IBAN's country matches the VAT number's country (NULL when the IBAN is invalid).

WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;

For every recognized card brand, count the payment card numbers of that brand and how many pass the Luhn check; brands with no cards show zero and unrecognized numbers are left out.

WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;
Tables
card_brands 4 examples1 col

The brands card_brand() can return, one per row (discovery table).

Columns
brand VARCHAR
A brand `card_brand()` can return, e.g. `visa`, `mastercard`, `amex`.
ConstraintsPRIMARY KEY (brand)
Examples (4)

For every recognized card brand, count the payment card numbers of that brand and how many pass the Luhn check; brands with no cards show zero and unrecognized numbers are left out.

WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;

Check whether 'visa' is among the recognized card brands.

SELECT count(*) > 0 AS has_visa
FROM conform.main.card_brands
WHERE brand = 'visa';

Count how many card brands the worker recognizes.

SELECT count(*) AS brand_count FROM conform.main.card_brands;
1 more example
SELECT count(*) AS brand_count FROM conform.main.card_brands();
Link
supported_phone_regions 4 examples2 cols

Every (region, country_code) the phone functions understand (discovery table).

Columns
region VARCHAR
ISO-3166 alpha-2 region code (the optional `region` argument to the phone functions).
country_codenot null INTEGER
International dialling (country calling) code.
ConstraintsPRIMARY KEY (region)
Examples (4)

Count the supported regions and the distinct dialling codes among them.

SELECT count(*) AS regions, count(DISTINCT country_code) AS dialling_codes
FROM conform.main.supported_phone_regions;

Look up the UK's international dialling code.

SELECT country_code
FROM conform.main.supported_phone_regions
WHERE region = 'GB';
SELECT count(*) AS regions FROM conform.main.supported_phone_regions();
1 more example
SELECT country_code
FROM conform.main.supported_phone_regions()
WHERE region = 'GB';
Link
supported_postal_countries 4 examples1 col

Every country is_valid_postal_code() understands, one per row (discovery table).

Columns
country VARCHAR
ISO-3166 alpha-2 country code accepted as the `country` argument to `is_valid_postal_code`.
ConstraintsPRIMARY KEY (country)
Examples (4)

List every supported postal-code country in order.

SELECT country
FROM conform.main.supported_postal_countries
ORDER BY country;

Confirm US postal codes are supported before validating.

SELECT count(*) > 0 AS supported
FROM conform.main.supported_postal_countries
WHERE country = 'US';
SELECT count(*) AS countries FROM conform.main.supported_postal_countries();
1 more example
SELECT count(*) > 0 AS supported
FROM conform.main.supported_postal_countries()
WHERE country = 'US';
Link
Scalar functions
card_brand (text VARCHAR) 1 example

Card brand (visa/mastercard/amex/discover/diners/jcb) by prefix+length, or NULL

Arguments
text VARCHAR
Card number.
ReturnsVARCHAR
Example

Detect the card brand

SELECT conform.main.card_brand('4111111111111111');
Link
email_domain (text VARCHAR) 1 example

The (normalized) domain part of an email address, or NULL if invalid

Arguments
text VARCHAR
Email address.
ReturnsVARCHAR
Example

Extract the email domain

SELECT conform.main.email_domain('[email protected]');
Link
format_iban (text VARCHAR) 1 example

IBAN grouped into space-separated blocks of four, or NULL if invalid

Arguments
text VARCHAR
IBAN to format.
ReturnsVARCHAR
Example

Pretty-print an IBAN

SELECT conform.main.format_iban('GB82WEST12345698765432');
Link
format_phone_e164 (text VARCHAR, region VARCHAR) +1 overload 2 examples

Format a phone number as E.164, e.g. '+12024561111' (region defaults to 'US')

Arguments
text VARCHAR
Phone number.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
format_phone_e164(text VARCHAR) → VARCHARformat_phone_e164(text VARCHAR, region VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (2)

Format a US phone number as E.164

SELECT conform.main.format_phone_e164('202-456-1111');

Format a UK phone number as E.164

SELECT conform.main.format_phone_e164('07911 123456', 'GB');
Link
format_phone_international (text VARCHAR, region VARCHAR) +1 overload 2 examples

Format a phone number in international form, e.g. '+1 202-456-1111' (region 'US')

Arguments
text VARCHAR
Phone number.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
format_phone_international(text VARCHAR) → VARCHARformat_phone_international(text VARCHAR, region VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (2)

Format a US phone number in international form

SELECT conform.main.format_phone_international('202-456-1111');

Format a UK phone number in international form

SELECT conform.main.format_phone_international('07911 123456', 'GB');
Link
format_phone_national (text VARCHAR, region VARCHAR) +1 overload 2 examples

Format a phone number in national form, e.g. '(202) 456-1111' (region 'US')

Arguments
text VARCHAR
Phone number.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
format_phone_national(text VARCHAR) → VARCHARformat_phone_national(text VARCHAR, region VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (2)

Format a US phone number in national form

SELECT conform.main.format_phone_national('2024561111');

Format a UK phone number in national form

SELECT conform.main.format_phone_national('07911 123456', 'GB');
Link
format_vat (text VARCHAR, country VARCHAR) +1 overload 2 examples

Compact (stripped, upper-cased) EU VAT number, or NULL if invalid

Arguments
text VARCHAR
VAT number.
country VARCHAR
ISO-3166 alpha-2 country code such as DE or FR.
Overloads
format_vat(text VARCHAR) → VARCHARformat_vat(text VARCHAR, country VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (2)

Compact an EU VAT number

SELECT conform.main.format_vat('DE 136 695 976');

Compact a German VAT number

SELECT conform.main.format_vat('136 695 976', 'DE');
Link
iban_country (text VARCHAR) 2 examples

Two-letter country code of a valid IBAN, or NULL if invalid

Arguments
text VARCHAR
IBAN.
ReturnsVARCHAR
Examples (2)

Country code of an IBAN

SELECT conform.main.iban_country('GB82WEST12345698765432');

Audit supplier bank details: validate and pretty-print each IBAN, normalize the VAT number, and flag whether the IBAN's country matches the VAT number's country (NULL when the IBAN is invalid).

WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;
Link
is_valid_card (text VARCHAR) 1 example

True if the card number's digits pass the Luhn checksum

Arguments
text VARCHAR
Card number to validate.
ReturnsBOOLEAN
Example

Validate a card number via Luhn

SELECT conform.main.is_valid_card('4111 1111 1111 1111');
Link
is_valid_email (text VARCHAR) 1 example

True if text is a syntactically valid email address (no DNS lookup)

Arguments
text VARCHAR
Email address to validate.
ReturnsBOOLEAN
Example

Valid email

SELECT conform.main.is_valid_email('[email protected]');
Link
is_valid_iban (text VARCHAR) 1 example

True if text is a structurally valid IBAN (checksum included)

Arguments
text VARCHAR
IBAN to validate.
ReturnsBOOLEAN
Example

Validate an IBAN

SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32');
Link
is_valid_phone (text VARCHAR, region VARCHAR) +1 overload 2 examples

True if text is a valid phone number (region defaults to 'US')

Arguments
text VARCHAR
Phone number to validate.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
is_valid_phone(text VARCHAR) → BOOLEANis_valid_phone(text VARCHAR, region VARCHAR) → BOOLEAN
ReturnsBOOLEAN
Examples (2)

Validate a US phone number

SELECT conform.main.is_valid_phone('202-456-1111');

Validate a UK phone number

SELECT conform.main.is_valid_phone('07911 123456', 'GB');
Link
is_valid_postal_code (text VARCHAR, country VARCHAR) 2 examples

True if text matches a country's postal-code format (modest coverage: US, CA, GB, DE, FR, NL, AU, JP, IN, BR). Unknown country raises an error.

Arguments
text VARCHAR
Postal code to validate.
country VARCHAR
ISO-3166 alpha-2 country code, e.g. 'US', 'CA'.
ReturnsBOOLEAN
Examples (2)

Validate a US ZIP code

SELECT conform.main.is_valid_postal_code('90210', 'US');

Validate a Canadian postal code

SELECT conform.main.is_valid_postal_code('K1A 0B1', 'CA');
Link
is_valid_url (text VARCHAR) 1 example

True if text is an absolute URL with a scheme and host

Arguments
text VARCHAR
URL to validate.
ReturnsBOOLEAN
Example

Validate a URL

SELECT conform.main.is_valid_url('https://example.com/path');
Link
is_valid_vat (text VARCHAR, country VARCHAR) +1 overload 2 examples

True if text is a valid EU VAT number (country-prefixed, e.g. 'DE136695976')

Arguments
text VARCHAR
VAT number (country-prefixed).
country VARCHAR
ISO-3166 alpha-2 country code such as DE or FR.
Overloads
is_valid_vat(text VARCHAR) → BOOLEANis_valid_vat(text VARCHAR, country VARCHAR) → BOOLEAN
ReturnsBOOLEAN
Examples (2)

Validate a country-prefixed EU VAT number

SELECT conform.main.is_valid_vat('DE136695976');

Validate a German VAT number (unprefixed)

SELECT conform.main.is_valid_vat('136695976', 'DE');
Link
mask_card (text VARCHAR) 9 examples

Mask all but the last four digits, e.g. '************1234' (NULL if <4 digits)

Arguments
text VARCHAR
Card number to mask.
ReturnsVARCHAR
Examples (9)

Mask a card number

SELECT conform.main.mask_card('4111-1111-1111-1111');
SELECT conform.main.card_brand('4111111111111111');
SELECT conform.main.is_valid_card('4111 1111 1111 1111');
6 more examples
SELECT conform.main.normalize_email('[email protected]');
SELECT conform.main.format_phone_e164('202-456-1111');
WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;
WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;
WITH suppliers(name, iban, vat) AS (VALUES ('Alpen GmbH', 'DE89 3704 0044 0532 0130 00', 'DE 136 695 976'), ('Thames Ltd', 'GB82WEST12345698765432', 'DE136695976'), ('Seine SA', 'FR1420041010050500013M02606', 'FR40303265045'), ('Typo BV', 'NL00ABNA0417164300', 'NL004495445B01')) SELECT name, conform.main.is_valid_iban(iban) AS iban_ok, conform.main.format_iban(iban) AS iban, conform.main.iban_country(iban) AS iban_country, conform.main.format_vat(vat) AS vat, conform.main.iban_country(iban) = left(conform.main.format_vat(vat), 2) AS countries_match
FROM suppliers
ORDER BY name;
WITH payments(pan) AS (VALUES ('4111 1111 1111 1111'), ('4111 1111 1111 1112'), ('5555 5555 5555 4444'), ('3782 822463 10005'), ('6011111111111117'), ('9999 0000')) SELECT b.brand, count(p.pan) AS cards, count(p.pan) FILTER (WHERE conform.main.is_valid_card(p.pan)) AS luhn_valid
FROM conform.main.card_brands AS b
LEFT JOIN payments AS p ON conform.main.card_brand(p.pan) = b.brand
GROUP BY b.brand
ORDER BY b.brand;
Link
normalize_email (text VARCHAR) 2 examples

Normalized email address (lower-cased domain, etc.), or NULL if invalid

Arguments
text VARCHAR
Email address to normalize.
ReturnsVARCHAR
Examples (2)

Normalize an email address

SELECT conform.main.normalize_email('[email protected]');

Count sign-ups per email domain after dropping invalid addresses, collapsing addresses that differ only in domain case into one unique address.

WITH signups(email) AS (VALUES ('[email protected]'), ('[email protected]'), ('[email protected]'), ('[email protected]'), ('not-an-email')) SELECT conform.main.email_domain(email) AS domain, count(*) AS signup_rows, count(DISTINCT conform.main.normalize_email(email)) AS unique_addresses
FROM signups
WHERE conform.main.is_valid_email(email)
GROUP BY domain
ORDER BY domain;
Link
normalize_url (text VARCHAR) 1 example

Lower-case scheme + host and strip a default port, or NULL if invalid

Arguments
text VARCHAR
URL to normalize.
ReturnsVARCHAR
Example

Normalize a URL

SELECT conform.main.normalize_url('HTTP://Example.com:80/Path');
Link
phone_region (text VARCHAR, region VARCHAR) +1 overload 3 examples

The ISO region a phone number belongs to (parse region defaults to 'US')

Arguments
text VARCHAR
Phone number.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
phone_region(text VARCHAR) → VARCHARphone_region(text VARCHAR, region VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (3)

Region a number belongs to

SELECT conform.main.phone_region('+447400123456');

Find contacts whose (valid) phone number belongs to a different country than the one on their record, showing the number's real region, E.164 form and line type.

WITH contacts(name, country, phone) AS (VALUES ('Ada', 'GB', '+44 7400 123456'), ('Bea', 'US', '+49 30 901820'), ('Cal', 'FR', '+33 6 12 34 56 78'), ('Dov', 'US', '(202) 456-1111'), ('Eli', 'US', '12345')) SELECT name, country, conform.main.phone_region(phone) AS phone_region, conform.main.format_phone_e164(phone) AS e164, conform.main.phone_type(phone) AS line_type
FROM contacts
WHERE conform.main.is_valid_phone(phone) AND conform.main.phone_region(phone) <> country
ORDER BY name;

Region a UK number belongs to

SELECT conform.main.phone_region('07400 123456', 'GB');
Link
phone_type (text VARCHAR, region VARCHAR) +1 overload 2 examples

Line type of a phone number, e.g. 'mobile'/'fixed_line' (parse region 'US')

Arguments
text VARCHAR
Phone number.
region VARCHAR
ISO-3166 alpha-2 region code such as US or GB, used to parse the number.
Overloads
phone_type(text VARCHAR) → VARCHARphone_type(text VARCHAR, region VARCHAR) → VARCHAR
ReturnsVARCHAR
Examples (2)

Line type of a US number

SELECT conform.main.phone_type('202-456-1111');

Line type of a UK number

SELECT conform.main.phone_type('07911 123456', 'GB');
Link
url_host (text VARCHAR) 1 example

Lower-cased host of a valid URL, or NULL if invalid

Arguments
text VARCHAR
URL.
ReturnsVARCHAR
Example

Extract the URL host

SELECT conform.main.url_host('https://WWW.Example.com/a');
Link

Try these queries

Check whether a string is a syntactically valid email address.

SELECT conform.main.is_valid_email('[email protected]')

Uses is_valid_email

Canonicalize an email address (lower-cased domain) for deduplication.

SELECT conform.main.normalize_email('[email protected]')

Uses normalize_email

Format a US phone number into canonical E.164 storage form.

SELECT conform.main.format_phone_e164('202-456-1111')

Uses format_phone_e164

Validate an IBAN (length plus mod-97 checksum).

SELECT conform.main.is_valid_iban('GB82 WEST 1234 5698 7654 32')

Uses is_valid_iban

Detect a payment card's brand from its prefix and length.

SELECT conform.main.card_brand('4111111111111111')

Uses card_brand

Mask a card number, keeping only the last four digits.

SELECT conform.main.mask_card('4111-1111-1111-1111')

Uses mask_card

40 more examples in the Catalog, each listed under the table or function it uses.

Questions it can answer

Plain-English questions from the worker's agent test tasks. An AI agent with this catalog attached should answer each one with SQL.

  • Is '[email protected]' a syntactically valid email address? Return the boolean.
  • Normalize the email address '[email protected]' to its canonical form.
  • Extract just the domain part of the email address '[email protected]'.
  • Is '202-456-1111' a valid US phone number? Return the boolean.
  • Format the UK phone number '07911 123456' as a canonical E.164 string.
  • Format the US phone number '2024561111' in national display form.

Conform is an independent open-source connector from Query.Farm. It is not affiliated with, endorsed by or sponsored by the services, projects or organisations it works with. Product names, logos and trademarks belong to their respective owners.