Skip to content

Cricket

Cricket matches, scorecards, ball-by-ball deliveries, standings, and ICC rankings as SQL tables

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

See the top five Test bowlers

Example output Β· captured
Connector release
v0.3.1
Engine
2.0.1
VGI protocol
3.4.0
SELECT rank, player, country, rating
FROM cricket.main.current_player_rankings
WHERE format = 'test' AND discipline = 'bowl'
ORDER BY rank
LIMIT 5
Result
rank player country rating
1 Mitchell Starc Australia 881
2 Jasprit Bumrah India 856
2 Ollie Robinson England 856
4 Marco Jansen South Africa 853
5 Matt Henry New Zealand 846

Quick start

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

3. Run a query

query.sql
SELECT rank, player, country, rating
FROM cricket.main.current_player_rankings
WHERE format = 'test' AND discipline = 'bowl'
ORDER BY rank
LIMIT 5
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 'cricket' AS cricket (
  TYPE vgi,
  LOCATION 'uvx --from git+https://github.com/Query-farm/[email protected] vgi-cricket'
);

Overview

Read-only cricket data: Cricsheet ball-by-ball history, ESPN live scores, ICC rankings, and official ECB tables

Catalog

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

cricket 1 schema
main 8 tables Β· 24 functions

Cricket matches, scorecards, standings, rankings, and live scores

Schema examples (5)
Examples (5)

Top scorer in each IPL 2026 knockout match: matches() picks the playoff fixtures and batting_scorecard() supplies the batters.

SELECT m.start_date, m.stage, b.batting_team, b.batter, b.runs, b.balls
FROM cricket.main.matches('ipl', season := '2026') m
JOIN cricket.main.batting_scorecard('ipl', season := '2026') b USING (match_id)
WHERE m.stage IS NOT NULL
QUALIFY row_number() OVER (PARTITION BY m.match_id ORDER BY b.runs DESC, b.balls) = 1
ORDER BY m.start_date;

Average first-innings total at each IPL 2026 ground, using the venues register's canonical names (innings_summary joined to matches and venues on venue_id).

SELECT v.unique_name AS ground, count(*) AS matches_played,
  round(avg(i.runs), 1) AS avg_first_innings
FROM cricket.main.innings_summary('ipl', season := '2026') i
JOIN cricket.main.matches('ipl', season := '2026') m USING (match_id)
JOIN cricket.main.venues v USING (venue_id)
WHERE i.innings_number = 1 AND NOT i.super_over
GROUP BY ALL
ORDER BY avg_first_innings DESC, ground;

The IPL 2026 league table alongside each team's powerplay (overs 1-6) batting run rate and wickets lost, aggregated from deliveries() over the whole season.

WITH pp AS (SELECT batting_team AS team, round(sum(runs_total) * 6.0 / count(*) FILTER (WHERE is_legal), 2) AS powerplay_run_rate, count(*) FILTER (WHERE is_wicket) AS powerplay_wickets FROM cricket.main.deliveries('ipl', season := '2026') WHERE over_number <= 6 AND NOT super_over GROUP BY team) SELECT s.position, s.team, s.points, pp.powerplay_run_rate, pp.powerplay_wickets
FROM cricket.main.standings('ipl', season := '2026') s
JOIN pp USING (team)
ORDER BY s.position;

Matches in progress right now.

SELECT league_name, name, home_score, away_score, status
FROM cricket.main.current_matches
WHERE state = 'in';
1 more example

Today's finished results.

SELECT league_name, name, summary
FROM cricket.main.current_matches
WHERE state = 'post';
Tables
competitions 1 example9 cols

Supported competition codes with ESPN league ids

Columns
competitionnot null VARCHAR
Competition code accepted by every Cricsheet function.
name VARCHAR
Competition name.
gender VARCHAR
male or female; NULL when the archive covers both.
team_type VARCHAR
international or club.
match_format VARCHAR
Format family: Test, ODI, T20I, T20, 100-ball, First-class, or List A.
region VARCHAR
Country or region the competition is played in.
espn_league_id INTEGER
ESPN cricket league id used by schedule(); NULL when not mapped.
points_for_win INTEGER
League-table points standings() awards for a win.
cricsheet_url VARCHAR
Cricsheet archive the competition's history is read from.
ConstraintsPRIMARY KEY (competition)
Example

Franchise T20 leagues and their ESPN ids.

SELECT competition, name, region, espn_league_id
FROM cricket.main.competitions
WHERE team_type = 'club' AND match_format = 'T20'
ORDER BY competition;
Link
current_matches 2 examples23 cols

Live, recent, and upcoming matches from ESPN, one row per match

Columns
event_idnot null BIGINT
ESPN event identifier (opaque number), equal to the Cricsheet and ESPNcricinfo match id.
league_id INTEGER
Numeric ESPN league (series) identifier.
league_name VARCHAR
ESPN league or series name.
season_year INTEGER
ESPN season as a calendar year.
start_time TIMESTAMP WITH TIME ZONE
Scheduled start time in UTC.
end_time TIMESTAMP WITH TIME ZONE
Scheduled end time in UTC.
name VARCHAR
Match name, for example Royal Challengers Bengaluru v Gujarat Titans.
short_name VARCHAR
Abbreviated match name.
description VARCHAR
Match label such as Final or 9th Match.
match_class VARCHAR
ESPN match class such as Twenty20, ODI, or Test.
venue VARCHAR
Ground name.
city VARCHAR
Ground city.
country VARCHAR
Ground country.
state VARCHAR
pre (scheduled), in (live), or post (finished).
status VARCHAR
Status text such as Result, Live, Stumps, or Scheduled.
summary VARCHAR
Result or situation summary, for example RCB won by 5 wkts.
home_team VARCHAR
Home (or second-listed) team.
home_team_id BIGINT
ESPN team identifier (opaque number) of the home team.
home_score VARCHAR
Home team's score text.
away_team VARCHAR
Away (or first-listed) team.
away_team_id BIGINT
ESPN team identifier (opaque number) of the away team.
away_score VARCHAR
Away team's score text.
winner VARCHAR
Winning team once decided.
ConstraintsPRIMARY KEY (event_id)
Examples (2)

Matches in progress right now.

SELECT league_name, name, home_score, away_score, status
FROM cricket.main.current_matches
WHERE state = 'in';

Today's finished results.

SELECT league_name, name, summary
FROM cricket.main.current_matches
WHERE state = 'post';
Link
current_player_rankings 1 example12 cols

Current ICC player rankings for every format and discipline

