Skip to content

US wages (OEWS)

Occupational employment and wages for the US, states and metro areas, plus SOC occupations

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/us-wages/index.md to help me query US wages (OEWS) 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.

The five metro areas paying registered nurses the highest median wage

Example output · captured
Connector release
v0.2.0
Engine
2.0.1
VGI protocol
3.4.0
SELECT area_title, a_median, tot_emp
FROM us_wages.main.wages(occupation := '29-1141', area_type := 'metro')
WHERE a_median IS NOT NULL
ORDER BY a_median DESC
LIMIT 5
Result
area_title a_median tot_emp
San Jose-Sunnyvale-Santa Clara, CA 216,740 22,930
Vallejo, CA 203,290 4120
San Francisco-Oakland-Fremont, CA 186,610 41,750
Santa Rosa-Petaluma, CA 174,550 3720
Sacramento-Roseville-Folsom, CA 171,460 23,590

Quick start

Choose where to run US wages (OEWS), 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 'us_wages' AS us_wages (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-wages-worker'
);

3. Run a query

query.sql
SELECT area_title, a_median, tot_emp
FROM us_wages.main.wages(occupation := '29-1141', area_type := 'metro')
WHERE a_median IS NOT NULL
ORDER BY a_median DESC
LIMIT 5
More example queries →
Technical details
Verified connector release
v0.2.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 'us_wages' AS us_wages (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-wages-worker'
);

Overview

US employment and wages by occupation for the nation, states, metro and nonmetro areas from the BLS Occupational Employment and Wage Statistics (OEWS) survey, with the SOC 2018 occupation classification, occupation search and a ZIP-to-metro lookup. No API key needed.

ATTACH options

cache_dir
Directory for downloaded BLS files and their Parquet conversions (about 25 MB per release). Default: the per-user cache directory, e.g. ~/.cache/vgi-us-wages or ~/Library/Caches/vgi-us-wages.VARCHAR
base_url
Where BLS files are fetched from: https://www.bls.gov (default), a mirror URL, or a local directory laid out like bls.gov (oes/tables.htm, oes/special-requests/oesmYYall.zip, oes/area_definitions_mYYYY.xlsx).VARCHAR
user_agent
User-Agent sent to bls.gov (default 'vgi-us-wages/0.1 (+https://query.farm)'). BLS asks automated clients to identify themselves, ideally with contact details; set your own if bls.gov answers 403.VARCHAR
offline
Never touch the network: use only what is cached (default false).BOOLEAN

Catalog

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

us_wages 1 schema
main 2 tables · 6 functions

OEWS wage and employment estimates, the OEWS area list and ZIP lookup, the SOC 2018 occupation hierarchy and occupation search, and cache management.

Schema examples (12)
Examples (12)

The five metro areas paying registered nurses the highest median wage

SELECT area_title, a_median, tot_emp
FROM us_wages.main.wages(occupation := '29-1141', area_type := 'metro')
WHERE a_median IS NOT NULL
ORDER BY a_median DESC
LIMIT 5;
Result
area_title a_median tot_emp
San Jose-Sunnyvale-Santa Clara, CA 216,740 22,930
Vallejo, CA 203,290 4120
San Francisco-Oakland-Fremont, CA 186,610 41,750
Santa Rosa-Petaluma, CA 174,550 3720
Sacramento-Roseville-Folsom, CA 171,460 23,590

Median annual pay of each major occupation group in California

SELECT occ_code, occ_title, a_median
FROM us_wages.main.wages(area := '06')
WHERE o_group = 'major'
ORDER BY a_median DESC NULLS LAST;

Software developer pay in the metro area that contains ZIP 94103

SELECT area_title, cbsa_code, estimate_geography, a_median
FROM us_wages.main.wages_for_zip('94103', '15-1252')
ORDER BY area_code;

Best-paid healthcare occupations in the metro area around Hartford ZIP 06103

SELECT occ_title, a_median
FROM us_wages.main.wages_for_zip('06103', '29-')
WHERE o_group = 'detailed'
ORDER BY a_median DESC NULLS LAST
LIMIT 10;
8 more examples

How many areas of each type the latest release covers

SELECT area_type_name, count(*) AS areas
FROM us_wages.main.areas()
GROUP BY area_type_name
ORDER BY areas DESC;

Metro areas that include part of Connecticut

