Skip to content

Rugby

World rankings, fixtures, results, league tables and match stats for rugby union

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/rugby/index.md to help me query Rugby 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.

six_nations_2026_champion

Example output Β· captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT team_name, table_points
FROM rugby.main.standings(league := 'six_nations', season := 2026)
WHERE rank = 1;
Result
team_name table_points
France 21

Quick start

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

3. Run a query

query.sql
SELECT team_name, table_points
FROM rugby.main.standings(league := 'six_nations', season := 2026)
WHERE rank = 1;
More example queries β†’
Technical details
Verified connector release
v0.3.1
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 'rugby' AS rugby (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-rugby'
);

Overview

Read-only rugby union data: official World Rugby rankings and match feed, plus ESPN league tables, fixtures, results and box scores

Catalog

Everything rugby exposes once attached β€” read straight from the worker's released build.

rugby 1 schema
main 4 tables Β· 17 functions

Rugby union rankings, matches, tables and box scores

Schema examples (6)
Examples (6)

The current Gallagher Prem table.

SELECT rank, team_name, games_played, table_points
FROM rugby.main.current_standings
WHERE league = 'premiership'
ORDER BY rank;

Champions Cup pool leaders.

SELECT group_name, team_name, table_points
FROM rugby.main.current_standings
WHERE league = 'champions_cup' AND rank = 1
ORDER BY group_name;

2026 Six Nations upsets: results won by the side ranked lower in the World Rugby rankings in force before the championship (ESPN results joined to World Rugby rankings on team name).

WITH start_ranks AS (SELECT team_name, position FROM rugby.main.world_rankings(as_of := DATE '2026-02-01')) SELECT r.kickoff::DATE AS day, r.home_team_name, r.home_score, r.away_score, r.away_team_name, h.position AS home_rank, a.position AS away_rank
FROM rugby.main.results(league := 'six_nations', season := 2026) AS r
JOIN start_ranks AS h ON h.team_name = r.home_team_name
JOIN start_ranks AS a ON a.team_name = r.away_team_name
WHERE (r.home_score > r.away_score AND h.position > a.position) OR (r.away_score > r.home_score AND a.position > h.position)
ORDER BY r.kickoff;

Final 2026 Six Nations table beside each team's World Rugby ranking before (1 February) and after (16 March) the championship, with the ranking points gained or lost.

SELECT s.rank AS table_rank, s.team_name, s.table_points,
  b.position AS rank_before, a.position AS rank_after,
  round(a.points - b.points, 2) AS ranking_points_change
FROM rugby.main.standings(league := 'six_nations', season := 2026) AS s
JOIN rugby.main.world_rankings(as_of := DATE '2026-02-01') AS b USING (team_name)
JOIN rugby.main.world_rankings(as_of := DATE '2026-03-16') AS a USING (team_name)
ORDER BY s.rank;
2 more examples

Nations Championship results from 1-10 November 2026 with each side's world ranking going in, joined on World Rugby team ids.

SELECT m.local_date, m.home_team_name, m.home_score, m.away_score,
  m.away_team_name, h.position AS home_rank, a.position AS away_rank
FROM rugby.main.matches(start_date := DATE '2026-11-01', end_date := DATE '2026-11-10') AS m
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS h ON h.wr_team_id = m.home_wr_team_id
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS a ON a.wr_team_id = m.away_wr_team_id
WHERE m.competition = 'Nations Championship 2026'
ORDER BY m.kickoff;

Every score in England v Australia, 8 November 2026, with the scorer's team-sheet position (Replacement for the bench) and whether he started (timeline joined to the team sheets on wr_player_id).

SELECT t.clock_label, t.team_name, t.event_type, t.player_name, sq.position,
  sq.is_starter
FROM rugby.main.match_timeline('d21f7bed-f2f9-45bd-be33-3a0fc9beec42') AS t
LEFT JOIN rugby.main.match_squads('d21f7bed-f2f9-45bd-be33-3a0fc9beec42') AS sq USING (wr_player_id)
WHERE t.points > 0
ORDER BY t.sequence;
Tables
competitions 1 example11 cols

Rugby competitions and the league keys the catalog accepts

Columns
leaguenot null VARCHAR
Key to pass as the league argument, such as six_nations.
name VARCHAR
Competition name.
gender VARCHAR
men or women.
level VARCHAR
international, club, or sevens.
region VARCHAR
Region the competition covers.
season_span VARCHAR
calendar (within one year) or split (spans two years).
current_season INTEGER
Season label year the catalog treats as current today (split seasons use the end year).
is_headline BOOLEAN
Whether the competition is included in current_standings.
is_active BOOLEAN
False for discontinued competitions kept for historical queries.
espn_league_id INTEGER
ESPN site-API league id used in ESPN URLs.
espn_core_league_id INTEGER
ESPN core-API league identifier (an id, not a quantity); differs from the site id.
ConstraintsPRIMARY KEY (league)
Example

International competitions and their current season.

SELECT league, name, current_season
FROM rugby.main.competitions
WHERE level = 'international'
ORDER BY name;
Link
current_matches 2 examples24 cols

World Rugby matches from seven days ago to seven days ahead, one row per match