Columns
formatnot null VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w.
disciplinenot null VARCHAR
bat, bowl, or allrounder.
rank_date DATE
Date the ranking was published.
rank INTEGER
Ranking position (1 = best); tied players share a rank.
player VARCHAR
Player name.
player_idnot null BIGINT
ICC player identifier (opaque number).
country VARCHAR
Country name.
country_abbreviation VARCHAR
Country short name.
team_id INTEGER
ICC team identifier (opaque number).
rating INTEGER
Rating in ICC points (0 to about 1000).
career_best VARCHAR
Career-best rating and occasion.
rank_change VARCHAR
Movement since the previous update.
ConstraintsPRIMARY KEY (format, discipline, player_id)
Example

Top five Test bowlers.

SELECT rank, player, country, rating
FROM cricket.main.current_player_rankings
WHERE format = 'test' AND discipline = 'bowl'
ORDER BY rank
LIMIT 5;
Result
rank player country rating
1 Mitchell Starc Australia 881
2 Jasprit Bumrah India 856
2 Ollie Robinson England 856
4 Marco Jansen South Africa 853
5 Matt Henry New Zealand 846
Link
current_recent_matches 1 example32 cols

Matches from the last seven days from Cricsheet, one row per match

Columns
match_idnot null BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id.
competition VARCHAR
Competition code from the competitions table, such as ipl.
event_name VARCHAR
Event or series name recorded by Cricsheet.
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26.
match_number INTEGER
Ordinal number of the match within the event, when recorded.
stage VARCHAR
Knockout stage such as Final or Qualifier 1; NULL for league-stage matches.
event_group VARCHAR
Group label within the event, when recorded.
start_date DATE
First scheduled day of the match.
end_date DATE
Last scheduled day of the match.
match_type VARCHAR
Cricsheet match type: Test, ODI, T20, IT20, ODM, or MDM.
gender VARCHAR
male or female.
team_type VARCHAR
international or club.
scheduled_overs INTEGER
Scheduled overs per innings for limited-overs matches.
balls_per_over INTEGER
Balls per over; 5 for The Hundred's sets, otherwise 6.
team1 VARCHAR
First team as listed by Cricsheet.
team2 VARCHAR
Second team as listed by Cricsheet.
team1_score VARCHAR
team1 innings scores, for example 155/8 (20.0 ov); innings joined by &.
team2_score VARCHAR
team2 innings scores, for example 161/5 (18.0 ov); innings joined by &.
venue VARCHAR
Ground name as recorded for this match.
venue_id VARCHAR
Cricsheet venue identifier; joins to venues.venue_id.
city VARCHAR
City of the ground, when recorded.
toss_winner VARCHAR
Team that won the toss.
toss_decision VARCHAR
bat or field.
result VARCHAR
win, tie, draw, or no result.
winner VARCHAR
Winning team, including super-over and bowl-out winners of tied matches.
win_by_runs INTEGER
Winning margin in runs, when won by runs.
win_by_wickets INTEGER
Winning margin in wickets, when won by wickets.
win_by_innings BOOLEAN
Whether a multi-day match was won by an innings.
decided_by VARCHAR
super over or bowl out when a tie was broken; otherwise NULL.
method VARCHAR
Result method such as D/L or Awarded, when one applied.
player_of_match VARCHAR
Player(s) of the match, comma-separated.
umpires VARCHAR
On-field umpires, comma-separated.
ConstraintsPRIMARY KEY (match_id)
Example

Results from the last week, newest first.

SELECT start_date, event_name, team1, team1_score, team2, team2_score,
  winner
FROM cricket.main.current_recent_matches
ORDER BY start_date DESC;
Link
current_team_rankings 1 example10 cols

Current ICC team rankings for every format

Columns
formatnot null VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w.
rank_date DATE
Date the ranking was published.
rank INTEGER
Ranking position (1 = best).
teamnot null VARCHAR
Team name.
team_abbreviation VARCHAR
Team short name.
team_id INTEGER
ICC team identifier (opaque number).
matches INTEGER
Matches counted in the rating period.
points INTEGER
Rating points (sum over the rating period).
rating INTEGER
Rating in ICC points: weighted points divided by matches.
rank_change VARCHAR
Movement since the previous update, for example (+2) or ( - ).
ConstraintsPRIMARY KEY (format, team)
Example

Number-one team in each format.

SELECT format, team, rating
FROM cricket.main.current_team_rankings
WHERE rank = 1
ORDER BY format;
Link
ecb_tournaments 1 example6 cols

Every tournament in the official ECB feed

Columns
tournament_idnot null BIGINT
ECB PulseLive tournament identifier (opaque number).
name VARCHAR
Tournament name.
tournament_type VARCHAR
ECB tournament type, for example ENGLISH_DOMESTIC, INTERNATIONAL, or WOMEN_INTERNATIONAL.
match_types VARCHAR
Scheduled match counts by type, for example T20:34.
total_matches INTEGER
Count of scheduled matches across all match types.
provisional BOOLEAN
Whether ECB flags the tournament as provisional.
ConstraintsPRIMARY KEY (tournament_id)
Example

Recent County Championship tournament ids.

SELECT tournament_id, name, match_types
FROM cricket.main.ecb_tournaments
WHERE name LIKE '%County Championship%'
ORDER BY tournament_id DESC
LIMIT 4;
Link
people 1 example11 cols

Cricsheet people register with cross-source identifiers

Columns
person_idnot null VARCHAR
Cricsheet person identifier.
name VARCHAR
Name as used on Cricsheet scorecards.
unique_name VARCHAR
Disambiguated unique name.
key_cricinfo BIGINT
ESPNcricinfo player identifier (opaque number), equal to the ESPN athlete id.
key_cricbuzz VARCHAR
Cricbuzz player id.
key_bcci VARCHAR
BCCI player id.
key_pulse VARCHAR
PulseLive (ICC/ECB) player id.
key_opta VARCHAR
Opta player id.
key_bigbash VARCHAR
Big Bash League player id.
key_cricketarchive VARCHAR
CricketArchive player id.
key_nvplay VARCHAR
NV Play player id.
ConstraintsPRIMARY KEY (person_id)
Example

Find a player's identifiers.

SELECT person_id, unique_name, key_cricinfo
FROM cricket.main.people
WHERE name = 'V Kohli';
Link
venues 1 example4 cols

Cricsheet register of cricket grounds and their canonical names

Columns
venue_idnot null VARCHAR
Cricsheet venue identifier.
name VARCHAR
Venue name as used in match files.
unique_name VARCHAR
Canonical venue name.
key_cricinfo BIGINT
ESPNcricinfo ground identifier (opaque number).
ConstraintsPRIMARY KEY (venue_id)
Example

Grounds in Mumbai.

SELECT DISTINCT unique_name
FROM cricket.main.venues
WHERE unique_name LIKE '%Mumbai%';
Link
Table functions
all_competitions () 1 example

Supported competition codes with formats and ESPN league ids (scan behind competitions)

