text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "races" (
"race_name" text,
"circuit" text,
"city_location" text,
"date" text,
"pole_position" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
Question: Which Circuit is... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: What date did Delage win?
<|assistant|>
SELECT "da... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: What circuit did Luigi Villoresi win the Lausanne ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "other_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
);
Question: Which Grand Prix did Nello Pagani win?
<|assistant... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team score when playin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What did the home team score when playin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What away team played Collingwood?
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: On what date did Collingwood play at hom... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: Name the average round where Dave Stachelski was picked sma... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: Which position did David Nugent play with an overall small ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2000_new_england_patriots_draft_selectio" (
"round" real,
"overall" real,
"player" text,
"position" text,
"college" text
);
Question: Name the college that has an overall larger than 187 and a ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "shutouts" (
"rank" real,
"player" text,
"nation" text,
"shutouts" real,
"games" real,
"years" text
);
Question: Which player has less than 201 games, is ranked 2, and played between 2007-2012... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "shutouts" (
"rank" real,
"player" text,
"nation" text,
"shutouts" real,
"games" real,
"years" text
);
Question: How many average games did Nick Rimando have?
<|assistant|>
SELECT AVG("games")... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_lieutenant_governors" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"governor" text
);
Question: What is the party of the politician who left office on January 12... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_lieutenant_governors" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"governor" text
);
Question: What is the party of the governor under Hugh Thomas Miller.
<|ass... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_lieutenant_governors" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"governor" text
);
Question: Who left office on January 9, 1893
<|assistant|>
SELECT "name" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_lieutenant_governors" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"governor" text
);
Question: Who took office under the government of Matthew E. Welsh?
<|assis... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_lieutenant_governors" (
"name" text,
"took_office" text,
"left_office" text,
"party" text,
"governor" text
);
Question: Which governor took office on January 13, 1877
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score of the Geelong away tea... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the crowd for the team with a sco... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score of the team that plays ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What the date of the game of the team tha... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the score of the home team of ca... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people watched the away team of ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team has the Brunswick Street ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which home team has the Brunswick Street ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has an Away team score of... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has a Home team of Collin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which Away team has a Home score of 9.15 ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "crops" (
"crop_kilotonnes" text,
"new_south_wales" real,
"victoria" real,
"queensland" real,
"western_australia" real,
"south_australia" real,
"tasmania" real,
"total" real
);
Question: W... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Who had a qual 1 best of 1:01.704?
<|assistant|>
SELECT "qual_1" FROM "qualifying_results"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What team had a qual 1 of 1:02.755?
<|assistant|>
SELECT "team" FROM "qualifying_results" ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What is the qual 1 for rusport and had a best of 58.665?
<|assistant|>
SELECT "qual_1" FRO... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: What team had a qual 1 of 59.895?
<|assistant|>
SELECT "team" FROM "qualifying_results" WH... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
Question: Who had a qual 1 of 1:01.461?
<|assistant|>
SELECT "name" FROM "qualifying_results" WHERE ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "windows_nt" (
"name" text,
"architecture" text,
"usb_support" text,
"lfn_support" text,
"ap_is" text
);
Question: What is the LFN support with 32-bit architecture on Windows Home Server?
<|assi... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "windows_nt" (
"name" text,
"architecture" text,
"usb_support" text,
"lfn_support" text,
"ap_is" text
);
Question: What is the LFN support on Windows NT 3.1?
<|assistant|>
SELECT "lfn_support" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue has the away side scoring 15.2... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What venue features hawthorn as the away ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people attended the game with th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: How many cop apps in the season with fewer t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: What season saw 6 cup apps and 5 cup goals?
... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: How many league apps in the season with more... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: How many cup goals for the season with more ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: How many cup goals in the season with more t... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
Question: How many cup apps for the season where there... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
Question: Which route has a Date of 2 july?
<|assistant|>
SELECT "route" FROM "stage_... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
Question: Which length has a Stage of 9?
<|assistant|>
SELECT "length" FROM "stage_re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stage_results" (
"stage" text,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
);
Question: Which date has a Terrain of plain stage, and a Stage of 4?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Who is the away team at the game at MCG w... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the score for Fitzroy when they a... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the date of the game at Arden Str... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What is the smallest crowd for a game whe... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"player" text,
"home_town" text,
"college_prior" text,
"drafting_team" text,
"graduated" real
);
Question: Who drafted the player from Michigan after 2010?
<|assistant|>
SELECT "draftin... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"player" text,
"home_town" text,
"college_prior" text,
"drafting_team" text,
"graduated" real
);
Question: Where was the player from who graduated from Michigan after 2010?
<|assistant|... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"player" text,
"home_town" text,
"college_prior" text,
"drafting_team" text,
"graduated" real
);
Question: From what town was Steve Zakuani?
<|assistant|>
SELECT "home_town" FROM "2009"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2009" (
"player" text,
"home_town" text,
"college_prior" text,
"drafting_team" text,
"graduated" real
);
Question: What year did Omar Gonzalez graduate?
<|assistant|>
SELECT SUM("graduated") FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Which university hosted in Long Beach?
<|assistant|>
SELECT "host" FROM "first_and_se... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: What is the venue that Saint Joseph's University hosted at?
<|assistant|>
SELECT "ven... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: In which city is Hayman Hall (Tom Gola Arena) located?
<|assistant|>
SELECT "city" FR... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
);
Question: Which venue is in the city of Villanova?
<|assistant|>
SELECT "venue" FROM "first_and... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "debutantes" (
"player" text,
"team" text,
"date" text,
"opposition" text,
"game" text
);
Question: On which date did Ger Loughnane from Team Clare have a match?
<|assistant|>
SELECT "date" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "debutantes" (
"player" text,
"team" text,
"date" text,
"opposition" text,
"game" text
);
Question: What team opposed Tipperary in the Munster Final game?
<|assistant|>
SELECT "team" FROM "debut... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "debutantes" (
"player" text,
"team" text,
"date" text,
"opposition" text,
"game" text
);
Question: On what date did Limerick play in the All-Ireland Final game?
<|assistant|>
SELECT "date" FROM... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "debutantes" (
"player" text,
"team" text,
"date" text,
"opposition" text,
"game" text
);
Question: Who was the opposition in the game on July 29?
<|assistant|>
SELECT "opposition" FROM "debutan... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What day did the team play week 13?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "week"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was Bye's opponent's attendance?
<|assistant|>
SELECT "attendance" FROM "schedule" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which opponent, before Week 10, had an attendance of 63,672?
<|assistant|>
SELECT "opponent"... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: Which week had an attendance of 70,225
<|assistant|>
SELECT MIN("week") FROM "schedule" WHER... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"incident_no" text,
"date" text,
"place" text,
"killed" real,
"injured" real
);
Question: What was the highest number of people injured at incidents located at Rohtas, Bihar where fewer... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "2007" (
"incident_no" text,
"date" text,
"place" text,
"killed" real,
"injured" real
);
Question: What was the highest number of people injured in incidents in Vaishali, Bihar?
<|assistant|>
SE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many points did the Away team from Ge... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many people were in the crowd at Vict... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: How many points did the away team from Me... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What date did the home team from Carlton ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_managers" (
"manager" text,
"nationality" text,
"date_of_birth_and_age" text,
"club" text,
"division" text
);
Question: Who is the manager of the St. Johnstone club?
<|assistant|>
SELEC... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "list_of_managers" (
"manager" text,
"nationality" text,
"date_of_birth_and_age" text,
"club" text,
"division" text
);
Question: Who is the manager of the Stenhousemuir club?
<|assistant|>
SELEC... |
<|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 team was the away ream when they sc... |
<|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 team was home team when south Melbo... |
<|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 was the away team score when the ho... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "basins" (
"basin" text,
"continent" text,
"drains_to" text,
"basin_area_km_2" real,
"basin_area_mi_2" text
);
Question: What is the Basin Area mi 2 when the Basin Area km 2 is larger than 2,261... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "basins" (
"basin" text,
"continent" text,
"drains_to" text,
"basin_area_km_2" real,
"basin_area_mi_2" text
);
Question: Which Basin's Continent is South America, has a Basin Area km 2 larger th... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
);
Question: What was date of the bye week 11?
<|assistant|>
SELECT "date" FROM "schedule" WHERE "attenda... |
<|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: Where did Essendon play as the away team... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"location" text,
"fans_choice_award" text,
"male_artist_of_the_year" text,
"female_artist_of_the_year" text,
"group_or_duo_of_the_year" text
);
Question: Where di... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"location" text,
"fans_choice_award" text,
"male_artist_of_the_year" text,
"female_artist_of_the_year" text,
"group_or_duo_of_the_year" text
);
Question: Where di... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "major_awards" (
"year" real,
"location" text,
"fans_choice_award" text,
"male_artist_of_the_year" text,
"female_artist_of_the_year" text,
"group_or_duo_of_the_year" text
);
Question: Who won ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "by_season" (
"season" real,
"driver" text,
"team" text,
"engine" text,
"poles" real,
"wins" real,
"podiums" real,
"points" real,
"margin_of_defeat" real
);
Question: What is the most re... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What is the engine for the Bettenhausen Motorsports team?
<|assistant|>
SELECT ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What engine does Steve Chassey drive with a march chassis?
<|assistant|>
SELECT... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What is the engine for the Arciero Racing team?
<|assistant|>
SELECT "engine" F... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What chassis belongs with the Cosworth Engine driven by Scott Pruett on the Dic... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What is the engine for the team of Alex Morales Motorsports?
<|assistant|>
SELE... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "drivers_and_constructors" (
"team" text,
"chassis" text,
"engine" text,
"tires" text,
"drivers" text
);
Question: What is the engine for the Machinists Union Racing team?
<|assistant|>
SELECT "... |
<|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: Who is the home side when the away side ... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"kickoff" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
Question: What was the attendance for Wee... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"kickoff" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
Question: Which team did the Patriots pla... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"week" real,
"kickoff" text,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" text
);
Question: What date was the Week 3 game p... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: What was the highest attendance of the m... |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "round_15" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
Question: Which team has a home field at Glenferri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.