Columns
match_idnot null VARCHAR
World Rugby match identifier, as accepted by match_stats().
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC.
local_date DATE
Match date in the venue's local time zone.
gmt_offset_hours DOUBLE
Venue's offset from UTC in hours at kick-off.
gender VARCHAR
men or women, from World Rugby's sport code.
competition VARCHAR
Competition and edition label, such as Six Nations 2026.
wr_competition_id VARCHAR
World Rugby event identifier for the competition edition.
status_code VARCHAR
World Rugby status code: C complete, U not yet complete, L* live.
is_complete BOOLEAN
Whether World Rugby marks the match result as complete.
home_wr_team_id VARCHAR
World Rugby identifier of the first-listed (home) team.
home_team_name VARCHAR
First-listed (home) team name.
home_team_abbreviation VARCHAR
First-listed team abbreviation when supplied.
away_wr_team_id VARCHAR
World Rugby identifier of the second-listed (away) team.
away_team_name VARCHAR
Second-listed (away) team name.
away_team_abbreviation VARCHAR
Second-listed team abbreviation when supplied.
home_score INTEGER
Home team score in match points; may be provisional while not complete.
away_score INTEGER
Away team score in match points; may be provisional while not complete.
outcome VARCHAR
home, away, or draw once decided; null otherwise.
winner_team_name VARCHAR
Winning team name, null for a draw or undecided match.
venue_name VARCHAR
Name of the stadium or ground.
venue_city VARCHAR
City in which the stadium is located.
venue_country VARCHAR
Country in which the stadium is located.
attendance INTEGER
Reported attendance as a count of spectators, when supplied.
match_clock VARCHAR
Game clock label of a match in play, such as 54:16; NULL when the feed reports no clock.
ConstraintsPRIMARY KEY (match_id)
Examples (2)

Recent results in men's international rugby.

SELECT local_date, competition, home_team_name, home_score, away_score,
  away_team_name
FROM rugby.main.current_matches
WHERE is_complete AND gender = 'men' AND (competition ILIKE '%Nations%' OR competition ILIKE '%International%')
ORDER BY kickoff;

Upcoming matches in the next week.

SELECT kickoff, competition, home_team_name, away_team_name
FROM rugby.main.current_matches
WHERE NOT is_complete AND kickoff > now()
ORDER BY kickoff
LIMIT 20;
Link
current_standings 2 examples24 cols

Current tables of the headline rugby competitions, one row per team per table

Columns
leaguenot null VARCHAR
League key accepted by the league argument, such as six_nations.
league_name VARCHAR
Competition name.
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027).
season_display VARCHAR
ESPN season label, such as 2026 or 2026-27.
group_name VARCHAR
Table or pool name, such as Pool 1; single tables repeat the league.
rank INTEGER
Position in the table or pool.
team_idnot null INTEGER
ESPN numeric team identifier (not a count).
team_name VARCHAR
Display name of the club or national team.
team_abbreviation VARCHAR
ESPN short code for the team, such as FRA.
games_played INTEGER
Count of matches played.
wins INTEGER
Count of matches won.
draws INTEGER
Count of matches drawn.
losses INTEGER
Count of matches lost.
byes INTEGER
Count of byes taken, where the competition awards them.
points_for INTEGER
Total match points scored, in points.
points_against INTEGER
Total match points conceded, in points.
points_difference INTEGER
Points for minus points against, in points.
tries_for INTEGER
Count of tries scored.
tries_against INTEGER
Count of tries conceded.
tries_difference INTEGER
Count of tries scored minus tries conceded.
try_bonus_points INTEGER
Table points earned for scoring four or more tries (or three more than the opponent).
losing_bonus_points INTEGER
Count of table points earned for losing by seven match points or fewer.
bonus_points INTEGER
Total bonus table points (try plus losing bonus).
table_points INTEGER
Competition table points (4 per win, 2 per draw, plus bonus points); the ranking criterion.
ConstraintsPRIMARY KEY (league, team_id)
Examples (2)

The current Gallagher Prem table.

SELECT rank, team_name, games_played, table_points
FROM rugby.main.current_standings
WHERE league = 'premiership'
ORDER BY rank;

Champions Cup pool leaders.

SELECT group_name, team_name, table_points
FROM rugby.main.current_standings
WHERE league = 'champions_cup' AND rank = 1
ORDER BY group_name;
Link
current_world_rankings 2 examples11 cols

Current official World Rugby men's and women's rankings, one row per team

Columns
gendernot null VARCHAR
Rankings table: men or women.
effective_date DATE
Date on which World Rugby's ranking took effect.
position INTEGER
Current world ranking position (ordinal rank, 1 is best).
previous_position INTEGER
Ranking position (ordinal rank, 1 is best) before the most recent update.
wr_team_idnot null VARCHAR
World Rugby team identifier.
team_name VARCHAR
National team name.
team_abbreviation VARCHAR
Three-letter team abbreviation, such as RSA.
country_code VARCHAR
ISO 3166 alpha-3 country code when World Rugby supplies one.
points DOUBLE
World Rugby ranking points, a rating on a 0-100 scale.
previous_points DOUBLE
Ranking points (0-100 scale) before the most recent update.
points_change DOUBLE
Change in ranking points since the previous update; positive means the team rose.
ConstraintsPRIMARY KEY (gender, wr_team_id)
Examples (2)

Current men's top ten.

SELECT position, team_name, points, points_change
FROM rugby.main.current_world_rankings
WHERE gender = 'men' AND position <= 10
ORDER BY position;

Biggest risers in the latest women's update.

SELECT team_name, previous_position, position
FROM rugby.main.current_world_rankings
WHERE gender = 'women'
ORDER BY previous_position - position DESC
LIMIT 5;
Link
Table functions
all_competitions () 1 example

Every rugby competition key the catalog accepts (scan behind competitions)