No arguments
Returns columns
competition VARCHAR
Competition code accepted by every Cricsheet function
name VARCHAR
Competition name
gender VARCHAR
male or female; NULL when the archive covers both
team_type VARCHAR
international or club
match_format VARCHAR
Format family: Test, ODI, T20I, T20, 100-ball, First-class, or List A
region VARCHAR
Country or region the competition is played in
espn_league_id INTEGER
ESPN cricket league id used by schedule(); NULL when not mapped
points_for_win INTEGER
League-table points standings() awards for a win
cricsheet_url VARCHAR
Cricsheet archive the competition's history is read from
Example

Read the competitions backing scan directly.

SELECT competition, name, espn_league_id
FROM cricket.main.all_competitions()
ORDER BY competition;
Link
all_current_matches () 1 example

Live, recent, and upcoming matches from ESPN (scan behind current_matches)

No arguments
Returns columns
event_id BIGINT
ESPN event identifier (opaque number), equal to the Cricsheet and ESPNcricinfo match id
league_id INTEGER
Numeric ESPN league (series) identifier
league_name VARCHAR
ESPN league or series name
season_year INTEGER
ESPN season as a calendar year
start_time TIMESTAMP WITH TIME ZONE
Scheduled start time in UTC
end_time TIMESTAMP WITH TIME ZONE
Scheduled end time in UTC
name VARCHAR
Match name, for example Royal Challengers Bengaluru v Gujarat Titans
short_name VARCHAR
Abbreviated match name
description VARCHAR
Match label such as Final or 9th Match
match_class VARCHAR
ESPN match class such as Twenty20, ODI, or Test
venue VARCHAR
Ground name
city VARCHAR
Ground city
country VARCHAR
Ground country
state VARCHAR
pre (scheduled), in (live), or post (finished)
status VARCHAR
Status text such as Result, Live, Stumps, or Scheduled
summary VARCHAR
Result or situation summary, for example RCB won by 5 wkts
home_team VARCHAR
Home (or second-listed) team
home_team_id BIGINT
ESPN team identifier (opaque number) of the home team
home_score VARCHAR
Home team's score text
away_team VARCHAR
Away (or first-listed) team
away_team_id BIGINT
ESPN team identifier (opaque number) of the away team
away_score VARCHAR
Away team's score text
winner VARCHAR
Winning team once decided
Example

Read the current_matches backing scan directly.

SELECT league_name, name, status, summary
FROM cricket.main.all_current_matches()
WHERE state = 'in';
Link
all_current_player_rankings () 1 example

ICC player rankings for every format and discipline (scan behind current_player_rankings)

No arguments
Returns columns
format VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w
discipline VARCHAR
bat, bowl, or allrounder
rank_date DATE
Date the ranking was published
rank INTEGER
Ranking position (1 = best); tied players share a rank
player VARCHAR
Player name
player_id BIGINT
ICC player identifier (opaque number)
country VARCHAR
Country name
country_abbreviation VARCHAR
Country short name
team_id INTEGER
ICC team identifier (opaque number)
rating INTEGER
Rating in ICC points (0 to about 1000)
career_best VARCHAR
Career-best rating and occasion
rank_change VARCHAR
Movement since the previous update
Example

Read the current_player_rankings backing scan directly.

SELECT format, discipline, player, country, rating
FROM cricket.main.all_current_player_rankings()
WHERE rank = 1
ORDER BY format, discipline;
Link
all_current_recent_matches () 1 example

Matches played in the last seven days from Cricsheet (scan behind current_recent_matches)

No arguments
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
event_name VARCHAR
Event or series name recorded by Cricsheet
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
match_number INTEGER
Ordinal number of the match within the event, when recorded
stage VARCHAR
Knockout stage such as Final or Qualifier 1; NULL for league-stage matches
event_group VARCHAR
Group label within the event, when recorded
start_date DATE
First scheduled day of the match
end_date DATE
Last scheduled day of the match
match_type VARCHAR
Cricsheet match type: Test, ODI, T20, IT20, ODM, or MDM
gender VARCHAR
male or female
team_type VARCHAR
international or club
scheduled_overs INTEGER
Scheduled overs per innings for limited-overs matches
balls_per_over INTEGER
Balls per over; 5 for The Hundred's sets, otherwise 6
team1 VARCHAR
First team as listed by Cricsheet
team2 VARCHAR
Second team as listed by Cricsheet
team1_score VARCHAR
team1 innings scores, for example 155/8 (20.0 ov); innings joined by &
team2_score VARCHAR
team2 innings scores, for example 161/5 (18.0 ov); innings joined by &
venue VARCHAR
Ground name as recorded for this match
venue_id VARCHAR
Cricsheet venue identifier; joins to venues.venue_id
city VARCHAR
City of the ground, when recorded
toss_winner VARCHAR
Team that won the toss
toss_decision VARCHAR
bat or field
result VARCHAR
win, tie, draw, or no result
winner VARCHAR
Winning team, including super-over and bowl-out winners of tied matches
win_by_runs INTEGER
Winning margin in runs, when won by runs
win_by_wickets INTEGER
Winning margin in wickets, when won by wickets
win_by_innings BOOLEAN
Whether a multi-day match was won by an innings
decided_by VARCHAR
super over or bowl out when a tie was broken; otherwise NULL
method VARCHAR
Result method such as D/L or Awarded, when one applied
player_of_match VARCHAR
Player(s) of the match, comma-separated
umpires VARCHAR
On-field umpires, comma-separated
Example

Read the current_recent_matches backing scan directly.

SELECT start_date, event_name, team1, team2, winner
FROM cricket.main.all_current_recent_matches()
ORDER BY start_date DESC;
Link
all_current_team_rankings () 1 example

ICC team rankings for every format (scan behind current_team_rankings)

No arguments
Returns columns
format VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w
rank_date DATE
Date the ranking was published
rank INTEGER
Ranking position (1 = best)
team VARCHAR
Team name
team_abbreviation VARCHAR
Team short name
team_id INTEGER
ICC team identifier (opaque number)
matches INTEGER
Matches counted in the rating period
points INTEGER
Rating points (sum over the rating period)
rating INTEGER
Rating in ICC points: weighted points divided by matches
rank_change VARCHAR
Movement since the previous update, for example (+2) or ( - )
Example

Read the current_team_rankings backing scan directly.

SELECT format, rank, team, rating
FROM cricket.main.all_current_team_rankings()
WHERE rank <= 3
ORDER BY format, rank;
Link
all_ecb_tournaments () 1 example

Every ECB tournament (scan behind ecb_tournaments)

No arguments
Returns columns
tournament_id BIGINT
ECB PulseLive tournament identifier (opaque number)
name VARCHAR
Tournament name
tournament_type VARCHAR
ECB tournament type, for example ENGLISH_DOMESTIC, INTERNATIONAL, or WOMEN_INTERNATIONAL
match_types VARCHAR
Scheduled match counts by type, for example T20:34
total_matches INTEGER
Count of scheduled matches across all match types
provisional BOOLEAN
Whether ECB flags the tournament as provisional
Example

