NFL
NFL scores, standings, box scores, play-by-play, and player statistics as SQL
- 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/nfl/index.md to help me query NFL 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.
season_2025_week_1_scores
Example output · captured
- Connector release
- v0.3.1
- Engine
- 2.0.1
- VGI protocol
- 3.4.0
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
| away_score | home_score | winner_abbreviation |
|---|---|---|
| 20 | 24 | PHI |
Quick start
Choose where to run NFL, 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 'nfl' AS nfl (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nfl'
);
3. Run a query
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
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 'nfl' AS nfl
(TYPE vgi, LOCATION 'https://your-connector.example.com');
4. Run a query
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
Query Farm operates NFL 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 nfl as the catalog alias for the query below.
4. Run a query
SELECT away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
WHERE game_id = '401772510';
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 'nfl' AS nfl (
TYPE vgi,
LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-nfl'
);
Overview
Read-only NFL scores, standings, box scores, play-by-play, and statistics from ESPN, nflverse (CC-BY 4.0), and Sleeper
Query live and historical National Football League data from SQL.
Data model
- Live (ESPN): scoreboards, standings, injuries, rosters, depth charts, and per-game box scores, drives, scoring plays, and play-by-play.
- Analytics (nflverse, CC-BY 4.0): schedules with lines and weather, play-by-play with EPA/WP, weekly and season player stats, team stats, snap counts, draft, combine, and Next Gen Stats.
- Calendar (Sleeper): the current season and week.
Data is fetched on demand, cached briefly in memory, and never rehosted. This worker is not affiliated with the NFL, ESPN, Disney, nflverse, or Sleeper.
Sources and references
- ESPN NFL: live scoreboards, standings, injuries, rosters and game detail.
- nflverse: analytics releases from nflverse-data, licensed CC BY 4.0.
- Sleeper API: the current NFL season and week.
Catalog
Everything nfl exposes once attached — read straight from the worker's
released build.
main 6 tables · 29 functions
NFL scores, standings, game detail, play-by-play, and statistics
Schema examples (6)
Division tables in rank order.
SELECT division, division_rank, team_name, wins, losses, ties, games_back
FROM nfl.main.current_standings
ORDER BY division, division_rank;
Current playoff field by conference seed.
SELECT conference, playoff_seed, team_name, wins, losses
FROM nfl.main.current_standings
WHERE playoff_seed <= 7
ORDER BY conference, playoff_seed;
Each ball carrier's and receiver's yards from scrimmage in the 2025 season opener as a share of his team's total offense, joining the player box score to the team box score.
SELECT p.team_abbreviation, p.athlete_name,
coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards,
t.total_yards AS team_total_yards,
round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense
FROM nfl.main.box_score_player('401772510') p
JOIN nfl.main.box_score_team('401772510') t USING (team_id)
WHERE p.rush_attempts > 0 OR p.receptions > 0
ORDER BY pct_of_team_offense DESC, p.athlete_name;
2025 regular-season scoring leaders: points per game from the schedule's final scores beside each team's passing and rushing EPA and giveaways from team_stats.
WITH games AS (SELECT home_team, away_team, home_score, away_score FROM nfl.main.schedule(season := 2025) WHERE game_type = 'REG' AND home_score IS NOT NULL), points AS (SELECT team, count(*) AS games, avg(points) AS points_per_game FROM (SELECT home_team AS team, home_score AS points FROM games UNION ALL SELECT away_team, away_score FROM games) GROUP BY team) SELECT t.team, points.games, round(points.points_per_game, 1) AS points_per_game, round(t.passing_epa, 1) AS passing_epa, round(t.rushing_epa, 1) AS rushing_epa, t.interceptions + t.fumbles_lost AS giveaways
FROM nfl.main.team_stats(season := 2025) t
JOIN points USING (team)
ORDER BY points_per_game DESC, t.team
LIMIT 10;
2 more examples
First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.
SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick;
2025 rookies with the most yards from scrimmage and where each was drafted, joining season stats to the players directory on the GSIS id (undrafted rookies show NULL draft columns).
SELECT s.player_display_name, s.position, s.recent_team, p.draft_round,
p.draft_pick,
coalesce(s.rushing_yards, 0) + coalesce(s.receiving_yards, 0) AS scrimmage_yards
FROM nfl.main.player_stats_season(season := 2025) s
JOIN nfl.main.players p ON p.gsis_id = s.player_id
WHERE p.rookie_season = 2025
ORDER BY scrimmage_yards DESC, s.player_display_name
LIMIT 10;
current_injuries
League-wide NFL injury report, one row per report entry
Players ruled out or on injured reserve for Kansas City.
SELECT athlete_name, position, status, injury_type, return_date
FROM nfl.main.current_injuries
WHERE team_abbreviation = 'KC' AND status IN ('Out', 'Injured Reserve')
ORDER BY status, athlete_name;
current_scoreboard
This week's NFL games with live or final scores, one row per game
This week's games with live or final scores.
SELECT short_name, status_detail, away_score, home_score
FROM nfl.main.current_scoreboard
ORDER BY game_time;
current_standings
Current NFL regular-season standings, one row per team
Division tables in rank order.
SELECT division, division_rank, team_name, wins, losses, ties, games_back
FROM nfl.main.current_standings
ORDER BY division, division_rank;
Current playoff field by conference seed.
SELECT conference, playoff_seed, team_name, wins, losses
FROM nfl.main.current_standings
WHERE playoff_seed <= 7
ORDER BY conference, playoff_seed;
current_week
The current NFL season, phase, and week
The current season and week.
SELECT season, phase, week, display_week FROM nfl.main.current_week;
players
Every NFL player in nflverse's directory with cross-source ids
Look up Patrick Mahomes's identifiers.
SELECT gsis_id, espn_id, pfr_id, position, latest_team
FROM nfl.main.players
WHERE display_name = 'Patrick Mahomes';
teams
The 32 NFL franchises with ESPN ids and abbreviations
Every franchise and its ESPN abbreviation.
SELECT team_abbreviation, team_name FROM nfl.main.teams ORDER BY team_name;
all_current_injuries ()
League-wide NFL injury report (scan behind current_injuries)
Players ruled out through the backing scan.
SELECT team_abbreviation, athlete_name, injury_type
FROM nfl.main.all_current_injuries()
WHERE status = 'Out'
ORDER BY team_abbreviation;
all_current_scoreboard ()
This week's NFL games and live scores (scan behind current_scoreboard)
Read this week's games through the backing scan.
SELECT short_name, status_detail, away_score, home_score
FROM nfl.main.all_current_scoreboard()
ORDER BY game_time;
all_current_standings ()
Current NFL division standings (scan behind current_standings)
Division leaders through the backing scan.
SELECT division, team_name, wins, losses
FROM nfl.main.all_current_standings()
WHERE division_rank = 1
ORDER BY division;
all_current_week ()
Current NFL season, phase, and week from Sleeper (scan behind current_week)
Current season and week through the backing scan.
SELECT season, phase, week FROM nfl.main.all_current_week();
all_players ()
Every NFL player nflverse knows with cross-ids (scan behind players)
Find a player's ids through the backing scan.
SELECT gsis_id, espn_id, display_name
FROM nfl.main.all_players()
WHERE display_name = 'Patrick Mahomes';
all_teams ()
The 32 NFL franchises with ESPN ids and abbreviations (scan behind teams)
Team ids through the backing scan.
SELECT team_id, team_abbreviation, team_name
FROM nfl.main.all_teams()
ORDER BY team_name;
box_score_player (game_id VARCHAR)
Player box score for one NFL game, one row per player (ESPN)
Leading rushers in the 2025 season opener.
SELECT athlete_name, team_abbreviation, rush_attempts, rush_yards,
rush_touchdowns
FROM nfl.main.box_score_player('401772510')
WHERE rush_attempts > 0
ORDER BY rush_yards DESC;
Each ball carrier's and receiver's yards from scrimmage in the 2025 season opener as a share of his team's total offense, joining the player box score to the team box score.
SELECT p.team_abbreviation, p.athlete_name,
coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards,
t.total_yards AS team_total_yards,
round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense
FROM nfl.main.box_score_player('401772510') p
JOIN nfl.main.box_score_team('401772510') t USING (team_id)
WHERE p.rush_attempts > 0 OR p.receptions > 0
ORDER BY pct_of_team_offense DESC, p.athlete_name;
box_score_team (game_id VARCHAR)
Team box score for one NFL game: yards, downs, turnovers, possession (ESPN)
Team totals from the 2025 season opener.
SELECT team_abbreviation, total_yards, passing_yards, rushing_yards,
turnovers, possession_seconds
FROM nfl.main.box_score_team('401772510');
combine (season := INTEGER)
NFL Scouting Combine measurements and drills since 2000 (nflverse)
Fastest 40-yard dashes at the 2025 combine.
SELECT player_name, position, school, forty
FROM nfl.main.combine(season := 2025)
WHERE forty IS NOT NULL
ORDER BY forty
LIMIT 10;
depth_chart (team VARCHAR)
One NFL team's current depth chart by formation and slot (ESPN)
Kansas City's offensive starters.
SELECT position, athlete_name
FROM nfl.main.depth_chart('KC')
WHERE depth = 1 AND formation NOT IN ('Special Teams')
ORDER BY formation, position;
draft (season := INTEGER, team := VARCHAR)
NFL draft picks since 1980 with career value and honors (nflverse)
First round of the 2025 draft.
SELECT pick, team, player_name, position, college
FROM nfl.main.draft(season := 2025)
WHERE draft_round = 1
ORDER BY pick;
First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.
SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick;
drives (game_id VARCHAR)
Drive chart for one NFL game: start, end, plays, yards, result (ESPN)
Scoring drives in the 2025 season opener.
SELECT drive_number, team_abbreviation, plays, yards, result
FROM nfl.main.drives('401772510')
WHERE is_score
ORDER BY drive_number;
game_summary (game_id VARCHAR)
One NFL game's status, score by quarter, venue, and referee (ESPN)
Score by quarter of the 2025 season opener.
SELECT away_team_abbreviation, away_q1, away_q2, away_q3, away_q4,
away_score, home_team_abbreviation, home_q1, home_q2, home_q3, home_q4,
home_score
FROM nfl.main.game_summary('401772510');
ngs_passing (season := INTEGER, team := VARCHAR, week := INTEGER)
NFL Next Gen Stats passing metrics by week and season since 2016 (nflverse)
2025 season leaders in completion percentage above expectation.
SELECT player_display_name, team, attempts,
completion_percentage_above_expectation
FROM nfl.main.ngs_passing(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY completion_percentage_above_expectation DESC
LIMIT 10;
ngs_receiving (season := INTEGER, team := VARCHAR, week := INTEGER)
NFL Next Gen Stats receiving metrics by week and season since 2016 (nflverse)
2025 receivers with the most average separation.
SELECT player_display_name, team, targets, avg_separation
FROM nfl.main.ngs_receiving(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY avg_separation DESC
LIMIT 10;
ngs_rushing (season := INTEGER, team := VARCHAR, week := INTEGER)
NFL Next Gen Stats rushing metrics by week and season since 2016 (nflverse)
2025 rush yards over expected per carry leaders.
SELECT player_display_name, team, rush_attempts,
rush_yards_over_expected_per_att
FROM nfl.main.ngs_rushing(season := 2025, week := 0)
WHERE season_type = 'REG'
ORDER BY rush_yards_over_expected_per_att DESC
LIMIT 10;
play_by_play (season := INTEGER, team := VARCHAR, week := INTEGER)
Season play-by-play with EPA, win probability, and player ids (nflverse)
Passing EPA per dropback leaders for 2025 week 1.
SELECT passer_player_name, count(*) AS dropbacks,
round(avg(epa), 3) AS epa_per_play
FROM nfl.main.play_by_play(season := 2025, week := 1)
WHERE qb_dropback AND passer_player_name IS NOT NULL
GROUP BY passer_player_name
HAVING count(*) >= 20
ORDER BY epa_per_play DESC;
Fourth-down attempts by Philadelphia in 2025.
SELECT week, quarter, yards_to_go, play_type, first_down
FROM nfl.main.play_by_play(season := 2025, team := 'PHI')
WHERE down = 4 AND posteam = 'PHI' AND play_type IN ('run', 'pass')
ORDER BY week;
play_by_play_game (game_id VARCHAR)
Play-by-play for one NFL game, live or final (ESPN)
Fourth-quarter plays of the 2025 season opener.
SELECT clock, offense_abbreviation, down_distance_text, play_type, yards
FROM nfl.main.play_by_play_game('401772510')
WHERE period = 4
ORDER BY sequence;
player_game_log (athlete_id INTEGER, season := INTEGER)
One NFL player's per-game statistics for a season, one row per game and stat (ESPN)
Patrick Mahomes's 2025 passing yards by week.
SELECT week, opponent_abbreviation, result, value AS passing_yards
FROM nfl.main.player_game_log(3139477, season := 2025)
WHERE stat = 'passingYards'
ORDER BY week;
player_stats_season (season := INTEGER, season_type := VARCHAR, team := VARCHAR)
Season player totals: passing, rushing, receiving, defense, kicking, EPA (nflverse)
2025 regular-season passing yards leaders.
SELECT player_display_name, recent_team, passing_yards, passing_tds,
interceptions
FROM nfl.main.player_stats_season(season := 2025)
ORDER BY passing_yards DESC
LIMIT 10;
2025 sack leaders.
SELECT player_display_name, recent_team, def_sacks
FROM nfl.main.player_stats_season(season := 2025)
ORDER BY def_sacks DESC NULLS LAST
LIMIT 10;
2025 rookies with the most yards from scrimmage and where each was drafted, joining season stats to the players directory on the GSIS id (undrafted rookies show NULL draft columns).
SELECT s.player_display_name, s.position, s.recent_team, p.draft_round,
p.draft_pick,
coalesce(s.rushing_yards, 0) + coalesce(s.receiving_yards, 0) AS scrimmage_yards
FROM nfl.main.player_stats_season(season := 2025) s
JOIN nfl.main.players p ON p.gsis_id = s.player_id
WHERE p.rookie_season = 2025
ORDER BY scrimmage_yards DESC, s.player_display_name
LIMIT 10;
player_stats_week (season := INTEGER, team := VARCHAR, week := INTEGER)
Per-game player passing, rushing, receiving, defense, kicking, and EPA (nflverse)
Top rushing games of 2025 week 1.
SELECT player_display_name, team, opponent_team, carries, rushing_yards,
rushing_tds
FROM nfl.main.player_stats_week(season := 2025, week := 1)
ORDER BY rushing_yards DESC
LIMIT 10;
roster (team VARCHAR)
One NFL team's current roster with positions, bio, and status (ESPN)
Kansas City's quarterbacks.
SELECT athlete_name, jersey, age, experience_years
FROM nfl.main.roster('KC')
WHERE position = 'QB';
schedule (season := INTEGER, team := VARCHAR, week := INTEGER)
NFL schedule and results since 1999 with lines, roof, surface, weather (nflverse)
Kansas City's 2025 results with the closing spread.
SELECT week, away_team, away_score, home_team, home_score, spread_line
FROM nfl.main.schedule(season := 2025, team := 'KC')
ORDER BY week;
Super Bowl results since 2015.
SELECT season, away_team, away_score, home_team, home_score, stadium
FROM nfl.main.schedule()
WHERE game_type = 'SB' AND season >= 2015
ORDER BY season;
scoreboard (season INTEGER, week INTEGER, season_type := VARCHAR)
NFL games and scores for a season, week, and season type (ESPN)
2025 week 1 results.
SELECT short_name, away_score, home_score, winner_abbreviation
FROM nfl.main.scoreboard(2025, 1)
ORDER BY game_time;
The Super Bowl that ended the 2025 season.
SELECT name, away_score, home_score, venue
FROM nfl.main.scoreboard(2025, 5, season_type := 'postseason');
scoring_plays (game_id VARCHAR)
Scoring summary for one NFL game with the running score (ESPN)
Scoring summary of the 2025 season opener.
SELECT period, clock, team_abbreviation, description, away_score, home_score
FROM nfl.main.scoring_plays('401772510');
snap_counts (season := INTEGER, team := VARCHAR, week := INTEGER)
Per-game player snap counts and snap shares since 2012 (nflverse)
Kansas City's offensive snap shares in 2025 week 1.
SELECT player, position, offense_snaps, offense_pct
FROM nfl.main.snap_counts(season := 2025, week := 1, team := 'KC')
WHERE offense_snaps > 0
ORDER BY offense_snaps DESC;
standings (season := INTEGER)
NFL division standings for a season with seeds, streaks, and splits (ESPN)
Final 2025 AFC standings by seed.
SELECT playoff_seed, team_name, wins, losses, ties, clincher
FROM nfl.main.standings(season := 2025)
WHERE conference = 'AFC'
ORDER BY playoff_seed;
team_schedule (team VARCHAR, season := INTEGER, season_type := VARCHAR)
One NFL team's games and results for a season and season type (ESPN)
Kansas City's 2025 regular season.
SELECT week, short_name, away_score, home_score, winner_abbreviation
FROM nfl.main.team_schedule('KC', season := 2025)
ORDER BY week;
team_stats (season := INTEGER, season_type := VARCHAR, team := VARCHAR)
Season team offense, defense, special teams, and EPA totals (nflverse)
2025 teams by rushing yards.
SELECT team, carries, rushing_yards, rushing_tds
FROM nfl.main.team_stats(season := 2025)
ORDER BY rushing_yards DESC;
2025 regular-season scoring leaders: points per game from the schedule's final scores beside each team's passing and rushing EPA and giveaways from team_stats.
WITH games AS (SELECT home_team, away_team, home_score, away_score FROM nfl.main.schedule(season := 2025) WHERE game_type = 'REG' AND home_score IS NOT NULL), points AS (SELECT team, count(*) AS games, avg(points) AS points_per_game FROM (SELECT home_team AS team, home_score AS points FROM games UNION ALL SELECT away_team, away_score FROM games) GROUP BY team) SELECT t.team, points.games, round(points.points_per_game, 1) AS points_per_game, round(t.passing_epa, 1) AS passing_epa, round(t.rushing_epa, 1) AS rushing_epa, t.interceptions + t.fumbles_lost AS giveaways
FROM nfl.main.team_stats(season := 2025) t
JOIN points USING (team)
ORDER BY points_per_game DESC, t.team
LIMIT 10;
Try these queries
thirty_two_teams — ESPN lists all 32 NFL franchises.
SELECT count(*) AS teams FROM nfl.main.teams;
Uses teams
current_standings_cover_every_team — Current standings contain one row for each of the 32 teams in 8 divisions.
SELECT count(*) = 32 AND count(DISTINCT division) = 8 AS complete
FROM nfl.main.current_standings;
Uses current_standings
schedule_has_espn_crosswalk — nflverse's schedule links the 2025 opener to its ESPN game id.
SELECT espn_game_id
FROM nfl.main.schedule(season := 2025, week := 1)
WHERE home_team = 'PHI';
Uses schedule
opener_top_scrimmage_share — CeeDee Lamb's 110 scrimmage yards were the largest share (35.8%) of either team's offense in the 2025 opener.
SELECT athlete_name, scrimmage_yards, pct_of_team_offense
FROM (SELECT p.team_abbreviation, p.athlete_name, coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0) AS scrimmage_yards, t.total_yards AS team_total_yards, round(100.0 * (coalesce(p.rush_yards, 0) + coalesce(p.receiving_yards, 0)) / t.total_yards, 1) AS pct_of_team_offense FROM nfl.main.box_score_player('401772510') p JOIN nfl.main.box_score_team('401772510') t USING (team_id) WHERE p.rush_attempts > 0 OR p.receptions > 0 ORDER BY pct_of_team_offense DESC, p.athlete_name)
ORDER BY pct_of_team_offense DESC
LIMIT 1;
current_week_is_one_row — Sleeper reports exactly one current NFL state.
SELECT count(*) AS rows FROM nfl.main.current_week;
Uses current_week
First-round wide receivers drafted 2015-2020 who ran the combine 40-yard dash, fastest first, with career receiving yards and Pro Bowls, joining draft to combine on the Pro Football Reference id.
SELECT d.season, d.pick, d.player_name, d.team, c.forty, d.rec_yards,
d.pro_bowls
FROM nfl.main.draft() d
JOIN nfl.main.combine() c ON c.pfr_id = d.pfr_player_id
WHERE d.position = 'WR' AND d.draft_round = 1 AND d.season BETWEEN 2015 AND 2020 AND c.forty IS NOT NULL
ORDER BY c.forty, d.pick
43 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.
- What NFL season and week is it right now, and which teams are not playing this week?
- Which team currently leads each NFL division, and what was each one's 2025 record?
- List the Kansas City Chiefs' current depth-chart starters with jersey numbers and ages, and flag any who appear on the injury report.
- For the 2025 season opener (ESPN game 401772510, Dallas at Philadelphia), show each team's points, total yards, turnovers, and leading rusher.
- In ESPN game 401772510, how many scoring drives did each team have, how many yards did those drives cover, and how many plays did each offense run?
- For every week 1 game of the 2025 NFL season, show the final score, the closing spread, and whether the home team covered.
NFL 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
NBA
Sports
Standings, scores, schedules, box scores, play-by-play, and player and team stats
Soccer
Sports
League tables, scores, match events, xG and player statistics for 200+ competitions as SQL
US soccer
Sports
MLS, NWSL, NEXT Pro, and USL standings, schedules, stats, and xG as SQL tables