SELECT area_code, area_title, county_count
FROM us_wages.main.areas()
WHERE area_type_name = 'metro' AND list_contains(states, 'CT')
ORDER BY area_code;

Connecticut's planning regions and the OEWS area of each

SELECT county_fips, county_name, area_title
FROM us_wages.main.area_counties()
WHERE state_abbr = 'CT'
ORDER BY county_fips;

The metro areas made of the most counties

SELECT area_title, count(*) AS counties
FROM us_wages.main.area_counties()
WHERE area_type_name = 'metro'
GROUP BY area_title
ORDER BY counties DESC
LIMIT 5;

The five best SOC matches for 'nurse'

SELECT rank, soc_code, soc_title, matched_title
FROM us_wages.main.search_occupations('nurse', max_results := 5)
ORDER BY rank;

National median pay of the occupations matching 'truck driver'

SELECT s.soc_code, s.soc_title, w.a_median
FROM us_wages.main.search_occupations('truck driver', max_results := 3) s
JOIN us_wages.main.wages(area := '99') w ON w.occ_code = s.soc_code
ORDER BY s.rank;

Make sure the newest OEWS release is cached

SELECT kind, release_year, rows, sha256
FROM us_wages.main.refresh()
ORDER BY kind;

Prefetch the May 2024 release

SELECT kind, release_year, bytes
FROM us_wages.main.refresh(release := '2024')
ORDER BY kind;
Tables
cache_info 3 examples11 cols

List the OEWS releases and area definitions in the local cache, plus the bundled tables

Columns
kind VARCHAR
oews_release, area_definitions, latest_pointer or bundled.
release_year SMALLINT
May reference year (NULL for bundled tables).
pathnot null VARCHAR
Local file holding the data (unique per row).
bytes BIGINT
Size of the local file, in bytes.
rows BIGINT
Rows in the table.
source_url VARCHAR
Where the data was downloaded from.
sha256 VARCHAR
SHA-256 of the downloaded upstream file.
etag VARCHAR
Upstream ETag at download time.
last_modified VARCHAR
Upstream Last-Modified at download time.
fetched_at TIMESTAMP WITH TIME ZONE
When it was downloaded (or checked).
vintage VARCHAR
Edition of the data, e.g. 'May 2025' or 'O*NET 31.0'.
ConstraintsPRIMARY KEY (path)
Examples (3)

Everything the worker holds locally: bundled reference tables, plus any OEWS releases downloaded so far and when they were fetched

SELECT kind, path, release_year, bytes, fetched_at
FROM us_wages.main.cache_info
ORDER BY kind, path;

Cache entries by kind

SELECT kind, count(*) AS entries
FROM us_wages.main.cache_info
GROUP BY kind
ORDER BY kind;

Row counts of the bundled reference tables

SELECT path, rows
FROM us_wages.main.cache_info
WHERE kind = 'bundled'
ORDER BY path;
Link
occupations 4 examples11 cols

The 2018 Standard Occupational Classification: 1,447 major, minor, broad and detailed groups

Columns
soc_codenot null VARCHAR
SOC 2018 code 'XX-XXXX'.
soc_title VARCHAR
SOC 2018 title.
soc_level VARCHAR
major, minor, broad or detailed.
major_code VARCHAR
Major group code, e.g. '15-0000'.
major_title VARCHAR
Major group title.
minor_code VARCHAR
Minor group code, e.g. '15-1200' (NULL for major rows).
minor_title VARCHAR
Minor group title.
broad_code VARCHAR
Broad occupation code, e.g. '15-1250' (NULL above broad level).
broad_title VARCHAR
Broad occupation title.
definition VARCHAR
SOC definition (detailed occupations only).
onet_soc_codes VARCHAR[]
O*NET-SOC codes under a detailed occupation, e.g. '15-1252.00'.
ConstraintsPRIMARY KEY (soc_code)
Examples (4)

The SOC major groups with the most detailed occupations

SELECT major_title, count(*) AS detailed_occupations
FROM us_wages.main.occupations
WHERE soc_level = 'detailed'
GROUP BY major_title
ORDER BY detailed_occupations DESC
LIMIT 5;

Definitions of the health diagnosing and treating practitioners

SELECT soc_code, soc_title, definition
FROM us_wages.main.occupations
WHERE minor_code = '29-1000' AND soc_level = 'detailed'
ORDER BY soc_code;