Read the ecb_tournaments backing scan directly.

SELECT tournament_id, name, match_types
FROM cricket.main.all_ecb_tournaments()
WHERE name LIKE 'The Hundred%'
ORDER BY tournament_id DESC;
Link
all_people () 1 example

Cricsheet people register with cross-source ids (scan behind people)

No arguments
Returns columns
person_id VARCHAR
Cricsheet person identifier
name VARCHAR
Name as used on Cricsheet scorecards
unique_name VARCHAR
Disambiguated unique name
key_cricinfo BIGINT
ESPNcricinfo player identifier (opaque number), equal to the ESPN athlete id
key_cricbuzz VARCHAR
Cricbuzz player id
key_bcci VARCHAR
BCCI player id
key_pulse VARCHAR
PulseLive (ICC/ECB) player id
key_opta VARCHAR
Opta player id
key_bigbash VARCHAR
Big Bash League player id
key_cricketarchive VARCHAR
CricketArchive player id
key_nvplay VARCHAR
NV Play player id
Example

Read the people backing scan directly.

SELECT person_id, name, key_cricinfo
FROM cricket.main.all_people()
WHERE name = 'V Kohli';
Link
all_venues () 1 example

Cricsheet venue register (scan behind venues)

No arguments
Returns columns
venue_id VARCHAR
Cricsheet venue identifier
name VARCHAR
Venue name as used in match files
unique_name VARCHAR
Canonical venue name
key_cricinfo BIGINT
ESPNcricinfo ground identifier (opaque number)
Example

Read the venues backing scan directly.

SELECT venue_id, unique_name
FROM cricket.main.all_venues()
WHERE unique_name LIKE 'Lord%';
Link
batting_scorecard (competition VARCHAR, match_id := BIGINT, season := VARCHAR) 2 examples

Batting cards, one row per batter per innings, from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
match_id := BIGINT
Match id (equal to the ESPNcricinfo/ESPN id). NULL selects every match in the season. Β· default null
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
start_date DATE
First day of the match
innings_number INTEGER
Innings order within the match
batting_team VARCHAR
Batter's team
bowling_team VARCHAR
Opposing team
batting_position INTEGER
Order in which the batter came to the crease
batter VARCHAR
Batter's name as recorded by Cricsheet
batter_id VARCHAR
Cricsheet person identifier; joins to people.person_id
runs INTEGER
Runs scored off the bat
balls INTEGER
Balls faced (wides excluded, no-balls included)
fours INTEGER
Boundary fours
sixes INTEGER
Boundary sixes
dots INTEGER
Balls faced without scoring off the bat
strike_rate DECIMAL(7,2)
Runs per 100 balls faced
is_out BOOLEAN
Whether the batter was dismissed (retired hurt counts as not out)
dismissal_kind VARCHAR
Dismissal kind such as caught or run out; NULL when not out
dismissed_by VARCHAR
Bowler credited with the dismissal, when the bowler is credited
fielders VARCHAR
Fielders involved in the dismissal, comma-separated
Examples (2)

Batting card of the IPL 2026 final.

SELECT innings_number, batting_position, batter, runs, balls, fours, sixes,
  dismissal_kind
FROM cricket.main.batting_scorecard('ipl', match_id := 1535465)
ORDER BY innings_number, batting_position;

Every IPL 2026 century.

SELECT start_date, batter, batting_team, bowling_team, runs, balls
FROM cricket.main.batting_scorecard('ipl', season := '2026')
WHERE runs >= 100
ORDER BY runs DESC;
Link
batting_stats (competition VARCHAR, season := VARCHAR) 2 examples

Per-player batting totals and averages for a competition and season from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Requested season label; NULL for all seasons in the archive
player_id VARCHAR
Cricsheet person identifier; joins to people.person_id
player VARCHAR
Player name as recorded by Cricsheet
teams VARCHAR
Teams the player appeared for, comma-separated
matches INTEGER
Matches in which the player was in the XI
innings INTEGER
Innings batted
not_outs INTEGER
Innings finished not out
runs INTEGER
Runs scored
balls INTEGER
Balls faced
highest_score INTEGER
Highest innings score
highest_not_out BOOLEAN
Whether the highest score was not out
average DECIMAL(7,2)
Runs per dismissal; NULL without a dismissal
strike_rate DECIMAL(7,2)
Runs per 100 balls faced
fifties INTEGER
Innings of 50 to 99
hundreds INTEGER
Innings of 100 or more
ducks INTEGER
Dismissals for zero
fours INTEGER
Boundary fours
sixes INTEGER
Boundary sixes
Examples (2)

IPL 2026 leading run scorers (the Orange Cap race).

SELECT player, teams, innings, runs, average, strike_rate, hundreds
FROM cricket.main.batting_stats('ipl', season := '2026')
ORDER BY runs DESC
LIMIT 10;

All-time IPL six hitters.

SELECT player, sixes, runs
FROM cricket.main.batting_stats('ipl')
ORDER BY sixes DESC
LIMIT 10;
Link
bowling_scorecard (competition VARCHAR, match_id := BIGINT, season := VARCHAR) 2 examples

Bowling cards, one row per bowler per innings, from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
match_id := BIGINT
Match id (equal to the ESPNcricinfo/ESPN id). NULL selects every match in the season. Β· default null
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
start_date DATE
First day of the match
innings_number INTEGER
Innings order within the match
bowling_team VARCHAR
Bowler's team
batting_team VARCHAR
Team batting in the innings
bowling_order INTEGER
Order in which the bowler first bowled in the innings
bowler VARCHAR
Bowler's name as recorded by Cricsheet
bowler_id VARCHAR
Cricsheet person identifier; joins to people.person_id
legal_balls INTEGER
Legal deliveries bowled
overs VARCHAR
Overs bowled in cricket notation, for example 3.4
maidens INTEGER
Complete overs conceding no runs charged to the bowler
runs_conceded INTEGER
Runs charged to the bowler (bat runs, wides, and no-balls)
wickets INTEGER
Wickets credited to the bowler
economy DECIMAL(7,2)
Runs conceded per six legal balls
dots INTEGER
Legal deliveries from which no run was scored
fours_conceded INTEGER
Boundary fours conceded
sixes_conceded INTEGER
Boundary sixes conceded
wides INTEGER
Wide runs conceded
no_balls INTEGER
No-ball runs conceded
Examples (2)

Bowling card of the IPL 2026 final.

SELECT innings_number, bowler, overs, maidens, runs_conceded, wickets,
  economy
FROM cricket.main.bowling_scorecard('ipl', match_id := 1535465)
ORDER BY innings_number, bowling_order;

IPL 2026 four-wicket hauls.

SELECT start_date, bowler, bowling_team, wickets, runs_conceded, overs
FROM cricket.main.bowling_scorecard('ipl', season := '2026')
WHERE wickets >= 4
ORDER BY wickets DESC, runs_conceded;
Link
bowling_stats (competition VARCHAR, season := VARCHAR) 2 examples