No arguments
Returns columns
league VARCHAR
Key to pass as the league argument, such as six_nations
name VARCHAR
Competition name
gender VARCHAR
men or women
level VARCHAR
international, club, or sevens
region VARCHAR
Region the competition covers
season_span VARCHAR
calendar (within one year) or split (spans two years)
current_season INTEGER
Season label year the catalog treats as current today (split seasons use the end year)
is_headline BOOLEAN
Whether the competition is included in current_standings
is_active BOOLEAN
False for discontinued competitions kept for historical queries
espn_league_id INTEGER
ESPN site-API league id used in ESPN URLs
espn_core_league_id INTEGER
ESPN core-API league identifier (an id, not a quantity); differs from the site id
Example

Active club competitions.

SELECT league, name, region
FROM rugby.main.all_competitions()
WHERE level = 'club' AND is_active
ORDER BY name;
Link
all_current_matches () 1 example

World Rugby matches from seven days ago to seven days ahead (scan behind current_matches)

No arguments
Returns columns
match_id VARCHAR
World Rugby match identifier, as accepted by match_stats()
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC
local_date DATE
Match date in the venue's local time zone
gmt_offset_hours DOUBLE
Venue's offset from UTC in hours at kick-off
gender VARCHAR
men or women, from World Rugby's sport code
competition VARCHAR
Competition and edition label, such as Six Nations 2026
wr_competition_id VARCHAR
World Rugby event identifier for the competition edition
status_code VARCHAR
World Rugby status code: C complete, U not yet complete, L* live
is_complete BOOLEAN
Whether World Rugby marks the match result as complete
home_wr_team_id VARCHAR
World Rugby identifier of the first-listed (home) team
home_team_name VARCHAR
First-listed (home) team name
home_team_abbreviation VARCHAR
First-listed team abbreviation when supplied
away_wr_team_id VARCHAR
World Rugby identifier of the second-listed (away) team
away_team_name VARCHAR
Second-listed (away) team name
away_team_abbreviation VARCHAR
Second-listed team abbreviation when supplied
home_score INTEGER
Home team score in match points; may be provisional while not complete
away_score INTEGER
Away team score in match points; may be provisional while not complete
outcome VARCHAR
home, away, or draw once decided; null otherwise
winner_team_name VARCHAR
Winning team name, null for a draw or undecided match
venue_name VARCHAR
Name of the stadium or ground
venue_city VARCHAR
City in which the stadium is located
venue_country VARCHAR
Country in which the stadium is located
attendance INTEGER
Reported attendance as a count of spectators, when supplied
match_clock VARCHAR
Game clock label of a match in play, such as 54:16; NULL when the feed reports no clock
Example

Completed matches in the current window.

SELECT competition, home_team_name, home_score, away_score, away_team_name
FROM rugby.main.all_current_matches()
WHERE is_complete
ORDER BY kickoff;
Link
all_current_standings () 1 example

Current tables of the headline rugby competitions (scan behind current_standings)

No arguments
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027)
season_display VARCHAR
ESPN season label, such as 2026 or 2026-27
group_name VARCHAR
Table or pool name, such as Pool 1; single tables repeat the league
rank INTEGER
Position in the table or pool
team_id INTEGER
ESPN numeric team identifier (not a count)
team_name VARCHAR
Display name of the club or national team
team_abbreviation VARCHAR
ESPN short code for the team, such as FRA
games_played INTEGER
Count of matches played
wins INTEGER
Count of matches won
draws INTEGER
Count of matches drawn
losses INTEGER
Count of matches lost
byes INTEGER
Count of byes taken, where the competition awards them
points_for INTEGER
Total match points scored, in points
points_against INTEGER
Total match points conceded, in points
points_difference INTEGER
Points for minus points against, in points
tries_for INTEGER
Count of tries scored
tries_against INTEGER
Count of tries conceded
tries_difference INTEGER
Count of tries scored minus tries conceded
try_bonus_points INTEGER
Table points earned for scoring four or more tries (or three more than the opponent)
losing_bonus_points INTEGER
Count of table points earned for losing by seven match points or fewer
bonus_points INTEGER
Total bonus table points (try plus losing bonus)
table_points INTEGER
Competition table points (4 per win, 2 per draw, plus bonus points); the ranking criterion
Example

Current leaders of every headline competition.

SELECT league_name, group_name, team_name, table_points
FROM rugby.main.all_current_standings()
WHERE rank = 1
ORDER BY league_name, group_name;
Link
all_current_world_rankings () 1 example

Current men's and women's World Rugby rankings (scan behind current_world_rankings)

No arguments
Returns columns
gender VARCHAR
Rankings table: men or women
effective_date DATE
Date on which World Rugby's ranking took effect
position INTEGER
Current world ranking position (ordinal rank, 1 is best)
previous_position INTEGER
Ranking position (ordinal rank, 1 is best) before the most recent update
wr_team_id VARCHAR
World Rugby team identifier
team_name VARCHAR
National team name
team_abbreviation VARCHAR
Three-letter team abbreviation, such as RSA
country_code VARCHAR
ISO 3166 alpha-3 country code when World Rugby supplies one
points DOUBLE
World Rugby ranking points, a rating on a 0-100 scale
previous_points DOUBLE
Ranking points (0-100 scale) before the most recent update
points_change DOUBLE
Change in ranking points since the previous update; positive means the team rose
Example

Read both current number-one teams from the backing scan.

SELECT gender, team_name, points
FROM rugby.main.all_current_world_rankings()
WHERE position = 1
ORDER BY gender;
Link
fixtures (league := VARCHAR, season := INTEGER) 2 examples

Upcoming and unfinished matches for one rugby competition season

