text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_review" (
"race" text,
"circuit" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"constructor" text,
"tyre" text,
"report" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "songs_by_tanvi" (
"film" text,
"song" text,
"year" real,
"music_director" text,
"language" text
);
Question: Tell me the song with year before 2013 and music director of yuvan shankar raja and ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1998" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
);
Question: What title aired on March 19, 1998?
<|as... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1998" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
);
Question: Who directed the show with the productio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_4_1998" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"original_air_date" text,
"production_code" text
);
Question: What is the season for series 81?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date was a match played at Lake O... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: At the home game in Collingwood, how much... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: In the game at Victoria Park, what was th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"extra" text
);
Question: What was the tournament that happened in 1974 in gothenburg , sweden?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_key" (
"mlb_season" text,
"team_season" text,
"league" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"win_pct" text
);
Question: Which MLB division has a win rec... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_key" (
"mlb_season" text,
"team_season" text,
"league" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"win_pct" text
);
Question: What was the final rank of the B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_key" (
"mlb_season" text,
"team_season" text,
"league" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"win_pct" text
);
Question: What was the final rank of the B... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_key" (
"mlb_season" text,
"team_season" text,
"league" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"win_pct" text
);
Question: Which division were the Brewers ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table_key" (
"mlb_season" text,
"team_season" text,
"league" text,
"division" text,
"finish" text,
"wins" text,
"losses" text,
"win_pct" text
);
Question: Which division of the Brewers ha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: where was the game site when the opponent was san diego chargers?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"attendance" text
);
Question: who was the opponent when the week was 9?
<|assistant|>
SELECT "opponent... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features geelong as the away ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features essendon at home?
<|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team score at princes p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_16" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team scored 10.24 (84) at vfl ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
);
Question: Who is the nominee for best director?
<|assistant|>
SELECT "nominee" FROM "awards" WHERE "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"ceremony" text,
"award" text,
"category" text,
"nominee" text,
"outcome" text
);
Question: What ceremony was leela chitnis nominated at?
<|assistant|>
SELECT "ceremony" FROM "awards"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: what is the highest pick number of the CFL team, the winnipeg blue bombers?
<|assista... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which college has 41 picks?
<|assistant|>
SELECT "college" FROM "round_five" WHERE "p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_five" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
Question: Which player plays for the college of manitoba?
<|assistant|>
SELECT "player" FROM "r... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "pidgin_delaware_numbers_from_one_to_ten" (
"munsee_delaware" text,
"unami_delaware" text,
"de_laet_1633" text,
"campanius_ca_1645" text,
"interpreter_1684" text,
"thomas_1698" text
);
Questio... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1993_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the name of the player picked before round 2?
<|assistant|>
SELECT "pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1993_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the name of the player with an overall less than 209 for the Victoriav... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1993_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the name of the player with an Overall larger than 227?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1993_draft_picks" (
"round" real,
"overall" real,
"player" text,
"nationality" text,
"club_team" text
);
Question: What is the highest overall for a round larger than 8 for pavol demitra?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "heritage_diesels" (
"number_name" text,
"description" text,
"current_status" text,
"livery" text,
"date" real
);
Question: What description does Livery of ews have?
<|assistant|>
SELECT "descri... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p_premiers_r_runner_ups_m_minor_premiers" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text,
"coach" text,
"captain" text,
"main_article" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p_premiers_r_runner_ups_m_minor_premiers" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text,
"coach" text,
"captain" text,
"main_article" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p_premiers_r_runner_ups_m_minor_premiers" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text,
"coach" text,
"captain" text,
"main_article" text
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "p_premiers_r_runner_ups_m_minor_premiers" (
"competition" text,
"played" real,
"drawn" real,
"lost" real,
"position" text,
"coach" text,
"captain" text,
"main_article" text
);
Question: H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"rider" text,
"horse" text,
"faults" text,
"round_1_2_a_2_b_3_a_points" text,
"total" real
);
Question: What horse did not start and had a total of over 16.16?
<|assistant|>
SELECT "horse"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b" (
"rider" text,
"horse" text,
"faults" text,
"round_1_2_a_2_b_3_a_points" text,
"total" real
);
Question: What was the total for christina liebherr?
<|assistant|>
SELECT MIN("total") FROM "b... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "demographics" (
"year" text,
"population" text,
"romanians" text,
"hungarians" text,
"germans" text
);
Question: What is the population of the year featuring an 87.5% German population?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: How tall is the player from Chicago, IL?
<|assistant|>
SELECT "he... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: What college does Dennis Scott attend?
<|assistant|>
SELECT "coll... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Who's from Bay City, TX?
<|assistant|>
SELECT "player" FROM "1987... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "1987_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
Question: Which NBA Draft had Labradford Smith?
<|assistant|>
SELECT "nba_d... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the lowest attendance at Windy H... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the home team's score at Princes... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How much did the home team Geelong score?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the name of the home team that pl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name_number" text,
"builder" text,
"type" text,
"status" text,
"notes" text
);
Question: Name the status with builder of orenstein and koppel
<|assistant|>
SELECT "status"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "steam_locomotives" (
"name_number" text,
"builder" text,
"type" text,
"status" text,
"notes" text
);
Question: Who was the builder for joffre
<|assistant|>
SELECT "builder" FROM "steam_locomoti... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where did Carlton play as the home team?... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the away team when the home team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Where was the game held when the home te... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who was the home team when Melbourne was... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the away team's score at the ga... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: What was the result on November 20,... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: What time was the kickoff on week 5... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: Where was the game that had an atte... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"result" text,
"kickoff_a" text,
"game_site" text,
"attendance" text,
"record" text
);
Question: What was the record when the attend... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: What label released a CD in 1988?
<|assistant|>
SELECT "label" FROM "release_history" WHE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date did the United Kingdom have a catalog of FT 507?
<|assistant|>
SELECT "date"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date was the Catalog FT 507?
<|assistant|>
SELECT "date" FROM "release_history" W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: Which label had a catalog of 54513 in 1988?
<|assistant|>
SELECT "label" FROM "release_hi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalog" text
);
Question: On what date did Fantasy Records release a CD format of catalog FCD-4513-2?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was John Watson's total laps with a grid of less than 7?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: How many laps were there with #9 grid?
<|assistant|>
SELECT COUNT("laps") FROM "c... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was the time/retired with laps less than 33 and a grid of 14?
<|assistant|>
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What was John Watson's time/retired?
<|assistant|>
SELECT "time_retired" FROM "cl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "n" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the player with the no. 14?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "n" (
"player" text,
"no_s" text,
"height_in_ft" text,
"position" text,
"years_for_rockets" text,
"school_club_team_country" text
);
Question: What is the height of the player from Benetton Tr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"venue" text,
"date" text
);
Question: I want to know the pens with conv of 6
<|assistant|>
SEL... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"venue" text,
"date" text
);
Question: Which player has 2 tries and 0 drops?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"venue" text,
"date" text
);
Question: Which pens has 1 tries and matt alexander as a player wi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "most_points_in_a_match" (
"player" text,
"tries" text,
"conv" text,
"pens" text,
"drop" text,
"venue" text,
"date" text
);
Question: Name the venue that has conv of 5 players on 20 points
<... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "coaches" (
"name" text,
"period" text,
"matches" real,
"wins" real,
"draws" real,
"losses" real
);
Question: What are the names of those who made less than 3 wins in 15 matches?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
Question: Wh... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the surface on june 11, 1995
<|assistant|>
SELECT "surface" FROM "singl... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the score for september 12, 1993
<|assistant|>
SELECT "score" FROM "sin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the surface for score of 7–6(4), 6–1
<|assistant|>
SELECT "surface" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score" text
);
Question: Name the date that had a score of 7–6(4), 6–1
<|assistant|>
SELECT "date" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "longest_winning_streak" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
);
Question: what is the result for the world group, semifinals after the ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What home team played against south Melb... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the average crowd size for the h... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_10" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the home team score when north M... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
Question: What is the average grid with brm and under 63 laps?
<|assistant|>
SELECT AVG("gr... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: On what circuit is there a class gts-2 race that takes place on May 27?
<|assistant|>
SELECT "circ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: On what circuit is there a race that lasts 2 hours?
<|assistant|>
SELECT "circuit" FROM "schedule"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: What class is the dodge dealers grand prix?
<|assistant|>
SELECT "class" FROM "schedule" WHERE "ra... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: What is the length of the First Union six hours at the Glen?
<|assistant|>
SELECT "length" FROM "s... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"race" text,
"length" text,
"class" text,
"circuit" text,
"date" text
);
Question: What is the class of the race that takes place on August 25?
<|assistant|>
SELECT "class" FROM "sc... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "november" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
Question: What was the score when Montreal was home?
<|assistant|>
S... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "challenge_cup" (
"date" text,
"competition" text,
"venue" text,
"result" text,
"score" text,
"goals" text
);
Question: On 9/3/97, what was the score that resulted in a w?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "devonport_takapuna_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: Who has a roll value of 422?
<|assistant|>... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "devonport_takapuna_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: In what area is the decile value 10?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "devonport_takapuna_local_board" (
"name" text,
"years" text,
"gender" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
);
Question: What is the highest decile value with a ro... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "classification_leadership_by_stage" (
"stage" text,
"winner" text,
"general_classification" text,
"points_classification" text,
"trofeo_fast_team" text
);
Question: Which Points classification ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.