Number of occupations at each SOC level

SELECT soc_level, count(*) AS n
FROM us_wages.main.occupations
GROUP BY soc_level
ORDER BY n;
1 more example

Detailed occupations in the Software Developers broad group

SELECT soc_code, soc_title
FROM us_wages.main.occupations
WHERE broad_code = '15-1250' AND soc_level = 'detailed'
ORDER BY soc_code;
Link
Table functions
area_counties (release := VARCHAR) 2 examples

Which OEWS metro or nonmetro area each county belongs to (May 2024 releases onward)

Named arguments
release := VARCHAR
May reference year as text ('2024'), or 'latest' (default) for the newest BLS release. · default "latest"
Returns columns
release_year SMALLINT
May reference year of the area definitions.
county_fips VARCHAR
5-digit county FIPS (Connecticut: 2022 planning regions).
county_name VARCHAR
County or county-equivalent name.
state_fips VARCHAR
2-digit state FIPS.
state_abbr VARCHAR
USPS state code.
area_code VARCHAR
OEWS area the county belongs to (CBSA or 7-digit nonmetro).
area_title VARCHAR
OEWS area name.
area_type_name VARCHAR
metro or nonmetro.
cbsa_code VARCHAR
CBSA code when the area is a metro area, else NULL.
Examples (2)

Connecticut's planning regions and the OEWS area of each

SELECT county_fips, county_name, area_title
FROM us_wages.main.area_counties()
WHERE state_abbr = 'CT'
ORDER BY county_fips;

The metro areas made of the most counties

SELECT area_title, count(*) AS counties
FROM us_wages.main.area_counties()
WHERE area_type_name = 'metro'
GROUP BY area_title
ORDER BY counties DESC
LIMIT 5;
Link
areas (release := VARCHAR) 2 examples

The OEWS areas of a release: US, states, territories, metro (CBSA) and nonmetro areas

Named arguments
release := VARCHAR
May reference year as text ('2024'), or 'latest' (default) for the newest BLS release. · default "latest"
Returns columns
release_year SMALLINT
May reference year of the OEWS estimates (e.g. 2025).
area_code VARCHAR
OEWS area code: '99' US, 2-digit state FIPS, 5-digit CBSA, 7-digit nonmetro.
area_title VARCHAR
Area name as BLS publishes it.
area_type TINYINT
BLS area type: 1 US, 2 state, 3 territory, 4 metro (MSA), 6 nonmetro.
area_type_name VARCHAR
national, state, territory, metro or nonmetro.
prim_state VARCHAR
USPS abbreviation of the area's primary state ('US' for the nation).
state_fips VARCHAR
2-digit FIPS code of prim_state (NULL for the US row).
cbsa_code VARCHAR
5-digit OMB CBSA code for metro rows; NULL for NECTAs and non-metro rows.
is_necta BOOLEAN
True for New England NECTA metro areas (releases before May 2024).
county_count INTEGER
Counties (or county equivalents) in the area; NULL before May 2024.
states VARCHAR[]
USPS codes of every state the area touches.
occupation_rows BIGINT
Cross-industry occupation rows BLS publishes for the area.
Examples (2)

How many areas of each type the latest release covers

SELECT area_type_name, count(*) AS areas
FROM us_wages.main.areas()
GROUP BY area_type_name
ORDER BY areas DESC;

Metro areas that include part of Connecticut

SELECT area_code, area_title, county_count
FROM us_wages.main.areas()
WHERE area_type_name = 'metro' AND list_contains(states, 'CT')
ORDER BY area_code;
Link
refresh (force := BOOLEAN, release := VARCHAR) 2 examples

Download a release into the cache, or re-download it when BLS has republished it

Named arguments
force := BOOLEAN
Re-download even when BLS's copy is unchanged. · default false
release := VARCHAR
'latest' (re-checks BLS for a newer year) or a year. · default "latest"
Returns columns
kind VARCHAR
oews_release, area_definitions, latest_pointer or bundled.
release_year SMALLINT
May reference year (NULL for bundled tables).
path VARCHAR
Local file holding the data (unique per row).
bytes BIGINT
Size of the local file, in bytes.
rows BIGINT
Rows in the table.
source_url VARCHAR
Where the data was downloaded from.
sha256 VARCHAR
SHA-256 of the downloaded upstream file.
etag VARCHAR
Upstream ETag at download time.
last_modified VARCHAR
Upstream Last-Modified at download time.
fetched_at TIMESTAMP WITH TIME ZONE
When it was downloaded (or checked).
vintage VARCHAR
Edition of the data, e.g. 'May 2025' or 'O*NET 31.0'.
Examples (2)