Named arguments
league := VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key. Β· default "six_nations"
season := INTEGER
Season label year; split seasons use the end year (2026-27 is 2027). NULL means the current season. Β· default null
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027)
event_id INTEGER
ESPN event identifier, the event_id argument of match functions
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC
name VARCHAR
Fixture name, such as Ireland vs Scotland
status VARCHAR
ESPN status, such as STATUS_FINAL or STATUS_SCHEDULED
state VARCHAR
pre, in, or post
completed BOOLEAN
Whether the match is finished
status_detail VARCHAR
Short status text, such as FT or a kick-off time
home_team_id INTEGER
ESPN identifier of the home team
home_team_name VARCHAR
Home team name
home_team_abbreviation VARCHAR
Home team abbreviation
away_team_id INTEGER
ESPN identifier of the away team
away_team_name VARCHAR
Away team name
away_team_abbreviation VARCHAR
Away team abbreviation
home_score INTEGER
Home team points; null before kick-off
away_score INTEGER
Away team points; null before kick-off
home_half_time_score INTEGER
Home team points at half-time
away_half_time_score INTEGER
Away team points at half-time
winner VARCHAR
home, away, or draw for finished matches; null otherwise
venue_name VARCHAR
Venue name
venue_city VARCHAR
Venue city
neutral_site BOOLEAN
Whether the venue is neutral
attendance INTEGER
Reported attendance; null when ESPN reports none
Examples (2)

Upcoming 2026-27 Gallagher Prem fixtures.

SELECT kickoff, home_team_name, away_team_name, venue_name
FROM rugby.main.fixtures(league := 'premiership', season := 2027)
ORDER BY kickoff
LIMIT 10;

Opening fixtures of the 2027 Rugby World Cup

SELECT kickoff, home_team_name, away_team_name
FROM rugby.main.fixtures(league := 'rugby_world_cup', season := 2027)
ORDER BY kickoff
LIMIT 10;
Link
match_lineups (league VARCHAR, event_id INTEGER) 1 example

Named match-day squads for one ESPN rugby event

Arguments
league VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key.
event_id INTEGER
ESPN event identifier from fixtures(), results() or scoreboard().
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
event_id INTEGER
ESPN event identifier
team_id INTEGER
ESPN team identifier
team_name VARCHAR
Team name
home_away VARCHAR
home or away
player_id INTEGER
ESPN athlete identifier
player_name VARCHAR
Player display name
jersey_number INTEGER
Shirt number; 1-15 start, 16 and above are replacements
position VARCHAR
Position name, such as Fly-half; replacements show Replacement
position_abbreviation VARCHAR
Position abbreviation, such as FH or R
is_starter BOOLEAN
Whether the player started (shirt numbers 1-15)
is_captain BOOLEAN
Whether ESPN flags the player as captain; NULL for a team where ESPN flags no captain
Example

Ireland's starting fifteen against Scotland, 14 March 2026.

SELECT jersey_number, player_name, position
FROM rugby.main.match_lineups('six_nations', 602514)
WHERE home_away = 'home' AND is_starter
ORDER BY jersey_number;
Link
match_player_stats (league VARCHAR, event_id INTEGER) 2 examples

Per-player box score for one ESPN rugby event

Arguments
league VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key.
event_id INTEGER
ESPN event identifier from fixtures(), results() or scoreboard().
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
event_id INTEGER
ESPN event identifier
team_id INTEGER
ESPN team identifier
team_name VARCHAR
Team name
home_away VARCHAR
home or away
player_id INTEGER
ESPN athlete identifier
player_name VARCHAR
Player display name
jersey_number INTEGER
Shirt number; 1-15 start, 16 and above are replacements
position VARCHAR
Position name, such as Fly-half; replacements show Replacement
position_abbreviation VARCHAR
Position abbreviation, such as FH or R
is_starter BOOLEAN
Whether the player started (shirt numbers 1-15)
tries INTEGER
Tries scored
try_assists INTEGER
Try assists
points INTEGER
Points scored
conversion_goals INTEGER
Conversions kicked
penalty_goals INTEGER
Penalty goals kicked
drop_goals INTEGER
Drop goals kicked
runs INTEGER
Ball carries
metres INTEGER
Metres carried
clean_breaks INTEGER
Clean line breaks
defenders_beaten INTEGER
Defenders beaten
offloads INTEGER
Offloads
passes INTEGER
Passes
tackles INTEGER
Tackles made
missed_tackles INTEGER
Tackles missed
turnovers_conceded INTEGER
Turnovers conceded
knock_ons INTEGER
Knock-ons
penalties_conceded INTEGER
Penalties conceded
free_kicks_conceded INTEGER
Free kicks conceded
lineouts_won INTEGER
Lineouts won
lineouts_thrown INTEGER
Lineouts thrown in
mauls_won INTEGER
Mauls won
rucks_won INTEGER
Rucks won
kicks_from_hand INTEGER
Kicks from hand
yellow_cards INTEGER
Yellow cards received
red_cards INTEGER
Red cards received
kick_success DOUBLE
Goal-kicking success ratio from 0 to 1
Examples (2)

Leading tacklers in Ireland v Scotland, 14 March 2026.

SELECT team_name, player_name, tackles, missed_tackles
FROM rugby.main.match_player_stats('six_nations', 602514)
ORDER BY tackles DESC
LIMIT 5;

Point scorers in Ireland v Scotland, 14 March 2026

SELECT team_name, player_name, points, tries
FROM rugby.main.match_player_stats('six_nations', 602514)
WHERE points > 0
ORDER BY points DESC;
Link
match_squads (match_id VARCHAR) 2 examples

Team sheets and per-player statistics for one World Rugby match