Per-player bowling totals and averages for a competition and season from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Requested season label; NULL for all seasons in the archive
player_id VARCHAR
Cricsheet person identifier; joins to people.person_id
player VARCHAR
Player name as recorded by Cricsheet
teams VARCHAR
Teams the player bowled for, comma-separated
matches INTEGER
Matches in which the player bowled
innings INTEGER
Innings bowled in
legal_balls INTEGER
Legal deliveries bowled
overs VARCHAR
Overs bowled in cricket notation
maidens INTEGER
Maiden overs
runs_conceded INTEGER
Runs charged to the bowler
wickets INTEGER
Wickets credited to the bowler
best_figures VARCHAR
Best innings figures as wickets/runs, for example 5/21
average DECIMAL(7,2)
Runs conceded per wicket
economy DECIMAL(7,2)
Runs conceded per six legal balls
strike_rate DECIMAL(7,2)
Legal balls per wicket
four_wickets INTEGER
Innings with exactly four wickets
five_wickets INTEGER
Innings with five or more wickets
dots INTEGER
Dot balls bowled
Examples (2)

IPL 2026 leading wicket takers (the Purple Cap race).

SELECT player, teams, overs, wickets, average, economy, best_figures
FROM cricket.main.bowling_stats('ipl', season := '2026')
ORDER BY wickets DESC, average
LIMIT 10;

Most economical IPL 2026 bowlers with at least 120 legal balls.

SELECT player, overs, economy
FROM cricket.main.bowling_stats('ipl', season := '2026')
WHERE legal_balls >= 120
ORDER BY economy
LIMIT 10;
Link
deliveries (competition VARCHAR, match_id := BIGINT, season := VARCHAR) 3 examples

Ball-by-ball deliveries for one match or one season from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
match_id := BIGINT
Match id (equal to the ESPNcricinfo/ESPN id). NULL selects every match in the season. Β· default null
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
innings_number INTEGER
Innings order within the match
super_over BOOLEAN
Whether the delivery was bowled in a super over
batting_team VARCHAR
Team batting
bowling_team VARCHAR
Team bowling
over_number INTEGER
Over number, starting at 1
ball_in_over INTEGER
Delivery sequence within the over, counting wides and no-balls
legal_ball_number INTEGER
Running legal-ball count in the innings; NULL for wides and no-balls
batter VARCHAR
Batter on strike
batter_id VARCHAR
Cricsheet person identifier of the batter
non_striker VARCHAR
Non-striking batter
bowler VARCHAR
Bowler
bowler_id VARCHAR
Cricsheet person identifier of the bowler
runs_batter INTEGER
Runs off the bat
runs_extras INTEGER
Extra runs on the delivery
runs_total INTEGER
Total runs on the delivery
wides INTEGER
Wide runs
no_balls INTEGER
No-ball runs
byes INTEGER
Byes
leg_byes INTEGER
Leg byes
penalty INTEGER
Penalty runs
is_legal BOOLEAN
Whether the delivery counts toward the over
is_boundary BOOLEAN
Whether the batter hit a four or six
is_wicket BOOLEAN
Whether a wicket fell on the delivery
player_out VARCHAR
Dismissed batter, when a wicket fell
wicket_kind VARCHAR
Dismissal kind, when a wicket fell
fielders VARCHAR
Fielders involved in the dismissal, comma-separated
Examples (3)

The last over of the IPL 2026 final.

SELECT over_number, ball_in_over, bowler, batter, runs_total, is_wicket
FROM cricket.main.deliveries('ipl', match_id := 1535465)
WHERE innings_number = 2
ORDER BY over_number DESC, ball_in_over DESC
LIMIT 6;

IPL 2026 sixes by bowler conceding them.

SELECT bowler, count(*) AS sixes
FROM cricket.main.deliveries('ipl', season := '2026')
WHERE runs_batter = 6 AND is_boundary
GROUP BY ALL
ORDER BY sixes DESC
LIMIT 10;

The IPL 2026 league table alongside each team's powerplay (overs 1-6) batting run rate and wickets lost, aggregated from deliveries() over the whole season.

WITH pp AS (SELECT batting_team AS team, round(sum(runs_total) * 6.0 / count(*) FILTER (WHERE is_legal), 2) AS powerplay_run_rate, count(*) FILTER (WHERE is_wicket) AS powerplay_wickets FROM cricket.main.deliveries('ipl', season := '2026') WHERE over_number <= 6 AND NOT super_over GROUP BY team) SELECT s.position, s.team, s.points, pp.powerplay_run_rate, pp.powerplay_wickets
FROM cricket.main.standings('ipl', season := '2026') s
JOIN pp USING (team)
ORDER BY s.position;
Link
ecb_fixtures (tournament_id BIGINT) 1 example

Fixtures and results for one ECB tournament from the official ECB feed

Arguments
tournament_id BIGINT
ECB tournament id from the ecb_tournaments table.
Returns columns
fixture_id BIGINT
Numeric ECB PulseLive fixture identifier
tournament_id BIGINT
Numeric ECB tournament identifier
tournament_name VARCHAR
Tournament name
label VARCHAR
Fixture label, for example TR v MSG, The Hundred Men, 16 Aug
description VARCHAR
Fixture description such as Final
start_time TIMESTAMP WITH TIME ZONE
Scheduled start time in UTC
end_time TIMESTAMP WITH TIME ZONE
Finish time in UTC, when recorded
match_type VARCHAR
Match type such as T20, ODI, or FIRST_CLASS
match_state VARCHAR
U upcoming, L live, or C complete
venue VARCHAR
Ground name
venue_city VARCHAR
Ground city or locality
team1 VARCHAR
First team
team1_id BIGINT
First team's ECB id
team1_score VARCHAR
First team's innings scores, for example 158/8 (20.0)
team2 VARCHAR
Second team
team2_id BIGINT
Second team's ECB id
team2_score VARCHAR
Second team's innings scores
result VARCHAR
Result text, for example Manchester Super Giants Men win by 5 wickets
overs_limit INTEGER
Scheduled overs per innings, when limited
Example

The Hundred Men 2026 fixtures and results.

SELECT start_time, label, team1_score, team2_score, result
FROM cricket.main.ecb_fixtures(76753)
ORDER BY start_time;
Link
ecb_standings (tournament_id BIGINT) 2 examples

Official ECB standings with bonus points and net run rate for one tournament