Make sure the newest OEWS release is cached

SELECT kind, release_year, rows, sha256
FROM us_wages.main.refresh()
ORDER BY kind;

Prefetch the May 2024 release

SELECT kind, release_year, bytes
FROM us_wages.main.refresh(release := '2024')
ORDER BY kind;
Link
search_occupations (text VARCHAR, max_results := BIGINT) 4 examples

Find SOC 2018 codes for a job title, searching SOC titles and 54,000 O*NET alternate titles

Positional arguments
text VARCHAR
Job title or words to look for, e.g. 'nurse' or 'software developer'.
Named arguments
max_results := BIGINT
Rows to return, 1 to 200. · default 10
Returns columns
rank INTEGER
1 = best match.
soc_code VARCHAR
SOC 2018 code to pass to wages(occupation := ...).
soc_title VARCHAR
SOC title of that code.
soc_level VARCHAR
major, minor, broad or detailed.
matched_title VARCHAR
The title that matched the search text.
match_source VARCHAR
soc_title, onet_title or onet_job_title (O*NET alternate title).
onet_soc_code VARCHAR
O*NET-SOC code of an O*NET match, e.g. '29-1141.00'.
score DOUBLE
Match quality from 0 to 1 (1 = exact title).
Examples (4)

The five best SOC matches for 'nurse'

SELECT rank, soc_code, soc_title, matched_title
FROM us_wages.main.search_occupations('nurse', max_results := 5)
ORDER BY rank;

National median pay of the occupations matching 'truck driver'

SELECT s.soc_code, s.soc_title, w.a_median
FROM us_wages.main.search_occupations('truck driver', max_results := 3) s
JOIN us_wages.main.wages(area := '99') w ON w.occ_code = s.soc_code
ORDER BY s.rank;
SELECT soc_code, soc_title
FROM us_wages.main.search_occupations('software developer')
WHERE rank = 1;
1 more example
SELECT soc_code, match_source
FROM us_wages.main.search_occupations('barista', max_results := 1)
ORDER BY rank;
Link
wages (area := VARCHAR, area_type := VARCHAR, industry := VARCHAR, occupation := VARCHAR, release := VARCHAR, state := VARCHAR) 2 examples

BLS OEWS employment and wages by occupation, area and industry for one May release

