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 on July 24?
<|assistant|>
SELECT "circuit" FROM "races" WHERE "date"='july 24';<|endoftext|> |
<|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 "date" FROM "other_grands_prix" WHERE "winning_constructor"='delage';<|endoftext|> |
<|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 Grand Prix?
<|assistant|>
SELECT "circuit" FROM "other_grands_prix" WHERE "winning_driver"='luigi villoresi' AND "name"='lausanne grand prix';<|endoftext|> |
<|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|>
SELECT "name" FROM "other_grands_prix" WHERE "winning_driver"='nello pagani';<|endoftext|> |
<|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 playing Fitzroy as the away team?
<|assistant|>
SELECT "home_team_score" FROM "round_17" WHERE "away_team"='fitzroy';<|endoftext|> |
<|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 playing at Western Oval?
<|assistant|>
SELECT "home_team_score" FROM "round_17" WHERE "venue"='western oval';<|endoftext|> |
<|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?
<|assistant|>
SELECT "away_team" FROM "round_17" WHERE "home_team"='collingwood';<|endoftext|> |
<|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 home?
<|assistant|>
SELECT "date" FROM "round_17" WHERE "home_team"='collingwood';<|endoftext|> |
<|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 smaller than 187.
<|assistant|>
SELECT AVG("round") FROM "2000_new_england_patriots_draft_selectio" WHERE "overall"<187 AND "player"='dave stachelski';<|endoftext|> |
<|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 than 187?
<|assistant|>
SELECT "position" FROM "2000_new_england_patriots_draft_selectio" WHERE "overall">187 AND "player"='david nugent';<|endoftext|> |
<|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 round smaller than 7 for the defensive end position.
<|assistant|>
SELECT "college" FROM "2000_new_england_patriots_draft_selectio" WHERE "overall">187 AND "round"<7 AND "position"='defensive end';<|endoftext|> |
<|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?
<|assistant|>
SELECT "player" FROM "shutouts" WHERE "games"<201 AND "rank"=2 AND "years"='2007-2012';<|endoftext|> |
<|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") FROM "shutouts" WHERE "player"='nick rimando';<|endoftext|> |
<|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, 1857
<|assistant|>
SELECT "party" FROM "list_of_lieutenant_governors" WHERE "left_office"='january 12, 1857';<|endoftext|> |
<|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.
<|assistant|>
SELECT "governor" FROM "list_of_lieutenant_governors" WHERE "name"='hugh thomas miller';<|endoftext|> |
<|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" FROM "list_of_lieutenant_governors" WHERE "left_office"='january 9, 1893';<|endoftext|> |
<|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?
<|assistant|>
SELECT "took_office" FROM "list_of_lieutenant_governors" WHERE "governor"='matthew e. welsh';<|endoftext|> |
<|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|>
SELECT "governor" FROM "list_of_lieutenant_governors" WHERE "took_office"='january 13, 1877';<|endoftext|> |
<|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 team?
<|assistant|>
SELECT "away_team_score" FROM "round_3" WHERE "away_team"='geelong';<|endoftext|> |
<|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 score of 10.9 (69)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_3" WHERE "home_team_score"='10.9 (69)';<|endoftext|> |
<|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 in lake oval?
<|assistant|>
SELECT "away_team_score" FROM "round_3" WHERE "venue"='lake oval';<|endoftext|> |
<|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 that plays in princes park?
<|assistant|>
SELECT "date" FROM "round_3" WHERE "venue"='princes park';<|endoftext|> |
<|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 carlton?
<|assistant|>
SELECT "home_team_score" FROM "round_3" WHERE "home_team"='carlton';<|endoftext|> |
<|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 Geelong?
<|assistant|>
SELECT "crowd" FROM "round_7" WHERE "away_team"='geelong';<|endoftext|> |
<|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 Oval venue?
<|assistant|>
SELECT "home_team_score" FROM "round_1" WHERE "venue"='brunswick street oval';<|endoftext|> |
<|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 Oval venue?
<|assistant|>
SELECT "home_team" FROM "round_1" WHERE "venue"='brunswick street oval';<|endoftext|> |
<|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 11.18 (84)?
<|assistant|>
SELECT "away_team" FROM "round_1" WHERE "away_team_score"='11.18 (84)';<|endoftext|> |
<|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 Collingwood?
<|assistant|>
SELECT "away_team" FROM "round_1" WHERE "home_team"='collingwood';<|endoftext|> |
<|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 (69)?
<|assistant|>
SELECT "away_team" FROM "round_1" WHERE "home_team_score"='9.15 (69)';<|endoftext|> |
<|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: Which is the lowest crop total with New South Wales at 42 kilotonnes and Victorian at less than 68 kilotonnes?
<|assistant|>
SELECT MIN("total") FROM "crops" WHERE "new_south_wales"=42 AND "victoria"<68;<|endoftext|> |
<|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" WHERE "best"='1:01.704';<|endoftext|> |
<|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" WHERE "qual_1"='1:02.755';<|endoftext|> |
<|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" FROM "qualifying_results" WHERE "team"='rusport' AND "best"='58.665';<|endoftext|> |
<|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" WHERE "qual_1"='59.895';<|endoftext|> |
<|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 "qual_1"='1:01.461';<|endoftext|> |
<|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?
<|assistant|>
SELECT "lfn_support" FROM "windows_nt" WHERE "architecture"='32-bit' AND "name"='windows home server';<|endoftext|> |
<|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" FROM "windows_nt" WHERE "name"='windows nt 3.1';<|endoftext|> |
<|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.23 (113)?
<|assistant|>
SELECT "venue" FROM "round_7" WHERE "away_team_score"='15.23 (113)';<|endoftext|> |
<|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 team?
<|assistant|>
SELECT "venue" FROM "round_7" WHERE "away_team"='hawthorn';<|endoftext|> |
<|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 the home side scoring 11.13 (79)?
<|assistant|>
SELECT COUNT("crowd") FROM "round_7" WHERE "home_team_score"='11.13 (79)';<|endoftext|> |
<|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 than 12 league apps?
<|assistant|>
SELECT SUM("cup_apps") FROM "swindon_town_career_details" WHERE "league_apps"<12;<|endoftext|> |
<|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?
<|assistant|>
SELECT "season" FROM "swindon_town_career_details" WHERE "cup_apps"=6 AND "cup_goals"=5;<|endoftext|> |
<|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 than 2 cup goals and more than 6 cup apps?
<|assistant|>
SELECT SUM("league_apps") FROM "swindon_town_career_details" WHERE "cup_goals">2 AND "cup_apps">6;<|endoftext|> |
<|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 than 34 league apps?
<|assistant|>
SELECT AVG("cup_goals") FROM "swindon_town_career_details" WHERE "league_apps">34;<|endoftext|> |
<|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 than 5 league apps, 1 cup apps and fewer than 4 league goals?
<|assistant|>
SELECT SUM("cup_goals") FROM "swindon_town_career_details" WHERE "league_apps">5 AND "cup_apps"=1 AND "league_goals"<4;<|endoftext|> |
<|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 are more than 10 league goals and 23 league apps?
<|assistant|>
SELECT "cup_apps" FROM "swindon_town_career_details" WHERE "league_goals">10 AND "league_apps"=23;<|endoftext|> |
<|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_results" WHERE "date"='2 july';<|endoftext|> |
<|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_results" WHERE "stage"='9';<|endoftext|> |
<|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|>
SELECT "date" FROM "stage_results" WHERE "terrain"='plain stage' AND "stage"='4';<|endoftext|> |
<|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 with the crowd is larger than 15,500?
<|assistant|>
SELECT "away_team" FROM "round_5" WHERE "crowd">'15,500' AND "venue"='mcg';<|endoftext|> |
<|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 are the home team?
<|assistant|>
SELECT "home_team_score" FROM "round_5" WHERE "home_team"='fitzroy';<|endoftext|> |
<|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 Street Oval?
<|assistant|>
SELECT "date" FROM "round_5" WHERE "venue"='arden street oval';<|endoftext|> |
<|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 when Melbourne is the home team?
<|assistant|>
SELECT MIN("crowd") FROM "round_5" WHERE "home_team"='melbourne';<|endoftext|> |
<|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 "drafting_team" FROM "2009" WHERE "graduated">2010 AND "college_prior"='michigan';<|endoftext|> |
<|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|>
SELECT "home_town" FROM "2009" WHERE "graduated">2010 AND "college_prior"='michigan';<|endoftext|> |
<|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" WHERE "player"='steve zakuani';<|endoftext|> |
<|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") FROM "2009" WHERE "player"='omar gonzalez';<|endoftext|> |
<|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_second_rounds" WHERE "city"='long beach';<|endoftext|> |
<|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 "venue" FROM "first_and_second_rounds" WHERE "host"='saint joseph''s university';<|endoftext|> |
<|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" FROM "first_and_second_rounds" WHERE "venue"='hayman hall (tom gola arena)';<|endoftext|> |
<|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_second_rounds" WHERE "city"='villanova';<|endoftext|> |
<|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 "debutantes" WHERE "team"='clare' AND "player"='ger loughnane';<|endoftext|> |
<|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 "debutantes" WHERE "opposition"='tipperary' AND "game"='munster final';<|endoftext|> |
<|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 "debutantes" WHERE "opposition"='limerick' AND "game"='all-ireland final';<|endoftext|> |
<|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 "debutantes" WHERE "date"='july 29';<|endoftext|> |
<|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"=13;<|endoftext|> |
<|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" WHERE "opponent"='bye';<|endoftext|> |
<|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" FROM "schedule" WHERE "week"<10 AND "attendance"='63,672';<|endoftext|> |
<|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" WHERE "attendance"='70,225';<|endoftext|> |
<|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 than 13 were killed?
<|assistant|>
SELECT MAX("injured") FROM "2007" WHERE "place"='rohtas, bihar' AND "killed"<13;<|endoftext|> |
<|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|>
SELECT MAX("injured") FROM "2007" WHERE "place"='vaishali, bihar';<|endoftext|> |
<|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 Geelong score?
<|assistant|>
SELECT "away_team_score" FROM "round_7" WHERE "away_team"='geelong';<|endoftext|> |
<|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 Victoria Park?
<|assistant|>
SELECT COUNT("crowd") FROM "round_7" WHERE "venue"='victoria park';<|endoftext|> |
<|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 Melbourne score?
<|assistant|>
SELECT "away_team_score" FROM "round_7" WHERE "away_team"='melbourne';<|endoftext|> |
<|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 play on?
<|assistant|>
SELECT "date" FROM "round_7" WHERE "home_team"='carlton';<|endoftext|> |
<|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|>
SELECT "manager" FROM "list_of_managers" WHERE "club"='st. johnstone';<|endoftext|> |
<|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|>
SELECT "manager" FROM "list_of_managers" WHERE "club"='stenhousemuir';<|endoftext|> |
<|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 scored 13.12 (90)?
<|assistant|>
SELECT "away_team" FROM "round_16" WHERE "away_team_score"='13.12 (90)';<|endoftext|> |
<|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 Melbourne was the away team?
<|assistant|>
SELECT "home_team" FROM "round_16" WHERE "away_team"='south melbourne';<|endoftext|> |
<|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 home team was Carlton?
<|assistant|>
SELECT "away_team_score" FROM "round_16" WHERE "home_team"='carlton';<|endoftext|> |
<|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,763 and the Basin is Pearl River?
<|assistant|>
SELECT "basin_area_mi_2" FROM "basins" WHERE "basin_area_km_2">'2,261,763' AND "basin"='pearl river';<|endoftext|> |
<|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 than 6,144,727, and a Basin Area mi 2 of 238,539?
<|assistant|>
SELECT "basin" FROM "basins" WHERE "continent"='south america' AND "basin_area_km_2">'6,144,727' AND "basin_area_mi_2"='238,539';<|endoftext|> |
<|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 "attendance"='bye' AND "week"=11;<|endoftext|> |
<|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?
<|assistant|>
SELECT "venue" FROM "round_10" WHERE "away_team"='essendon';<|endoftext|> |
<|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 did Carolyn Dawn Johnson win Female Artist of the Year, and Paul Brandt win Male Artist of the Year?
<|assistant|>
SELECT "location" FROM "major_awards" WHERE "female_artist_of_the_year"='carolyn dawn johnson' AND "male_artist_of_the_year"='paul brandt';<|endoftext|> |
<|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 did Doc Walker win Group or Duo of the Year, and where did Crystal Shawanda win Female Artist of the year?
<|assistant|>
SELECT "location" FROM "major_awards" WHERE "group_or_duo_of_the_year"='doc walker' AND "female_artist_of_the_year"='crystal shawanda';<|endoftext|> |
<|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 Female Artist of the year in 1983, in the same city that Family Brown won Group of Duo of the year?
<|assistant|>
SELECT "female_artist_of_the_year" FROM "major_awards" WHERE "group_or_duo_of_the_year"='family brown' AND "year"=1983;<|endoftext|> |
<|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 recent season when Fernando Alonso had more than 13 podiums in a car with a Ferrari engine?
<|assistant|>
SELECT MAX("season") FROM "by_season" WHERE "engine"='ferrari' AND "driver"='fernando alonso' AND "podiums">13;<|endoftext|> |
<|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 "engine" FROM "drivers_and_constructors" WHERE "team"='bettenhausen motorsports';<|endoftext|> |
<|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 "engine" FROM "drivers_and_constructors" WHERE "chassis"='march' AND "drivers"='steve chassey';<|endoftext|> |
<|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" FROM "drivers_and_constructors" WHERE "team"='arciero racing';<|endoftext|> |
<|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 Dick Simon Racing team?
<|assistant|>
SELECT "chassis" FROM "drivers_and_constructors" WHERE "engine"='cosworth' AND "drivers"='scott pruett' AND "team"='dick simon racing';<|endoftext|> |
<|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|>
SELECT "engine" FROM "drivers_and_constructors" WHERE "team"='alex morales motorsports';<|endoftext|> |
<|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 "engine" FROM "drivers_and_constructors" WHERE "team"='machinists union racing';<|endoftext|> |
<|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 score is 11.14 (80)?
<|assistant|>
SELECT "home_team" FROM "round_16" WHERE "away_team_score"='11.14 (80)';<|endoftext|> |
<|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 Week 1?
<|assistant|>
SELECT "attendance" FROM "regular_season" WHERE "week"=1;<|endoftext|> |
<|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 play when there was a game attendance of 73,369?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "attendance"='73,369';<|endoftext|> |
<|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 played?
<|assistant|>
SELECT "date" FROM "regular_season" WHERE "week"=3;<|endoftext|> |
<|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 matches that took place at Windy Hill?
<|assistant|>
SELECT MAX("crowd") FROM "round_15" WHERE "venue"='windy hill';<|endoftext|> |
<|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 Glenferrie Oval?
<|assistant|>
SELECT "home_team" FROM "round_15" WHERE "venue"='glenferrie oval';<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.