Arguments
match_id VARCHAR
World Rugby match identifier (36 characters with hyphens) from matches() or current_matches.
Returns columns
match_id VARCHAR
World Rugby match identifier, as accepted by match_stats()
team_index INTEGER
0 for the home (first-listed) team, 1 for the away team
wr_team_id VARCHAR
World Rugby team identifier
team_name VARCHAR
Team name
wr_player_id VARCHAR
World Rugby player identifier
player_name VARCHAR
Player display name
jersey_number INTEGER
Shirt number; 1-15 start, 16 and above are replacements
position_code VARCHAR
World Rugby position code, such as SR or Rep
position VARCHAR
Position label, such as Lock or Replacement
is_starter BOOLEAN
Whether the player was named in the starting fifteen
is_captain BOOLEAN
Whether the player captained the side
is_forward BOOLEAN
Whether World Rugby classifies the player as a forward
caps INTEGER
Test caps at the time of the match, when supplied
date_of_birth DATE
Player date of birth when supplied
height_cm INTEGER
Height in centimetres when supplied
weight_kg INTEGER
Weight in kilograms when supplied
minutes_played INTEGER
Minutes on the field; null when stats are unavailable
points INTEGER
Points scored
tries INTEGER
Tries scored
try_assists INTEGER
Try assists
conversions INTEGER
Conversions kicked
carries INTEGER
Ball carries
metres INTEGER
Metres made with ball in hand
clean_breaks INTEGER
Clean line breaks
defenders_beaten INTEGER
Defenders beaten
offloads INTEGER
Offloads
passes INTEGER
Passes
tackles INTEGER
Tackles made
missed_tackles INTEGER
Tackles missed
tackle_success DOUBLE
Tackle completion ratio from 0 to 1
turnovers_won INTEGER
Turnovers won
turnovers_conceded INTEGER
Turnovers conceded
lineouts_won INTEGER
Lineouts won
kicks_from_hand INTEGER
Kicks from hand
kick_metres INTEGER
Metres gained from kicks out of hand
yellow_cards INTEGER
Yellow cards received
red_cards INTEGER
Red cards received
Examples (2)

Top tacklers in England v Australia, 8 November 2026.

SELECT team_name, player_name, tackles, missed_tackles
FROM rugby.main.match_squads('d21f7bed-f2f9-45bd-be33-3a0fc9beec42')
ORDER BY tackles DESC NULLS LAST
LIMIT 5;

Starting fifteens for England v Australia, 8 November 2026

SELECT team_name, jersey_number, player_name, position
FROM rugby.main.match_squads('d21f7bed-f2f9-45bd-be33-3a0fc9beec42')
WHERE is_starter
ORDER BY team_index, jersey_number;
Link
match_stats (match_id VARCHAR) 2 examples

Team statistics for one World Rugby match, one row per team and statistic

Arguments
match_id VARCHAR
World Rugby match identifier (36 characters with hyphens) from matches() or current_matches.
Returns columns
match_id VARCHAR
World Rugby match identifier, as accepted by match_stats()
team_index INTEGER
0 for the home (first-listed) team, 1 for the away team
wr_team_id VARCHAR
World Rugby team identifier
team_name VARCHAR
Team name
stat VARCHAR
Statistic name in snake_case, such as carries_metres
source_stat VARCHAR
World Rugby's original statistic name, such as CarriesMetres
value DOUBLE
Statistic value; ratios such as tackle_success are 0 to 1
Examples (2)

Side-by-side key statistics for England v Australia, 8 November 2026.

SELECT stat, max(value) FILTER (WHERE team_index = 0) AS home,
  max(value) FILTER (WHERE team_index = 1) AS away
FROM rugby.main.match_stats('d21f7bed-f2f9-45bd-be33-3a0fc9beec42')
WHERE stat IN ('carries_metres', 'clean_breaks', 'tackles', 'possession')
GROUP BY stat;

Metres carried by each side in England v Australia, 8 November 2026

SELECT team_name, value AS metres
FROM rugby.main.match_stats('d21f7bed-f2f9-45bd-be33-3a0fc9beec42')
WHERE stat = 'carries_metres'
ORDER BY team_index;
Link
match_team_stats (league VARCHAR, event_id INTEGER) 1 example

Team box-score statistics for one ESPN rugby event, one row per team and statistic

Arguments
league VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key.
event_id INTEGER
ESPN event identifier from fixtures(), results() or scoreboard().
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
event_id INTEGER
ESPN event identifier
team_id INTEGER
ESPN team identifier
team_name VARCHAR
Team name
home_away VARCHAR
home or away
stat VARCHAR
Statistic name in snake_case, such as clean_breaks
value DOUBLE
Numeric value; possession and territory are 0 to 1 ratios
display_value VARCHAR
ESPN's display value
Example

Ireland v Scotland, 14 March 2026: tackles and metres.

SELECT team_name, stat, value
FROM rugby.main.match_team_stats('six_nations', 602514)
WHERE stat IN ('tackles', 'metres')
ORDER BY stat, home_away;
Link
match_timeline (match_id VARCHAR) 2 examples

Timeline of scores, cards and replacements for one World Rugby match

Arguments
match_id VARCHAR
World Rugby match identifier (36 characters with hyphens) from matches() or current_matches.
Returns columns
match_id VARCHAR
World Rugby match identifier, as accepted by match_stats()
sequence INTEGER
Order of the event within the match, starting at 1
phase VARCHAR
Match phase code: L1 first half, LHT half-time, L2 second half
clock_seconds INTEGER
Game clock in seconds when the event happened
clock_label VARCHAR
Game clock label, such as 25:51
event_code VARCHAR
World Rugby event code, such as T5, C2, P3, Yellow
event_type VARCHAR
Event description, such as Try or Yellow Card
event_group VARCHAR
Event group, such as Try, Con, Pen, YC, Sub On
points INTEGER
Points the event added to the team's score
team_index INTEGER
0 for the home (first-listed) team, 1 for the away team
team_name VARCHAR
Team credited with the event
wr_player_id VARCHAR
World Rugby identifier of the player involved
player_name VARCHAR
Name of the player involved, resolved from the team sheet
home_score INTEGER
Running home score after the event
away_score INTEGER
Running away score after the event
occurred_at TIMESTAMP WITH TIME ZONE
Wall-clock time of the event in UTC
Examples (2)