Named arguments
area := VARCHAR
OEWS area code: '99' (US), state FIPS ('06'), CBSA ('41860') or nonmetro ('0600001'); 'all'. · default "all"
area_type := VARCHAR
national, state, territory, metro, nonmetro, or all. · default "all"
industry := VARCHAR
'cross-industry' (default), 'all' (adds national NAICS rows) or a NAICS code such as '541500'. · default "cross-industry"
occupation := VARCHAR
SOC code 'XX-XXXX' (e.g. '15-1252'), a code prefix such as '15-' or '29-11' for a whole group, or 'all' (default). · default "all"
release := VARCHAR
May reference year as text ('2024'), or 'latest' (default) for the newest BLS release. · default "latest"
state := VARCHAR
Only areas whose primary state is this USPS code ('CA') or FIPS ('06'): the state and its metros. · default ""
Returns columns
release_year SMALLINT
May reference year, e.g. 2025.
area_code VARCHAR
'99' US, state FIPS, 5-digit CBSA or 7-digit nonmetro code.
area_title VARCHAR
Area name.
area_type TINYINT
1 US, 2 state, 3 territory, 4 metro, 6 nonmetro.
area_type_name VARCHAR
national/state/territory/metro/nonmetro.
prim_state VARCHAR
Primary state, USPS code.
state_fips VARCHAR
2-digit FIPS of prim_state.
cbsa_code VARCHAR
CBSA code of metro rows (NULL for NECTAs).
is_necta BOOLEAN
New England NECTA (pre-2024 releases).
naics VARCHAR
NAICS code; '000000' cross-industry.
naics_title VARCHAR
Industry title.
i_group VARCHAR
Industry level, e.g. cross-industry, sector.
own_code VARCHAR
Ownership code; 1235 = all.
occ_code VARCHAR
SOC code 'XX-XXXX'.
occ_title VARCHAR
Occupation title.
o_group VARCHAR
total/major/minor/broad/detailed.
tot_emp BIGINT
Employment (excl. self-employed).
emp_prse DOUBLE
Employment RSE, %.
jobs_1000 DOUBLE
Jobs per 1,000 in the area.
loc_quotient DOUBLE
Location quotient vs US.
h_mean DOUBLE
Mean hourly wage, USD.
a_mean DOUBLE
Mean annual wage, USD.
mean_prse DOUBLE
Mean wage RSE, %.
h_pct10 DOUBLE
Hourly wage, 10th percentile.
h_pct25 DOUBLE
Hourly wage, 25th percentile.
h_median DOUBLE
Median hourly wage.
h_pct75 DOUBLE
Hourly wage, 75th percentile.
h_pct90 DOUBLE
Hourly wage, 90th percentile.
a_pct10 DOUBLE
Annual wage, 10th percentile.
a_pct25 DOUBLE
Annual wage, 25th percentile.
a_median DOUBLE
Median annual wage.
a_pct75 DOUBLE
Annual wage, 75th percentile.
a_pct90 DOUBLE
Annual wage, 90th percentile.
annual_only BOOLEAN
Only annual wages published.
hourly_only BOOLEAN
Only hourly wages published.
suppressed_columns VARCHAR[]
Columns BLS marked * / ** (NULL here).
topcoded_columns VARCHAR[]
Columns BLS top-coded # (NULL here).
topcode_hourly DOUBLE
Hourly top-code threshold.
topcode_annual DOUBLE
Annual top-code threshold.
pct_total DOUBLE
% of industry employment.
pct_rpt DOUBLE
% of establishments reporting.
pct_rpt_below_half BOOLEAN
pct_rpt was ~ (<0.5%).
Examples (2)

The five metro areas paying registered nurses the highest median wage

SELECT area_title, a_median, tot_emp
FROM us_wages.main.wages(occupation := '29-1141', area_type := 'metro')
WHERE a_median IS NOT NULL
ORDER BY a_median DESC
LIMIT 5;
Result
area_title a_median tot_emp
San Jose-Sunnyvale-Santa Clara, CA 216,740 22,930
Vallejo, CA 203,290 4120
San Francisco-Oakland-Fremont, CA 186,610 41,750
Santa Rosa-Petaluma, CA 174,550 3720
Sacramento-Roseville-Folsom, CA 171,460 23,590

Median annual pay of each major occupation group in California

SELECT occ_code, occ_title, a_median
FROM us_wages.main.wages(area := '06')
WHERE o_group = 'major'
ORDER BY a_median DESC NULLS LAST;
Link
wages_for_zip (zip VARCHAR, occupation VARCHAR, all_areas := BOOLEAN, release := VARCHAR) 2 examples

Metro-level OEWS wages for the metro or nonmetro area containing a ZIP code (not ZIP-level)

