US soccer
MLS, NWSL, NEXT Pro, and USL standings, schedules, stats, and xG as SQL tables
- Connector software
- Free and open source
- Service credentials
- Not needed
- Query Farm hosting
- Available · $10/month organization minimum
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-soccer/index.md to help me query US soccer 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.
mls_historical_match_result
Example output · captured
- Connector release
- v0.3.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT home_club_abbreviation, home_goals, away_goals,
away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
| home_club_abbreviation | home_goals | away_goals | away_club_abbreviation |
|---|---|---|---|
| CIN | 0 | 2 | CLB |
Quick start
Choose where to run US soccer, 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.
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;
INSTALL vgi FROM community;
LOAD vgi;
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_soccer' AS us_soccer (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-soccer'
);
3. Run a query
SELECT home_club_abbreviation, home_goals, away_goals,
away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
Run the connector on a server you manage. You operate the service and choose who can connect.
1. Deploy the connector on your server
Follow the connector’s deployment instructions. Use its supported HTTP transport, or launch it remotely over SSH. The connection guide explains both options.
2. Install the vgi extension
Run this in your SQL client. On DuckDB, keep FROM query_farm on LOAD in later sessions.
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach the connector
For an HTTP deployment, replace the example URL with your endpoint. Add the authentication options your deployment requires. For SSH, use the SSH connection instructions.
ATTACH 'us_soccer' AS us_soccer
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT home_club_abbreviation, home_goals, away_goals,
away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
Query Farm operates US soccer for your team. Hosting has a $10 monthly minimum per organization; usage counts toward it. From $2.97 per instance-month ($10 monthly minimum).
1. Create your hosted connector
Open the console, choose your organization and deployment size, and add any service credentials there.
2. Install the vgi extension
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;
INSTALL vgi FROM community;
LOAD vgi;
3. Attach your deployment
Copy the ATTACH statement from your deployment in the console and run it in DuckDB or Haybarn. Use us_soccer as the catalog alias for the query below.
4. Run a query
SELECT home_club_abbreviation, home_goals, away_goals,
away_club_abbreviation
FROM us_soccer.mls.match('MLS-MAT-0009NL');
Technical details
- Verified connector release
- v0.3.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
- Verified on
- December 1, 2026
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_soccer' AS us_soccer (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-us-soccer'
);
Overview
Read-only MLS, NWSL, and American Soccer Analysis data for US professional soccer
Query MLS, NWSL, and the wider US soccer pyramid directly from SQL.
Schemas
mlsuses the official MLS Stats API behind mlssoccer.com/stats. It covers MLS, NEXT Pro, and the cups.nwsluses the official NWSL Sports Data Platform behind nwslsoccer.com.asauses American Soccer Analysis for expected goals, goals added, and salaries, through its public API.
Every call fetches on demand and nothing is rehosted. Seasons are passed as plain years. ASA data is CC BY-SA 4.0 and must be attributed to American Soccer Analysis. This worker is not affiliated with MLS, the NWSL, or ASA.
Catalog
Everything us_soccer exposes once attached — read straight from the worker's
released build.
asa 6 functions
American Soccer Analysis advanced metrics (CC BY-SA 4.0) for MLS, NWSL, and USL
Schema examples (2)
2025 MLS teams by expected goal difference.
SELECT team_name, round(xgoal_difference, 1) AS xgd
FROM us_soccer.asa.xg_teams(season := 2025)
ORDER BY xgd DESC;
2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.
WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10;
goals_added_players (league := VARCHAR, minimum_minutes := INTEGER, season := INTEGER, stage := VARCHAR)
Player goals added (g+) by action type from American Soccer Analysis
Top 2025 NWSL players by goals added above average.
SELECT player_name, team_abbreviation, general_position,
round(goals_added_above_avg, 2) AS gplus
FROM us_soccer.asa.goals_added_players(league := 'nwsl', season := 2025, minimum_minutes := 1000)
ORDER BY goals_added_above_avg DESC
LIMIT 10;
2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.
WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10;
salaries (season := INTEGER)
MLS Players Association salary releases, as compiled by American Soccer Analysis
Highest guaranteed compensation in the latest 2025 release.
SELECT player_name, team_abbreviation, guaranteed_compensation
FROM us_soccer.asa.salaries(season := 2025)
QUALIFY release_date = max(release_date) OVER ()
ORDER BY guaranteed_compensation DESC
LIMIT 10;
teams (league := VARCHAR)
American Soccer Analysis team directory for one league
USL Championship teams.
SELECT team_abbreviation, team_name
FROM us_soccer.asa.teams(league := 'uslc')
ORDER BY 2;
xg_games (league := VARCHAR, season := INTEGER, stage := VARCHAR)
Match-level expected goals and expected points for a season
The 2025 MLS matches with the highest combined xG.
SELECT kickoff, home_team_name, away_team_name, home_goals, away_goals,
round(home_xgoals + away_xgoals, 2) AS total_xg
FROM us_soccer.asa.xg_games(season := 2025)
ORDER BY total_xg DESC
LIMIT 10;
xg_players (league := VARCHAR, minimum_minutes := INTEGER, season := INTEGER, stage := VARCHAR)
Player expected goals and expected assists from American Soccer Analysis
2025 MLS players who most outperformed their xG.
SELECT player_name, team_abbreviation, goals, round(xgoals, 1) AS xg,
round(goals_minus_xgoals, 1) AS diff
FROM us_soccer.asa.xg_players(season := 2025, minimum_minutes := 1500)
ORDER BY goals_minus_xgoals DESC
LIMIT 10;
xg_teams (league := VARCHAR, season := INTEGER, stage := VARCHAR)
Team expected goals for and against with expected points
2025 MLS teams by expected goal difference.
SELECT team_name, points, round(xpoints, 1) AS xpts,
round(xgoal_difference, 1) AS xgd
FROM us_soccer.asa.xg_teams(season := 2025)
ORDER BY xgoal_difference DESC;
mls 5 tables · 18 functions
MLS, MLS NEXT Pro, and North American cup competitions from the MLS Stats API
Schema examples (4)
The current Supporters' Shield table.
SELECT position, club_name, games_played, points, goal_difference
FROM us_soccer.mls.current_standings
ORDER BY position;
Clubs with the best goal difference per game.
SELECT club_name, goal_difference, games_played
FROM us_soccer.mls.current_standings
ORDER BY goal_difference DESC
LIMIT 5;
2025 MLS players who scored the largest share of their club's regular-season goals, joining player_stats to the final standings.
SELECT p.player_name, p.club_abbreviation, p.goals,
s.goals_for AS club_goals,
round(100.0 * p.goals / s.goals_for, 1) AS pct_of_club_goals
FROM us_soccer.mls.player_stats(season := 2025) AS p
JOIN us_soccer.mls.standings(season := 2025) AS s USING (club_id)
ORDER BY pct_of_club_goals DESC, p.player_name
LIMIT 10;
Minutes, shots, xG, and goals for every starter in MLS-MAT-0009NL, joining match_lineups to match_player_stats.
SELECT l.club_abbreviation, l.shirt_number, l.player_name, s.minutes_played,
s.shots, round(s.xg, 2) AS xg, s.goals
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL') AS l
JOIN us_soccer.mls.match_player_stats('MLS-MAT-0009NL') AS s USING (player_id)
WHERE l.starter
ORDER BY l.club_abbreviation, l.shirt_number;
competitions
Competitions covered by the MLS Stats API, with catalog aliases
Competitions with catalog aliases.
SELECT alias, competition_id, competition_name
FROM us_soccer.mls.competitions
WHERE alias IS NOT NULL
ORDER BY alias;
current_club_stats
Current MLS regular-season club statistics, one row per club
Clubs by expected goals.
SELECT club_name, goals, round(xg, 1) AS xg, possession_ratio
FROM us_soccer.mls.current_club_stats
ORDER BY xg DESC;
current_player_stats
Current MLS regular-season player statistics, one row per player and club
Current Golden Boot race.
SELECT player_name, club_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.mls.current_player_stats
ORDER BY goals DESC
LIMIT 10;
Goalkeepers with the most saves.
SELECT player_name, club_abbreviation, goalkeeper_saves, clean_sheets
FROM us_soccer.mls.current_player_stats
WHERE goalkeeper
ORDER BY goalkeeper_saves DESC
LIMIT 10;
current_schedule
MLS-family matches from seven days ago through fourteen days ahead
Upcoming fixtures.
SELECT planned_kickoff, competition_name, home_club_name, away_club_name
FROM us_soccer.mls.current_schedule
WHERE match_status = 'scheduled'
ORDER BY planned_kickoff;
current_standings
Current MLS regular-season table, one row per club
The current Supporters' Shield table.
SELECT position, club_name, games_played, points, goal_difference
FROM us_soccer.mls.current_standings
ORDER BY position;
Clubs with the best goal difference per game.
SELECT club_name, goal_difference, games_played
FROM us_soccer.mls.current_standings
ORDER BY goal_difference DESC
LIMIT 5;
all_competitions ()
Competitions in the MLS Stats API (scan behind the competitions table)
Competitions with their catalog aliases.
SELECT competition_id, competition_name, alias
FROM us_soccer.mls.all_competitions()
ORDER BY 1;
all_current_club_stats ()
Current MLS regular-season club statistics (scan behind current_club_stats)
Read current club statistics directly from the backing scan.
SELECT club_name, goals, xg
FROM us_soccer.mls.all_current_club_stats()
ORDER BY goals DESC;
all_current_player_stats ()
Current MLS regular-season player statistics (scan behind current_player_stats)
Read current player statistics directly from the backing scan.
SELECT player_name, goals
FROM us_soccer.mls.all_current_player_stats()
ORDER BY goals DESC
LIMIT 5;
all_current_schedule ()
MLS-family matches from 7 days ago to 14 days ahead (scan behind current_schedule)
Read the rolling schedule window directly.
SELECT planned_kickoff, home_club_name, away_club_name
FROM us_soccer.mls.all_current_schedule()
ORDER BY planned_kickoff;
all_current_standings ()
Current MLS regular-season table (scan behind current_standings)
Read the current table directly from its backing scan.
SELECT position, club_name, points
FROM us_soccer.mls.all_current_standings()
ORDER BY position;
club_stats (competition := VARCHAR, season := INTEGER)
Season club statistics for an MLS-family competition
2025 MLS clubs by expected goals.
SELECT club_name, goals, round(xg, 1) AS xg, possession_ratio
FROM us_soccer.mls.club_stats(season := 2025)
ORDER BY xg DESC;
clubs (competition := VARCHAR, season := INTEGER)
Clubs registered in an MLS-family competition and season
Clubs in the 2025 MLS regular season.
SELECT club_abbreviation, club_name, city
FROM us_soccer.mls.clubs(season := 2025)
ORDER BY 2;
match (match_id VARCHAR)
Summary of one MLS match: score, venue, attendance, formations, coaches, referee
FC Cincinnati vs Columbus Crew, 18 October 2026.
SELECT home_club_name, home_goals, away_goals, away_club_name, attendance,
referee
FROM us_soccer.mls.match('MLS-MAT-0009NL');
match_club_stats (match_id VARCHAR)
Team box score for one MLS match
Compare both sides.
SELECT team_role, club_abbreviation, goals, shots, round(xg, 2) AS xg,
possession_ratio
FROM us_soccer.mls.match_club_stats('MLS-MAT-0009NL')
ORDER BY team_role DESC;
match_commentary (match_id VARCHAR)
English text commentary for one MLS match
Commentary on shots.
SELECT minute_of_play, commentary
FROM us_soccer.mls.match_commentary('MLS-MAT-0009NL')
WHERE commentary_type = 'ShotAtGoal'
ORDER BY minute, second;
match_events (match_id VARCHAR)
Key events for one MLS match: goals, shots with xG, cards, substitutions, fouls
Goals and their assisters.
SELECT minute_of_play, club_abbreviation, player_name,
other_player_name AS assist, xg
FROM us_soccer.mls.match_events('MLS-MAT-0009NL')
WHERE is_goal
ORDER BY event_time;
match_lineups (match_id VARCHAR)
Starting lineups and substitutes for one MLS match
Starting elevens.
SELECT team_role, shirt_number, player_name, lineup_position
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL')
WHERE starter
ORDER BY team_role, shirt_number;
Minutes, shots, xG, and goals for every starter in MLS-MAT-0009NL, joining match_lineups to match_player_stats.
SELECT l.club_abbreviation, l.shirt_number, l.player_name, s.minutes_played,
s.shots, round(s.xg, 2) AS xg, s.goals
FROM us_soccer.mls.match_lineups('MLS-MAT-0009NL') AS l
JOIN us_soccer.mls.match_player_stats('MLS-MAT-0009NL') AS s USING (player_id)
WHERE l.starter
ORDER BY l.club_abbreviation, l.shirt_number;
match_player_stats (match_id VARCHAR)
Player box score for one MLS match
Players with the highest xG in the match.
SELECT player_name, club_abbreviation, minutes_played, shots,
round(xg, 2) AS xg
FROM us_soccer.mls.match_player_stats('MLS-MAT-0009NL')
ORDER BY xg DESC
LIMIT 5;
player_match_log (player_id VARCHAR, competition := VARCHAR, season := INTEGER)
Per-match statistics for one MLS player, newest first
Lionel Messi's 2025 MLS regular-season match log.
SELECT planned_kickoff, match_title, minutes_played, goals, assists
FROM us_soccer.mls.player_match_log('MLS-OBJ-000396', season := 2025, competition := 'mls')
ORDER BY planned_kickoff;
player_stats (competition := VARCHAR, season := INTEGER)
Season player statistics for an MLS-family competition, per player and club
2025 MLS Golden Boot race.
SELECT player_name, club_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.mls.player_stats(season := 2025)
ORDER BY goals DESC
LIMIT 10;
2025 MLS players who scored the largest share of their club's regular-season goals, joining player_stats to the final standings.
SELECT p.player_name, p.club_abbreviation, p.goals,
s.goals_for AS club_goals,
round(100.0 * p.goals / s.goals_for, 1) AS pct_of_club_goals
FROM us_soccer.mls.player_stats(season := 2025) AS p
JOIN us_soccer.mls.standings(season := 2025) AS s USING (club_id)
ORDER BY pct_of_club_goals DESC, p.player_name
LIMIT 10;
schedule (competition := VARCHAR, end_date := DATE, season := INTEGER, start_date := DATE)
MLS-family fixtures and results by season, competition, and date range
MLS regular-season results on 18 October 2026.
SELECT match_id, home_club_abbreviation, home_goals, away_goals,
away_club_abbreviation
FROM us_soccer.mls.schedule(season := 2026, competition := 'mls', start_date := DATE '2026-10-18', end_date := DATE '2026-10-18')
ORDER BY planned_kickoff;
seasons (competition := VARCHAR)
Seasons available for an MLS competition, newest first
Every MLS NEXT Pro season.
SELECT season, season_id
FROM us_soccer.mls.seasons(competition := 'next_pro')
ORDER BY season;
standings (competition := VARCHAR, season := INTEGER, split := VARCHAR)
MLS-family league table by season, competition, and home/away/form split
The final 2025 MLS regular-season table.
SELECT position, club_name, points, goal_difference
FROM us_soccer.mls.standings(season := 2025)
ORDER BY position;
The best home records in MLS NEXT Pro this season.
SELECT position, club_name, wins, points
FROM us_soccer.mls.standings(competition := 'next_pro', split := 'home')
ORDER BY position
LIMIT 10;
nwsl 4 tables · 12 functions
National Women's Soccer League data from the official NWSL Sports Data Platform
Schema examples (2)
The current NWSL table.
SELECT position, team_name, points
FROM us_soccer.nwsl.current_standings
ORDER BY position;
The final 2025 NWSL table with each team's leading scorer (ties broken by name) and her share of the team's goals, joining standings to player_stats.
SELECT s.position, s.team_name, s.goals_for, p.player_name, p.goals,
round(100.0 * p.goals / s.goals_for, 1) AS pct_of_team_goals
FROM us_soccer.nwsl.standings(season := 2025) AS s
JOIN us_soccer.nwsl.player_stats(season := 2025) AS p USING (team_id)
QUALIFY row_number() OVER (PARTITION BY s.team_id ORDER BY p.goals DESC, p.player_name) = 1
ORDER BY s.position;
competitions
Competitions on the NWSL Sports Data Platform
Every NWSL-branded competition.
SELECT competition_name
FROM us_soccer.nwsl.competitions
WHERE competition_name LIKE 'NWSL%'
ORDER BY 1;
current_matches
Current NWSL season fixtures and results, one row per match
Most recent NWSL results.
SELECT match_time, home_team_name, home_score, away_score, away_team_name
FROM us_soccer.nwsl.current_matches
WHERE status = 'FINISHED'
ORDER BY match_time DESC
LIMIT 10;
current_player_stats
Current NWSL season player statistics, one row per player
Current NWSL scoring leaders.
SELECT player_name, team_abbreviation, goals, assists, round(xg, 1) AS xg
FROM us_soccer.nwsl.current_player_stats
ORDER BY goals DESC
LIMIT 10;
current_standings
Current NWSL regular-season table, one row per team
The current NWSL table.
SELECT position, team_name, points, form
FROM us_soccer.nwsl.current_standings
ORDER BY position;
all_competitions ()
Competitions on the NWSL Sports Data Platform (scan behind the competitions table)
Every competition name.
SELECT competition_name FROM us_soccer.nwsl.all_competitions() ORDER BY 1;
all_current_matches ()
Current NWSL season fixtures and results (scan behind current_matches)
Upcoming matches this season.
SELECT match_time, home_team_name, away_team_name
FROM us_soccer.nwsl.all_current_matches()
WHERE status = 'UPCOMING'
ORDER BY match_time;
all_current_player_stats ()
Current NWSL player statistics (scan behind current_player_stats)
Read current player statistics directly from the backing scan.
SELECT player_name, goals
FROM us_soccer.nwsl.all_current_player_stats()
ORDER BY goals DESC
LIMIT 5;
all_current_standings ()
Current NWSL league table (scan behind current_standings)
Read the current table directly from its backing scan.
SELECT position, team_name, points
FROM us_soccer.nwsl.all_current_standings()
ORDER BY 1;
match_events (match_id VARCHAR)
Event feed for one NWSL match: goals, shots, cards, substitutions, fouls
Goals and shots in the 2026 season opener.
SELECT minute, team_abbreviation, player_name, event_type, description
FROM us_soccer.nwsl.match_events('nwsl::Football_Match::834675f37cea4328bece6743d94c7d2d')
WHERE event_type IN ('goal', 'attempt-saved', 'attempt-missed')
ORDER BY event_time;
matches (competition := VARCHAR, season := INTEGER)
NWSL fixtures and results for a season
Gotham FC's 2025 results.
SELECT match_time, home_team_abbreviation, home_score, away_score,
away_team_abbreviation
FROM us_soccer.nwsl.matches(season := 2025)
WHERE 'GFC' IN (home_team_abbreviation, away_team_abbreviation)
ORDER BY match_time;
player_stats (competition := VARCHAR, season := INTEGER)
Season player statistics for the NWSL
2025 NWSL Golden Boot race.
SELECT player_name, team_abbreviation, goals, assists, shots
FROM us_soccer.nwsl.player_stats(season := 2025)
ORDER BY goals DESC
LIMIT 10;
roster (team VARCHAR, season := INTEGER)
NWSL team roster for a season
Gotham FC's 2026 roster.
SELECT shirt_number, player_name, position_name, nationality
FROM us_soccer.nwsl.roster('GFC', season := 2026)
ORDER BY shirt_number;
seasons (competition := VARCHAR)
Seasons for an NWSL platform competition, newest first
NWSL regular seasons with their date ranges.
SELECT season, start_date, end_date
FROM us_soccer.nwsl.seasons()
ORDER BY season;
standings (competition := VARCHAR, season := INTEGER, split := VARCHAR)
NWSL league table by season with overall, home, and away splits
The final 2025 NWSL table.
SELECT position, team_name, points, goal_difference
FROM us_soccer.nwsl.standings(season := 2025)
ORDER BY position;
The final 2025 NWSL table with each team's leading scorer (ties broken by name) and her share of the team's goals, joining standings to player_stats.
SELECT s.position, s.team_name, s.goals_for, p.player_name, p.goals,
round(100.0 * p.goals / s.goals_for, 1) AS pct_of_team_goals
FROM us_soccer.nwsl.standings(season := 2025) AS s
JOIN us_soccer.nwsl.player_stats(season := 2025) AS p USING (team_id)
QUALIFY row_number() OVER (PARTITION BY s.team_id ORDER BY p.goals DESC, p.player_name) = 1
ORDER BY s.position;
team_stats (competition := VARCHAR, season := INTEGER)
Season team statistics for the NWSL
2025 NWSL teams by possession.
SELECT team_name, possession_pct, pass_accuracy_pct, goals
FROM us_soccer.nwsl.team_stats(season := 2025)
ORDER BY possession_pct DESC;
teams (competition := VARCHAR, season := INTEGER)
Teams entered in an NWSL season
Teams in the 2026 NWSL season.
SELECT team_abbreviation, team_name
FROM us_soccer.nwsl.teams(season := 2026)
ORDER BY 2;
Try these queries
mls_current_standings_are_populated — The current MLS table contains club rows with stable identifiers.
SELECT count(*) > 0 AND count(club_id) = count(*) AS populated
FROM us_soccer.mls.current_standings;
mls_2025_has_thirty_clubs — The final 2025 MLS regular-season table has 30 clubs.
SELECT count(*) AS clubs FROM us_soccer.mls.standings(season := 2025);
asa_2025_mls_team_xg — ASA publishes 2025 team xG for all 30 MLS clubs.
SELECT count(*) AS teams FROM us_soccer.asa.xg_teams(season := 2025);
Uses xg_teams
2025 MLS players with 1,500+ minutes ranked by goals added above average per US$1M of guaranteed compensation, joining goals_added_players to each player's latest salaries() release.
WITH pay AS (SELECT player_id, team_id, guaranteed_compensation FROM us_soccer.asa.salaries(season := 2025) QUALIFY release_date = max(release_date) OVER (PARTITION BY player_id, team_id)) SELECT g.player_name, g.team_abbreviation, round(g.goals_added_above_avg, 2) AS gplus, p.guaranteed_compensation, round(g.goals_added_above_avg / (p.guaranteed_compensation / 1e6), 2) AS gplus_per_million
FROM us_soccer.asa.goals_added_players(season := 2025, minimum_minutes := 1500) AS g
JOIN pay AS p USING (player_id, team_id)
ORDER BY gplus_per_million DESC
LIMIT 10
Top 2025 NWSL players by goals added above average.
SELECT player_name, team_abbreviation, general_position,
round(goals_added_above_avg, 2) AS gplus
FROM us_soccer.asa.goals_added_players(league := 'nwsl', season := 2025, minimum_minutes := 1000)
ORDER BY goals_added_above_avg DESC
LIMIT 10
Uses goals_added_players
USL Championship teams.
SELECT team_abbreviation, team_name
FROM us_soccer.asa.teams(league := 'uslc')
ORDER BY 2
1 more example Hide 1 more
51 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.
- Which club is top of the current MLS regular-season table, and with how many points?
- Who scored the most MLS regular-season goals in 2025, and for which club?
- Summarize MLS match MLS-MAT-0009NL (FC Cincinnati vs Columbus Crew, 18 October 2026): the score, who scored, and which side created more expected goals.
- List Columbus Crew's starting eleven in MLS match MLS-MAT-0009NL and the commentary lines describing shots.
- Using his match log, how many MLS regular-season goals did Lionel Messi (MLS player id MLS-OBJ-000396) score in 2025, and in how many matches?
- Which club finished top of MLS NEXT Pro in 2025, and how many goals did it score?
US soccer 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.
Related workers
Soccer
Sports
League tables, scores, match events, xG and player statistics for 200+ competitions as SQL
NFL
Sports
NFL scores, standings, box scores, play-by-play, and player statistics as SQL
Formula 1
Sports
F1 standings, results, calendars, lap times, and session timing as SQL tables