Arguments
tournament_id BIGINT
ECB tournament id from the ecb_tournaments table.
Returns columns
tournament_id BIGINT
Numeric ECB tournament identifier
tournament_name VARCHAR
Tournament name
group_name VARCHAR
Group or division name
position INTEGER
Official table position
team VARCHAR
Team name
team_abbreviation VARCHAR
Team abbreviation
team_id BIGINT
Numeric ECB team identifier
played INTEGER
Matches played
won INTEGER
Wins
lost INTEGER
Losses
tied INTEGER
Ties; recomputed from played minus other results when ECB repeats the draw count here
drawn INTEGER
Draws
no_result INTEGER
No results
batting_bonus INTEGER
Batting bonus points (County Championship)
bowling_bonus INTEGER
Bowling bonus points (County Championship)
deductions DECIMAL(6,1)
Points deducted
points DECIMAL(6,1)
Official points total
net_run_rate DECIMAL(6,3)
Official net run rate; NULL for competitions that do not use it
runs_for INTEGER
Runs scored
balls_for INTEGER
Balls faced
runs_against INTEGER
Runs conceded
balls_against INTEGER
Balls bowled
recent_form VARCHAR
Recent results, most recent first, for example LLWWW
Examples (2)

The official 2026 County Championship Division One table.

SELECT position, team, played, won, lost, drawn, batting_bonus,
  bowling_bonus, points
FROM cricket.main.ecb_standings(76738)
ORDER BY position;

The Hundred Men 2026 table with net run rate.

SELECT position, team, won, lost, points, net_run_rate
FROM cricket.main.ecb_standings(76753)
ORDER BY position;
Link
innings_summary (competition VARCHAR, match_id := BIGINT, season := VARCHAR) 3 examples

Per-innings totals, overs, extras, and targets from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
match_id := BIGINT
Match id (equal to the ESPNcricinfo/ESPN id). NULL selects every match in the season. Β· default null
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
innings_number INTEGER
Innings order within the match, starting at 1
batting_team VARCHAR
Team batting in this innings
bowling_team VARCHAR
Team bowling in this innings
runs INTEGER
Total runs including extras and penalty runs
wickets INTEGER
Wickets lost; retired-hurt and retired-not-out departures are excluded
legal_balls INTEGER
Legal deliveries faced (wides and no-balls excluded)
overs VARCHAR
Overs faced in cricket notation, for example 18.4
run_rate DECIMAL(7,2)
Runs per six legal balls
extras INTEGER
Extras conceded, including penalty runs
byes INTEGER
Byes
leg_byes INTEGER
Leg byes
wides INTEGER
Wide runs
no_balls INTEGER
No-ball runs
penalties INTEGER
Penalty runs awarded
all_out BOOLEAN
Whether the batting side was bowled out
declared BOOLEAN
Whether the innings was declared
forfeited BOOLEAN
Whether the innings was forfeited
super_over BOOLEAN
Whether this innings is a super over
target_runs INTEGER
Target set for this innings, when Cricsheet records one
Examples (3)

Innings totals in the IPL 2026 final.

SELECT innings_number, batting_team, runs, wickets, overs, extras
FROM cricket.main.innings_summary('ipl', match_id := 1535465)
ORDER BY innings_number;

Highest IPL 2026 team totals.

SELECT match_id, batting_team, runs, wickets, overs
FROM cricket.main.innings_summary('ipl', season := '2026')
WHERE NOT super_over
ORDER BY runs DESC
LIMIT 5;

Average first-innings total at each IPL 2026 ground, using the venues register's canonical names (innings_summary joined to matches and venues on venue_id).

SELECT v.unique_name AS ground, count(*) AS matches_played,
  round(avg(i.runs), 1) AS avg_first_innings
FROM cricket.main.innings_summary('ipl', season := '2026') i
JOIN cricket.main.matches('ipl', season := '2026') m USING (match_id)
JOIN cricket.main.venues v USING (venue_id)
WHERE i.innings_number = 1 AND NOT i.super_over
GROUP BY ALL
ORDER BY avg_first_innings DESC, ground;
Link
live_batting_scorecard (event_id BIGINT) 1 example

Batting card for one match from ESPN, live while the match is in progress

Arguments
event_id BIGINT
ESPN event id (equal to the Cricsheet and ESPNcricinfo match id).
Returns columns
event_id BIGINT
Numeric ESPN event identifier
innings_number INTEGER
Innings order within the match
team VARCHAR
Batter's team
team_id BIGINT
Numeric ESPN team identifier
batting_position INTEGER
Batting position
player VARCHAR
Batter's scorecard name
player_id BIGINT
Numeric ESPN athlete identifier; joins to people.key_cricinfo
runs INTEGER
Runs scored
balls_faced INTEGER
Balls faced
minutes INTEGER
Minutes batted
fours INTEGER
Fours
sixes INTEGER
Sixes
strike_rate DECIMAL(7,2)
Runs per 100 balls
is_out BOOLEAN
Whether the batter was dismissed
dismissal VARCHAR
Dismissal text such as caught, lbw, or not out
is_batting BOOLEAN
Whether the batter is at the crease right now
Example

ESPN batting card for the IPL 2026 final.

SELECT innings_number, batting_position, player, runs, balls_faced,
  dismissal
FROM cricket.main.live_batting_scorecard(1535465)
ORDER BY innings_number, batting_position;
Link
live_bowling_scorecard (event_id BIGINT) 1 example

Bowling card for one match from ESPN, live while the match is in progress

Arguments
event_id BIGINT
ESPN event id (equal to the Cricsheet and ESPNcricinfo match id).
Returns columns
event_id BIGINT
Numeric ESPN event identifier
innings_number INTEGER
Innings order within the match
team VARCHAR
Bowler's team
team_id BIGINT
Numeric ESPN team identifier
player VARCHAR
Bowler's scorecard name
player_id BIGINT
Numeric ESPN athlete identifier; joins to people.key_cricinfo
overs VARCHAR
Overs bowled in cricket notation
balls INTEGER
Legal balls bowled
maidens INTEGER
Maidens
runs_conceded INTEGER
Runs conceded
wickets INTEGER
Wickets
economy DECIMAL(7,2)
Runs conceded per over
dots INTEGER
Dot balls
fours_conceded INTEGER
Fours conceded
sixes_conceded INTEGER
Sixes conceded
wides INTEGER
Wides
no_balls INTEGER
No-balls
Example

ESPN bowling card for the IPL 2026 final.

SELECT innings_number, player, overs, runs_conceded, wickets, economy
FROM cricket.main.live_bowling_scorecard(1535465)
ORDER BY innings_number, wickets DESC;
Link
live_commentary (event_id BIGINT, page := INTEGER) 2 examples

Ball-by-ball text commentary for one match from ESPN