Positional arguments
zip VARCHAR
5-digit ZIP code, e.g. '94103'.
occupation VARCHAR
SOC code 'XX-XXXX' (e.g. '15-1252'), a code prefix such as '15-' or '29-11' for a whole group, or 'all'.
Named arguments
all_areas := BOOLEAN
Also return the other OEWS areas a ZIP straddles (default: primary only). · default false
release := VARCHAR
May reference year as text ('2024'), or 'latest' (default) for the newest BLS release. May 2024 or later. · default "latest"
Returns columns
zip VARCHAR
ZIP code asked about.
estimate_geography VARCHAR
Which area the figures describe (never the ZIP).
zcta_land_share DOUBLE
Share of the ZCTA's land in this area.
is_primary_area BOOLEAN
Area holding most of the ZCTA.
counties VARCHAR[]
County FIPS of the ZCTA in this area.
release_year SMALLINT
May reference year, e.g. 2025.
area_code VARCHAR
'99' US, state FIPS, 5-digit CBSA or 7-digit nonmetro code.
area_title VARCHAR
Area name.
area_type TINYINT
1 US, 2 state, 3 territory, 4 metro, 6 nonmetro.
area_type_name VARCHAR
national/state/territory/metro/nonmetro.
prim_state VARCHAR
Primary state, USPS code.
state_fips VARCHAR
2-digit FIPS of prim_state.
cbsa_code VARCHAR
CBSA code of metro rows (NULL for NECTAs).
is_necta BOOLEAN
New England NECTA (pre-2024 releases).
occ_code VARCHAR
SOC code 'XX-XXXX'.
occ_title VARCHAR
Occupation title.
o_group VARCHAR
total/major/minor/broad/detailed.
tot_emp BIGINT
Employment (excl. self-employed).
emp_prse DOUBLE
Employment RSE, %.
jobs_1000 DOUBLE
Jobs per 1,000 in the area.
loc_quotient DOUBLE
Location quotient vs US.
h_mean DOUBLE
Mean hourly wage, USD.
a_mean DOUBLE
Mean annual wage, USD.
mean_prse DOUBLE
Mean wage RSE, %.
h_pct10 DOUBLE
Hourly wage, 10th percentile.
h_pct25 DOUBLE
Hourly wage, 25th percentile.
h_median DOUBLE
Median hourly wage.
h_pct75 DOUBLE
Hourly wage, 75th percentile.
h_pct90 DOUBLE
Hourly wage, 90th percentile.
a_pct10 DOUBLE
Annual wage, 10th percentile.
a_pct25 DOUBLE
Annual wage, 25th percentile.
a_median DOUBLE
Median annual wage.
a_pct75 DOUBLE
Annual wage, 75th percentile.
a_pct90 DOUBLE
Annual wage, 90th percentile.
annual_only BOOLEAN
Only annual wages published.
hourly_only BOOLEAN
Only hourly wages published.
suppressed_columns VARCHAR[]
Columns BLS marked * / ** (NULL here).
topcoded_columns VARCHAR[]
Columns BLS top-coded # (NULL here).
topcode_hourly DOUBLE
Hourly top-code threshold.
topcode_annual DOUBLE
Annual top-code threshold.
Examples (2)

Software developer pay in the metro area that contains ZIP 94103

SELECT area_title, cbsa_code, estimate_geography, a_median
FROM us_wages.main.wages_for_zip('94103', '15-1252')
ORDER BY area_code;

Best-paid healthcare occupations in the metro area around Hartford ZIP 06103

SELECT occ_title, a_median
FROM us_wages.main.wages_for_zip('06103', '29-')
WHERE o_group = 'detailed'
ORDER BY a_median DESC NULLS LAST
LIMIT 10;
Link

Try these queries

Median annual pay of each major occupation group in California

SELECT occ_code, occ_title, a_median
FROM us_wages.main.wages(area := '06')
WHERE o_group = 'major'
ORDER BY a_median DESC NULLS LAST

Uses wages

Software developer pay in the metro area that contains ZIP 94103

SELECT area_title, cbsa_code, estimate_geography, a_median
FROM us_wages.main.wages_for_zip('94103', '15-1252')
ORDER BY area_code

Uses wages_for_zip

How many areas of each type the latest release covers

SELECT area_type_name, count(*) AS areas
FROM us_wages.main.areas()
GROUP BY area_type_name
ORDER BY areas DESC

Uses areas

Connecticut's planning regions and the OEWS area of each

SELECT county_fips, county_name, area_title
FROM us_wages.main.area_counties()
WHERE state_abbr = 'CT'
ORDER BY county_fips

Uses area_counties

The five best SOC matches for 'nurse'

SELECT rank, soc_code, soc_title, matched_title
FROM us_wages.main.search_occupations('nurse', max_results := 5)
ORDER BY rank

Uses search_occupations

Make sure the newest OEWS release is cached

SELECT kind, release_year, rows, sha256
FROM us_wages.main.refresh()
ORDER BY kind

Uses refresh

14 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.

  • Using the us_wages worker, how many SOC 2018 major occupation groups are there?
  • Using the us_wages worker's occupation search, what is the SOC code for software developers?
  • Using the us_wages worker, which metropolitan area has the highest annual median wage for registered nurses in the latest release?
  • Using the us_wages worker, which OEWS metro area are wage figures for ZIP code 94103 taken from?
  • Using the us_wages worker, how many metropolitan areas does the latest OEWS release cover?
  • Using the us_wages worker, how many Connecticut counties or county equivalents belong to the Hartford metro area (CBSA 25540) in the latest area definitions?

US wages (OEWS) 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.