Scoring sequence of England v Australia, 8 November 2026.

SELECT clock_label, team_name, event_type, player_name, home_score,
  away_score
FROM rugby.main.match_timeline('d21f7bed-f2f9-45bd-be33-3a0fc9beec42')
WHERE points > 0
ORDER BY sequence;

Every score in England v Australia, 8 November 2026, with the scorer's team-sheet position (Replacement for the bench) and whether he started (timeline joined to the team sheets on wr_player_id).

SELECT t.clock_label, t.team_name, t.event_type, t.player_name, sq.position,
  sq.is_starter
FROM rugby.main.match_timeline('d21f7bed-f2f9-45bd-be33-3a0fc9beec42') AS t
LEFT JOIN rugby.main.match_squads('d21f7bed-f2f9-45bd-be33-3a0fc9beec42') AS sq USING (wr_player_id)
WHERE t.points > 0
ORDER BY t.sequence;
Link
matches (end_date := DATE, start_date := DATE) 2 examples

World Rugby's cross-competition match feed for a date range

Named arguments
end_date := DATE
Inclusive last day of the window, venue-local. NULL means seven days after start_date (or today). Β· default null
start_date := DATE
Inclusive first day of the window, venue-local. NULL means seven days before end_date (or today). Β· default null
Returns columns
match_id VARCHAR
World Rugby match identifier, as accepted by match_stats()
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC
local_date DATE
Match date in the venue's local time zone
gmt_offset_hours DOUBLE
Venue's offset from UTC in hours at kick-off
gender VARCHAR
men or women, from World Rugby's sport code
competition VARCHAR
Competition and edition label, such as Six Nations 2026
wr_competition_id VARCHAR
World Rugby event identifier for the competition edition
status_code VARCHAR
World Rugby status code: C complete, U not yet complete, L* live
is_complete BOOLEAN
Whether World Rugby marks the match result as complete
home_wr_team_id VARCHAR
World Rugby identifier of the first-listed (home) team
home_team_name VARCHAR
First-listed (home) team name
home_team_abbreviation VARCHAR
First-listed team abbreviation when supplied
away_wr_team_id VARCHAR
World Rugby identifier of the second-listed (away) team
away_team_name VARCHAR
Second-listed (away) team name
away_team_abbreviation VARCHAR
Second-listed team abbreviation when supplied
home_score INTEGER
Home team score in match points; may be provisional while not complete
away_score INTEGER
Away team score in match points; may be provisional while not complete
outcome VARCHAR
home, away, or draw once decided; null otherwise
winner_team_name VARCHAR
Winning team name, null for a draw or undecided match
venue_name VARCHAR
Name of the stadium or ground
venue_city VARCHAR
City in which the stadium is located
venue_country VARCHAR
Country in which the stadium is located
attendance INTEGER
Reported attendance as a count of spectators, when supplied
match_clock VARCHAR
Game clock label of a match in play, such as 54:16; NULL when the feed reports no clock
Examples (2)

Test results from the 2026 autumn window.

SELECT local_date, home_team_name, home_score, away_score, away_team_name
FROM rugby.main.matches(start_date := DATE '2026-11-01', end_date := DATE '2026-11-10')
WHERE competition ILIKE 'Nations Championship%'
ORDER BY kickoff;

Nations Championship results from 1-10 November 2026 with each side's world ranking going in, joined on World Rugby team ids.

SELECT m.local_date, m.home_team_name, m.home_score, m.away_score,
  m.away_team_name, h.position AS home_rank, a.position AS away_rank
FROM rugby.main.matches(start_date := DATE '2026-11-01', end_date := DATE '2026-11-10') AS m
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS h ON h.wr_team_id = m.home_wr_team_id
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS a ON a.wr_team_id = m.away_wr_team_id
WHERE m.competition = 'Nations Championship 2026'
ORDER BY m.kickoff;
Link
results (league := VARCHAR, season := INTEGER) 2 examples

Finished matches and scores for one rugby competition season

Named arguments
league := VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key. Β· default "six_nations"
season := INTEGER
Season label year; split seasons use the end year (2026-27 is 2027). NULL means the current season. Β· default null
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027)
event_id INTEGER
ESPN event identifier, the event_id argument of match functions
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC
name VARCHAR
Fixture name, such as Ireland vs Scotland
status VARCHAR
ESPN status, such as STATUS_FINAL or STATUS_SCHEDULED
state VARCHAR
pre, in, or post
completed BOOLEAN
Whether the match is finished
status_detail VARCHAR
Short status text, such as FT or a kick-off time
home_team_id INTEGER
ESPN identifier of the home team
home_team_name VARCHAR
Home team name
home_team_abbreviation VARCHAR
Home team abbreviation
away_team_id INTEGER
ESPN identifier of the away team
away_team_name VARCHAR
Away team name
away_team_abbreviation VARCHAR
Away team abbreviation
home_score INTEGER
Home team points; null before kick-off
away_score INTEGER
Away team points; null before kick-off
home_half_time_score INTEGER
Home team points at half-time
away_half_time_score INTEGER
Away team points at half-time
winner VARCHAR
home, away, or draw for finished matches; null otherwise
venue_name VARCHAR
Venue name
venue_city VARCHAR
Venue city
neutral_site BOOLEAN
Whether the venue is neutral
attendance INTEGER
Reported attendance; null when ESPN reports none
Examples (2)