Positional arguments
event_id BIGINT
ESPN event id (equal to the Cricsheet and ESPNcricinfo match id).
Named arguments
page := INTEGER
25-ball commentary page starting at 1. NULL reads every page (up to 120). Β· default null
Returns columns
event_id BIGINT
Numeric ESPN event identifier
sequence BIGINT
ESPN ordering key for the ball
innings_number INTEGER
Innings number
over_number INTEGER
Over number, starting at 1
ball_in_over INTEGER
Ball within the over
overs VARCHAR
Over.ball notation, for example 7.6
batting_team VARCHAR
Batting team
bowler VARCHAR
Bowler
bowler_id BIGINT
ESPN athlete id of the bowler
batter VARCHAR
Batter on strike
batter_id BIGINT
ESPN athlete id of the batter
play_type VARCHAR
ESPN play type such as run, no run, four, six, wide, or out
runs INTEGER
Runs scored from the ball
is_wicket BOOLEAN
Whether a wicket fell
innings_runs INTEGER
Innings total after the ball
innings_wickets INTEGER
Innings wickets after the ball
short_text VARCHAR
One-line description, for example Duffy to Sai Sudharsan, FOUR
text VARCHAR
Full commentary text with markup removed
Examples (2)

Wickets in the IPL 2026 final from ESPN commentary.

SELECT innings_number, overs, short_text
FROM cricket.main.live_commentary(1535465)
WHERE is_wicket
ORDER BY sequence;

The first 25 balls of the IPL 2026 final.

SELECT overs, short_text
FROM cricket.main.live_commentary(1535465, page := 1)
ORDER BY sequence;
Link
matches (competition VARCHAR, season := VARCHAR) 3 examples

Matches, scores, and results for a competition and season from Cricsheet

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
season := VARCHAR
Season label such as '2026' or '2025/26'. '2025' also matches the split-year label 2025/26. NULL selects every season. Β· default null
Returns columns
match_id BIGINT
Match identifier (opaque number), equal to the ESPNcricinfo and ESPN event id
competition VARCHAR
Competition code from the competitions table, such as ipl
event_name VARCHAR
Event or series name recorded by Cricsheet
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
match_number INTEGER
Ordinal number of the match within the event, when recorded
stage VARCHAR
Knockout stage such as Final or Qualifier 1; NULL for league-stage matches
event_group VARCHAR
Group label within the event, when recorded
start_date DATE
First scheduled day of the match
end_date DATE
Last scheduled day of the match
match_type VARCHAR
Cricsheet match type: Test, ODI, T20, IT20, ODM, or MDM
gender VARCHAR
male or female
team_type VARCHAR
international or club
scheduled_overs INTEGER
Scheduled overs per innings for limited-overs matches
balls_per_over INTEGER
Balls per over; 5 for The Hundred's sets, otherwise 6
team1 VARCHAR
First team as listed by Cricsheet
team2 VARCHAR
Second team as listed by Cricsheet
team1_score VARCHAR
team1 innings scores, for example 155/8 (20.0 ov); innings joined by &
team2_score VARCHAR
team2 innings scores, for example 161/5 (18.0 ov); innings joined by &
venue VARCHAR
Ground name as recorded for this match
venue_id VARCHAR
Cricsheet venue identifier; joins to venues.venue_id
city VARCHAR
City of the ground, when recorded
toss_winner VARCHAR
Team that won the toss
toss_decision VARCHAR
bat or field
result VARCHAR
win, tie, draw, or no result
winner VARCHAR
Winning team, including super-over and bowl-out winners of tied matches
win_by_runs INTEGER
Winning margin in runs, when won by runs
win_by_wickets INTEGER
Winning margin in wickets, when won by wickets
win_by_innings BOOLEAN
Whether a multi-day match was won by an innings
decided_by VARCHAR
super over or bowl out when a tie was broken; otherwise NULL
method VARCHAR
Result method such as D/L or Awarded, when one applied
player_of_match VARCHAR
Player(s) of the match, comma-separated
umpires VARCHAR
On-field umpires, comma-separated
Examples (3)

IPL 2026 knockout results.

SELECT match_id, start_date, stage, team1, team1_score, team2, team2_score,
  winner
FROM cricket.main.matches('ipl', season := '2026')
WHERE stage IS NOT NULL
ORDER BY start_date;

Most IPL player-of-the-match awards in 2026.

SELECT player_of_match, count(*) AS awards
FROM cricket.main.matches('ipl', season := '2026')
GROUP BY ALL
ORDER BY awards DESC
LIMIT 5;

Top scorer in each IPL 2026 knockout match: matches() picks the playoff fixtures and batting_scorecard() supplies the batters.

SELECT m.start_date, m.stage, b.batting_team, b.batter, b.runs, b.balls
FROM cricket.main.matches('ipl', season := '2026') m
JOIN cricket.main.batting_scorecard('ipl', season := '2026') b USING (match_id)
WHERE m.stage IS NOT NULL
QUALIFY row_number() OVER (PARTITION BY m.match_id ORDER BY b.runs DESC, b.balls) = 1
ORDER BY m.start_date;
Link
player_rankings (format VARCHAR, discipline VARCHAR) 1 example

Official ICC player rankings for one format and discipline

Arguments
format VARCHAR
ICC format: test, odi, t20 (men), odiw, or t20w (women).
discipline VARCHAR
bat, bowl, or allrounder.
Returns columns
format VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w
discipline VARCHAR
bat, bowl, or allrounder
rank_date DATE
Date the ranking was published
rank INTEGER
Ranking position (1 = best); tied players share a rank
player VARCHAR
Player name
player_id BIGINT
ICC player identifier (opaque number)
country VARCHAR
Country name
country_abbreviation VARCHAR
Country short name
team_id INTEGER
ICC team identifier (opaque number)
rating INTEGER
Rating in ICC points (0 to about 1000)
career_best VARCHAR
Career-best rating and occasion
rank_change VARCHAR
Movement since the previous update
Example

Top ten ODI batters.

SELECT rank, player, country, rating
FROM cricket.main.player_rankings('odi', 'bat')
ORDER BY rank
LIMIT 10;
Link
schedule (league VARCHAR, season_year := INTEGER) 2 examples

Fixtures, live scores, and results for a league season from ESPN

Positional arguments
league VARCHAR
Competition code with an ESPN mapping (ipl, wpl, bbl, wbb, hnd_male, hnd_female, cch, ntb, psl, cpl, bpl, npl, ssh, odc, icc_mens_cricket_world_cup, icc_mens_t20_world_cup) or a numeric ESPN league id such as 8048.
Named arguments
season_year := INTEGER
ESPN season as a calendar year, such as 2026. NULL returns ESPN's current window. Β· default null
Returns columns
event_id BIGINT
ESPN event identifier (opaque number), equal to the Cricsheet and ESPNcricinfo match id
league_id INTEGER
Numeric ESPN league (series) identifier
league_name VARCHAR
ESPN league or series name
season_year INTEGER
ESPN season as a calendar year
start_time TIMESTAMP WITH TIME ZONE
Scheduled start time in UTC
end_time TIMESTAMP WITH TIME ZONE
Scheduled end time in UTC
name VARCHAR
Match name, for example Royal Challengers Bengaluru v Gujarat Titans
short_name VARCHAR
Abbreviated match name
description VARCHAR
Match label such as Final or 9th Match
match_class VARCHAR
ESPN match class such as Twenty20, ODI, or Test
venue VARCHAR
Ground name
city VARCHAR
Ground city
country VARCHAR
Ground country
state VARCHAR
pre (scheduled), in (live), or post (finished)
status VARCHAR
Status text such as Result, Live, Stumps, or Scheduled
summary VARCHAR
Result or situation summary, for example RCB won by 5 wkts
home_team VARCHAR
Home (or second-listed) team
home_team_id BIGINT
ESPN team identifier (opaque number) of the home team
home_score VARCHAR
Home team's score text
away_team VARCHAR
Away (or first-listed) team
away_team_id BIGINT
ESPN team identifier (opaque number) of the away team
away_score VARCHAR
Away team's score text
winner VARCHAR
Winning team once decided
Examples (2)