Every 2026 Six Nations result.

SELECT kickoff::DATE AS day, home_team_name, home_score, away_score,
  away_team_name
FROM rugby.main.results(league := 'six_nations', season := 2026)
ORDER BY kickoff;

2026 Six Nations upsets: results won by the side ranked lower in the World Rugby rankings in force before the championship (ESPN results joined to World Rugby rankings on team name).

WITH start_ranks AS (SELECT team_name, position FROM rugby.main.world_rankings(as_of := DATE '2026-02-01')) SELECT r.kickoff::DATE AS day, r.home_team_name, r.home_score, r.away_score, r.away_team_name, h.position AS home_rank, a.position AS away_rank
FROM rugby.main.results(league := 'six_nations', season := 2026) AS r
JOIN start_ranks AS h ON h.team_name = r.home_team_name
JOIN start_ranks AS a ON a.team_name = r.away_team_name
WHERE (r.home_score > r.away_score AND h.position > a.position) OR (r.away_score > r.home_score AND a.position > h.position)
ORDER BY r.kickoff;
Link
scoreboard (dates := VARCHAR, league := VARCHAR) 1 example

Rugby scoreboard for a competition on a day, month or year

Named arguments
dates := VARCHAR
YYYYMMDD for a day, YYYYMM for a month or YYYY for a year. NULL is ESPN's current scoreboard. Β· default null
league := VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key. Β· default "six_nations"
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027)
event_id INTEGER
ESPN event identifier, the event_id argument of match functions
kickoff TIMESTAMP WITH TIME ZONE
Scheduled kick-off time in UTC
name VARCHAR
Fixture name, such as Ireland vs Scotland
status VARCHAR
ESPN status, such as STATUS_FINAL or STATUS_SCHEDULED
state VARCHAR
pre, in, or post
completed BOOLEAN
Whether the match is finished
status_detail VARCHAR
Short status text, such as FT or a kick-off time
home_team_id INTEGER
ESPN identifier of the home team
home_team_name VARCHAR
Home team name
home_team_abbreviation VARCHAR
Home team abbreviation
away_team_id INTEGER
ESPN identifier of the away team
away_team_name VARCHAR
Away team name
away_team_abbreviation VARCHAR
Away team abbreviation
home_score INTEGER
Home team points; null before kick-off
away_score INTEGER
Away team points; null before kick-off
home_half_time_score INTEGER
Home team points at half-time
away_half_time_score INTEGER
Away team points at half-time
winner VARCHAR
home, away, or draw for finished matches; null otherwise
venue_name VARCHAR
Venue name
venue_city VARCHAR
Venue city
neutral_site BOOLEAN
Whether the venue is neutral
attendance INTEGER
Reported attendance; null when ESPN reports none
Example

Super Saturday, 14 March 2026.

SELECT kickoff, home_team_name, home_score, away_score, away_team_name,
  status_detail
FROM rugby.main.scoreboard(league := 'six_nations', dates := '20260314')
ORDER BY kickoff;
Link
standings (league := VARCHAR, season := INTEGER) 3 examples

Rugby league table for one competition and season

Named arguments
league := VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key. Β· default "six_nations"
season := INTEGER
Season label year; split seasons use the end year (2026-27 is 2027). NULL means the current season. Β· default null
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
season INTEGER
Season label year; split seasons use their end year (2026-27 is 2027)
season_display VARCHAR
ESPN season label, such as 2026 or 2026-27
group_name VARCHAR
Table or pool name, such as Pool 1; single tables repeat the league
rank INTEGER
Position in the table or pool
team_id INTEGER
ESPN numeric team identifier (not a count)
team_name VARCHAR
Display name of the club or national team
team_abbreviation VARCHAR
ESPN short code for the team, such as FRA
games_played INTEGER
Count of matches played
wins INTEGER
Count of matches won
draws INTEGER
Count of matches drawn
losses INTEGER
Count of matches lost
byes INTEGER
Count of byes taken, where the competition awards them
points_for INTEGER
Total match points scored, in points
points_against INTEGER
Total match points conceded, in points
points_difference INTEGER
Points for minus points against, in points
tries_for INTEGER
Count of tries scored
tries_against INTEGER
Count of tries conceded
tries_difference INTEGER
Count of tries scored minus tries conceded
try_bonus_points INTEGER
Table points earned for scoring four or more tries (or three more than the opponent)
losing_bonus_points INTEGER
Count of table points earned for losing by seven match points or fewer
bonus_points INTEGER
Total bonus table points (try plus losing bonus)
table_points INTEGER
Competition table points (4 per win, 2 per draw, plus bonus points); the ranking criterion
Examples (3)

The final 2026 Six Nations table.

SELECT rank, team_name, wins, losses, points_difference, bonus_points,
  table_points
FROM rugby.main.standings(league := 'six_nations', season := 2026)
ORDER BY rank;

The 2025-26 Gallagher Prem table.

SELECT rank, team_name, table_points
FROM rugby.main.standings(league := 'premiership', season := 2026)
ORDER BY rank;

Final 2026 Six Nations table beside each team's World Rugby ranking before (1 February) and after (16 March) the championship, with the ranking points gained or lost.

SELECT s.rank AS table_rank, s.team_name, s.table_points,
  b.position AS rank_before, a.position AS rank_after,
  round(a.points - b.points, 2) AS ranking_points_change
FROM rugby.main.standings(league := 'six_nations', season := 2026) AS s
JOIN rugby.main.world_rankings(as_of := DATE '2026-02-01') AS b USING (team_name)
JOIN rugby.main.world_rankings(as_of := DATE '2026-03-16') AS a USING (team_name)
ORDER BY s.rank;
Link
teams (league := VARCHAR) 2 examples

Teams in one rugby competition

Named arguments
league := VARCHAR
League key, such as six_nations, premiership, urc, top14, champions_cup or super_rugby; see the competitions table for every key. Β· default "six_nations"
Returns columns
league VARCHAR
League key accepted by the league argument, such as six_nations
league_name VARCHAR
Competition name
team_id INTEGER
ESPN team identifier
team_name VARCHAR
Full team name
short_name VARCHAR
Short display name
abbreviation VARCHAR
Team abbreviation
slug VARCHAR
ESPN URL slug
color VARCHAR
Primary colour as a hex string
is_active BOOLEAN
Whether ESPN marks the team as active
Examples (2)

Teams in the United Rugby Championship.

SELECT team_id, team_name, abbreviation
FROM rugby.main.teams(league := 'urc')
ORDER BY team_name;

The six Six Nations teams

SELECT team_id, team_name, abbreviation
FROM rugby.main.teams()
ORDER BY team_name;
Link
world_rankings (as_of := DATE, gender := VARCHAR) 2 examples

Official World Rugby men's or women's rankings, current or as of a date

Named arguments
as_of := DATE
Return the rankings in force on this day. NULL returns the latest rankings. Β· default null
gender := VARCHAR
men for the men's rankings or women for the women's rankings. Β· default "men"
Returns columns
gender VARCHAR
Rankings table: men or women
effective_date DATE
Date on which World Rugby's ranking took effect
position INTEGER
Current world ranking position (ordinal rank, 1 is best)
previous_position INTEGER
Ranking position (ordinal rank, 1 is best) before the most recent update
wr_team_id VARCHAR
World Rugby team identifier
team_name VARCHAR
National team name
team_abbreviation VARCHAR
Three-letter team abbreviation, such as RSA
country_code VARCHAR
ISO 3166 alpha-3 country code when World Rugby supplies one
points DOUBLE
World Rugby ranking points, a rating on a 0-100 scale
previous_points DOUBLE
Ranking points (0-100 scale) before the most recent update
points_change DOUBLE
Change in ranking points since the previous update; positive means the team rose
Examples (2)

Men's top ten after the 2023 Rugby World Cup final.

SELECT position, team_name, points
FROM rugby.main.world_rankings(as_of := DATE '2023-10-30')
WHERE position <= 10
ORDER BY position;

Current women's top five.

SELECT position, team_name, points
FROM rugby.main.world_rankings(gender := 'women')
ORDER BY position
LIMIT 5;
Link

Try these queries

both_rankings_are_populated β€” The current rankings table carries both the men's and women's tables.

SELECT count(DISTINCT gender) = 2 AND count(*) > 100 AS populated
FROM rugby.main.current_world_rankings;

Uses current_world_rankings

six_nations_2026_has_fifteen_results β€” A Six Nations championship is fifteen matches.

SELECT count(*) AS matches
FROM rugby.main.results(league := 'six_nations', season := 2026);

Uses results

rankings_after_2023_world_cup β€” South Africa led the men's rankings after winning the 2023 Rugby World Cup.

SELECT team_name
FROM rugby.main.world_rankings(as_of := DATE '2023-10-30')
WHERE position = 1;

Uses world_rankings

The current Gallagher Prem table.

SELECT rank, team_name, games_played, table_points
FROM rugby.main.current_standings
WHERE league = 'premiership'
ORDER BY rank

Uses current_standings

Final 2026 Six Nations table beside each team's World Rugby ranking before (1 February) and after (16 March) the championship, with the ranking points gained or lost.

SELECT s.rank AS table_rank, s.team_name, s.table_points,
  b.position AS rank_before, a.position AS rank_after,
  round(a.points - b.points, 2) AS ranking_points_change
FROM rugby.main.standings(league := 'six_nations', season := 2026) AS s
JOIN rugby.main.world_rankings(as_of := DATE '2026-02-01') AS b USING (team_name)
JOIN rugby.main.world_rankings(as_of := DATE '2026-03-16') AS a USING (team_name)
ORDER BY s.rank

Uses standingsworld_rankings

Nations Championship results from 1-10 November 2026 with each side's world ranking going in, joined on World Rugby team ids.

SELECT m.local_date, m.home_team_name, m.home_score, m.away_score,
  m.away_team_name, h.position AS home_rank, a.position AS away_rank
FROM rugby.main.matches(start_date := DATE '2026-11-01', end_date := DATE '2026-11-10') AS m
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS h ON h.wr_team_id = m.home_wr_team_id
JOIN rugby.main.world_rankings(as_of := DATE '2026-11-01') AS a ON a.wr_team_id = m.away_wr_team_id
WHERE m.competition = 'Nations Championship 2026'
ORDER BY m.kickoff

Uses matchesworld_rankings

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

  • Who is ranked number one in the men's and women's World Rugby rankings right now?
  • Show the final 2026 Six Nations table with bonus points and table points, and say how many points France scored across the championship.
  • Which team was ranked number one in the men's world rankings on 30 October 2023, and with how many points?
  • List the scoring sequence of the England v Australia test on 8 November 2026, with who scored and the running score.
  • Who made the most tackles in the Ireland v Scotland Six Nations match on 14 March 2026, did he start, and how many tackles did Ireland make as a team?
  • Which team currently tops the Gallagher Prem table?

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