The IPL 2026 fixture list with results.

SELECT start_time, description, name, summary
FROM cricket.main.schedule('ipl', season_year := 2026)
ORDER BY start_time;

Upcoming Big Bash League fixtures.

SELECT start_time, name, venue
FROM cricket.main.schedule('bbl')
WHERE state = 'pre'
ORDER BY start_time;
Link
standings (competition VARCHAR, season := VARCHAR) 2 examples

Computed league-stage table with points and net run rate from Cricsheet results

Positional arguments
competition VARCHAR
Cricsheet competition code from the competitions table (for example ipl, bbl, hnd_male, tests_male), or recently_played_2/7/30 for every match Cricsheet published in the last 2, 7, or 30 days.
Named arguments
season := VARCHAR
Season label such as '2026' or '2025/26'. NULL selects the archive's most recent season. Β· default null
Returns columns
competition VARCHAR
Competition code from the competitions table, such as ipl
season VARCHAR
Cricsheet season label, such as 2026 or 2025/26
group_name VARCHAR
Group within the event; NULL for a single league table
position INTEGER
Computed table position: points, then net run rate, then wins
team VARCHAR
Team name
played INTEGER
League-stage matches played
won INTEGER
Wins, including super-over and bowl-out wins
lost INTEGER
Losses, including super-over and bowl-out losses
tied INTEGER
Ties that were not broken by a super over or bowl out
drawn INTEGER
Draws (multi-day matches)
no_result INTEGER
No-result and abandoned matches
points DECIMAL(6,1)
Computed points: points_for_win per win and half per tie, draw, or no result
net_run_rate DECIMAL(6,3)
Computed net run rate; an all-out side is charged its full allocation
runs_for INTEGER
Runs scored in NRR-eligible matches
balls_for INTEGER
Balls faced in NRR-eligible matches, after the all-out rule
runs_against INTEGER
Runs conceded in NRR-eligible matches
balls_against INTEGER
Balls bowled in NRR-eligible matches, after the all-out rule
Examples (2)

The IPL 2026 league-stage table with net run rate.

SELECT position, team, played, won, lost, no_result, points, net_run_rate
FROM cricket.main.standings('ipl', season := '2026')
ORDER BY position;

The most recent PSL table.

SELECT position, team, points, net_run_rate
FROM cricket.main.standings('psl')
ORDER BY position;
Link
team_rankings (format VARCHAR) 1 example

Official ICC team rankings for one format

Arguments
format VARCHAR
ICC format: test, odi, t20 (men), odiw, or t20w (women).
Returns columns
format VARCHAR
ICC ranking format: test, odi, t20, odiw, or t20w
rank_date DATE
Date the ranking was published
rank INTEGER
Ranking position (1 = best)
team VARCHAR
Team name
team_abbreviation VARCHAR
Team short name
team_id INTEGER
ICC team identifier (opaque number)
matches INTEGER
Matches counted in the rating period
points INTEGER
Rating points (sum over the rating period)
rating INTEGER
Rating in ICC points: weighted points divided by matches
rank_change VARCHAR
Movement since the previous update, for example (+2) or ( - )
Example

The ICC men's Test team rankings.

SELECT rank, team, matches, rating
FROM cricket.main.team_rankings('test')
ORDER BY rank;
Link

Try these queries

competitions_are_listed β€” The static competition catalogue includes the IPL.

SELECT count(*) FILTER (WHERE competition = 'ipl') = 1 AS has_ipl
FROM cricket.main.competitions;

Uses competitions

ipl_2026_final_winner β€” Royal Challengers Bengaluru won the IPL 2026 final by 5 wickets.

SELECT winner, win_by_wickets
FROM cricket.main.matches('ipl', season := '2026')
WHERE match_id = 1535465;

Uses matches

test_team_rankings_populated β€” ICC Test team rankings have ranked teams.

SELECT count(*) >= 9 AS populated FROM cricket.main.team_rankings('test');

Uses team_rankings

Average first-innings total at each IPL 2026 ground, using the venues register's canonical names (innings_summary joined to matches and venues on venue_id).

SELECT v.unique_name AS ground, count(*) AS matches_played,
  round(avg(i.runs), 1) AS avg_first_innings
FROM cricket.main.innings_summary('ipl', season := '2026') i
JOIN cricket.main.matches('ipl', season := '2026') m USING (match_id)
JOIN cricket.main.venues v USING (venue_id)
WHERE i.innings_number = 1 AND NOT i.super_over
GROUP BY ALL
ORDER BY avg_first_innings DESC, ground

Uses innings_summarymatchesvenues

The IPL 2026 league table alongside each team's powerplay (overs 1-6) batting run rate and wickets lost, aggregated from deliveries() over the whole season.

WITH pp AS (SELECT batting_team AS team, round(sum(runs_total) * 6.0 / count(*) FILTER (WHERE is_legal), 2) AS powerplay_run_rate, count(*) FILTER (WHERE is_wicket) AS powerplay_wickets FROM cricket.main.deliveries('ipl', season := '2026') WHERE over_number <= 6 AND NOT super_over GROUP BY team) SELECT s.position, s.team, s.points, pp.powerplay_run_rate, pp.powerplay_wickets
FROM cricket.main.standings('ipl', season := '2026') s
JOIN pp USING (team)
ORDER BY s.position

Uses deliveriesstandings

Matches in progress right now.

SELECT league_name, name, home_score, away_score, status
FROM cricket.main.current_matches
WHERE state = 'in'

Uses current_matches

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.

  • Show the full batting card of the 2026 IPL final in batting order, including each batter's ESPNcricinfo player id.
  • How many runs and wickets came in each over of the chase in the 2026 IPL final?
  • What was the IPL 2026 league-stage points table, with net run rate?
  • Which bowler took the most wickets at Wankhede Stadium in IPL 2026, and how many? Return the bowler and the wicket count.
  • Who scored the most runs and who took the most wickets in IPL 2026?
  • Show the official ECB table for The Hundred men's 2026 (tournament 76753).

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