text stringlengths 310 1.28k |
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: On what date does visiting team Minnesota score higher than 47 points?
<|assistant|>
SELECT "date" FROM "january" WHERE "points">47 AND "visitor"='minnesota';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "january" (
"game_num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text,
"points" real
);
Question: What date does visitor team Toronto score less than 49 points and has record of 18-17-7?
<|assistant|>
SELECT "date" FROM "january" WHERE "visitor"='toronto' AND "points"<49 AND "record"='18-17-7';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: What is the fleet number for the model of Gillig Phantom 3096TB?
<|assistant|>
SELECT "fleet_number" FROM "retired_fleet" WHERE "model"='gillig phantom 3096tb';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: What is the width for the year of the 1970?
<|assistant|>
SELECT "width" FROM "retired_fleet" WHERE "year"='1970';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: Which year has a fleet number of 603?
<|assistant|>
SELECT "year" FROM "retired_fleet" WHERE "fleet_number"='603';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: What is the length of fleet number 501-506?
<|assistant|>
SELECT "length" FROM "retired_fleet" WHERE "fleet_number"='501-506';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: What is fleet number for the year of 19xx?
<|assistant|>
SELECT "fleet_number" FROM "retired_fleet" WHERE "year"='19xx';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "retired_fleet" (
"year" text,
"model" text,
"length" text,
"width" text,
"fleet_number" text
);
Question: What is the fleet number of Model Orion 01.507?
<|assistant|>
SELECT "fleet_number" FROM "retired_fleet" WHERE "model"='orion 01.507';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the highest round of Ed Smith, who had a pick higher than 261 and played halfback?
<|assistant|>
SELECT MAX("round") FROM "nfl_draft" WHERE "pick"<261 AND "position"='halfback' AND "player"='ed smith';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the lowest round of Ed Smith, who had a pick lower than 19?
<|assistant|>
SELECT MIN("round") FROM "nfl_draft" WHERE "player"='ed smith' AND "pick">19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which player had a round of 27?
<|assistant|>
SELECT "player" FROM "nfl_draft" WHERE "round"=27;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is the position of the player with a round less than 20 from the school/club Washington?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "round"<20 AND "school_club_team"='washington';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Location of hemisfair arena had what record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "location"='hemisfair arena';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Record of 20β4 involved what highest game?
<|assistant|>
SELECT MAX("game") FROM "game_log" WHERE "record"='20β4';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Opponent of @ phoenix suns had what sum of game?
<|assistant|>
SELECT SUM("game") FROM "game_log" WHERE "opponent"='@ phoenix suns';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Score of 122β105 had what record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "score"='122β105';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_champion_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: In the final, who are the opponents of partner Simon Aspelin?
<|assistant|>
SELECT "opponents_in_the_final" FROM "doubles_champion_6" WHERE "partner"='simon aspelin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "doubles_champion_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
);
Question: For the tournament played on 26 February 2006, what surface was used?
<|assistant|>
SELECT "surface" FROM "doubles_champion_6" WHERE "date"='26 february 2006';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Which Date has a Record of 58β10?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='58β10';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"game" real,
"date" text,
"opponent" text,
"score" text,
"location" text,
"record" text
);
Question: Which Date has a Score of 106β112?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='106β112';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who was second when Martynas Norkus was the skip?
<|assistant|>
SELECT "second" FROM "group_b2" WHERE "skip"='martynas norkus';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who was the second when Ilian Kirilov was the lead?
<|assistant|>
SELECT "second" FROM "group_b2" WHERE "lead"='ilian kirilov';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who was the lead when Jamie Meikle was the skip?
<|assistant|>
SELECT "lead" FROM "group_b2" WHERE "skip"='jamie meikle';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who was the lead when Ritvars Gulbis was the skip?
<|assistant|>
SELECT "lead" FROM "group_b2" WHERE "skip"='ritvars gulbis';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: Who came in third in England?
<|assistant|>
SELECT "third" FROM "group_b2" WHERE "nation"='england';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "group_b2" (
"nation" text,
"skip" text,
"third" text,
"second" text,
"lead" text
);
Question: In what nation did Darko Sovran place third?
<|assistant|>
SELECT "nation" FROM "group_b2" WHERE "third"='darko sovran';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the tournament with a w/o score on November 5, 2007?
<|assistant|>
SELECT "tournament" FROM "singles_titles_14" WHERE "score"='w/o' AND "date"='november 5, 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the surface of eckental tournament with a w/o score?
<|assistant|>
SELECT "surface" FROM "singles_titles_14" WHERE "tournament"='eckental' AND "score"='w/o';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
<|assistant|>
SELECT "tournament" FROM "singles_titles_14" WHERE "surface"='hard' AND "opponent"='ruben de kleijn';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the score of the tournament on November 5, 2007 with a carpet surface?
<|assistant|>
SELECT "score" FROM "singles_titles_14" WHERE "surface"='carpet' AND "date"='november 5, 2007';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_titles_14" (
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the surface of the tournament with Sascha Kloer as the opponent?
<|assistant|>
SELECT "surface" FROM "singles_titles_14" WHERE "opponent"='sascha kloer';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "teams_and_venues" (
"team" text,
"location" text,
"venue" text,
"capacity" real,
"position_in_1993_94" text
);
Question: what team scored in gomel
<|assistant|>
SELECT "team" FROM "teams_and_venues" WHERE "location"='gomel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the average conceded number of the team with a position lower than 8 and more than 2 wins?
<|assistant|>
SELECT AVG("conceded") FROM "torneo_apertura" WHERE "position">8 AND "wins">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the averaged scored number of team guaranΓ, which has less than 6 draws and less than 5 losses?
<|assistant|>
SELECT AVG("scored") FROM "torneo_apertura" WHERE "draws"<6 AND "team"='guaranΓ' AND "losses"<5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the total number scored of the team positioned lower than 10?
<|assistant|>
SELECT COUNT("scored") FROM "torneo_apertura" WHERE "position">10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the lowest number of wins of the team with less than 24 scored, 27 conceded, and more than 18 played?
<|assistant|>
SELECT MIN("wins") FROM "torneo_apertura" WHERE "scored"<24 AND "conceded"=27 AND "played">18;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "torneo_apertura" (
"position" real,
"team" text,
"played" real,
"wins" real,
"draws" real,
"losses" real,
"scored" real,
"conceded" real,
"points" real
);
Question: What is the lowest number of points of the team with 2 losses and a lower than 1 position?
<|assistant|>
SELECT MIN("points") FROM "torneo_apertura" WHERE "losses"=2 AND "position">1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "brazilian_clubs_in_international_competi" (
"team" text,
"copa_libertadores_1993" text,
"supercopa_sudamericana_1993" text,
"copa_conmebol_1993" text,
"recopa_sudamericana_1993" text,
"intercontinental_cup_1993" text
);
Question: What is the Intercontinental Cup 1993 result for a Supercopa Sudamericana 1993 result of round of 16?
<|assistant|>
SELECT "intercontinental_cup_1993" FROM "brazilian_clubs_in_international_competi" WHERE "supercopa_sudamericana_1993"='round of 16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Who received the Loss during the game with an Attendance larger than 50,589 and a Record of 71β57?
<|assistant|>
SELECT "loss" FROM "game_log" WHERE "attendance">'50,589' AND "record"='71β57';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"november" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?
<|assistant|>
SELECT MIN("november") FROM "regular_season" WHERE "game">22 AND "opponent"='toronto maple leafs';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wii_version" (
"song_title" text,
"artist" text,
"decade" text,
"genre" text,
"family_friendly" text
);
Question: What is the family friendly status of the punk genre song from the 1970s?
<|assistant|>
SELECT "family_friendly" FROM "wii_version" WHERE "decade"='1970s' AND "genre"='punk';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "wii_version" (
"song_title" text,
"artist" text,
"decade" text,
"genre" text,
"family_friendly" text
);
Question: Who is the artist of the rock song?
<|assistant|>
SELECT "artist" FROM "wii_version" WHERE "genre"='rock';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of bronze medals for nations with under 0 golds?
<|assistant|>
SELECT MAX("bronze") FROM "medal_table" WHERE "gold"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_36_drake_4" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many points did Stuart have when he had 0 extra points?
<|assistant|>
SELECT MIN("points") FROM "michigan_36_drake_4" WHERE "player"='stuart' AND "extra_points"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_36_drake_4" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Who had the lowest field goals but had 10 points and more than 2 touchdowns?
<|assistant|>
SELECT MIN("field_goals") FROM "michigan_36_drake_4" WHERE "points"=10 AND "touchdowns">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_36_drake_4" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: How many points did Stuart have when he had less than 1 touchdown?
<|assistant|>
SELECT SUM("points") FROM "michigan_36_drake_4" WHERE "player"='stuart' AND "touchdowns"<1;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "michigan_36_drake_4" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
Question: Who had a points average with 0 extra points and 0 field goals?
<|assistant|>
SELECT AVG("points") FROM "michigan_36_drake_4" WHERE "extra_points"=0 AND "field_goals">0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "awards" (
"year" real,
"event" text,
"award" text,
"nominee" text,
"result" text
);
Question: What was the result in the Golden Reel Awards?
<|assistant|>
SELECT "result" FROM "awards" WHERE "event"='golden reel awards';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Record of 16β29 is how many attendance?
<|assistant|>
SELECT "attendance" FROM "game_log" WHERE "record"='16β29';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Loss of peavy (4β3) is what score?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "loss"='peavy (4β3)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Score of 3β2, and a Opponent of reds had what sum of attendance?
<|assistant|>
SELECT SUM("attendance") FROM "game_log" WHERE "score"='3β2' AND "opponent"='reds';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
);
Question: Score of 6β4, and a Opponent of @ marlins had what record?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "score"='6β4' AND "opponent"='@ marlins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Cuts made has a Tournament of totals, and Wins smaller than 11?
<|assistant|>
SELECT AVG("cuts_made") FROM "summary" WHERE "tournament"='totals' AND "wins"<11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-25 has a Top-5 smaller than 0?
<|assistant|>
SELECT SUM("top_25") FROM "summary" WHERE "top_5"<0;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-25 has a Top-5 larger than 9, and Wins smaller than 11?
<|assistant|>
SELECT SUM("top_25") FROM "summary" WHERE "top_5">9 AND "wins"<11;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-5 is the highest one that has Wins of 0, and Events larger than 6?
<|assistant|>
SELECT MAX("top_5") FROM "summary" WHERE "wins"=0 AND "events">6;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Top-5 is the lowest one that has Cuts made of 10, and Events larger than 10?
<|assistant|>
SELECT MIN("top_5") FROM "summary" WHERE "cuts_made"=10 AND "events">10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
);
Question: Which Events is the highest one that has a Top-10 larger than 7, and Wins smaller than 2?
<|assistant|>
SELECT MAX("events") FROM "summary" WHERE "top_10">7 AND "wins"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_12_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: When the surface is clay, and the tournament of barcelona what is the score?
<|assistant|>
SELECT "score" FROM "singles_18_12_6" WHERE "surface"='clay' AND "tournament"='barcelona';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_12_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the surface when the opponent was judith wiesner, and the outcome was winner?
<|assistant|>
SELECT "surface" FROM "singles_18_12_6" WHERE "outcome"='winner' AND "opponent"='judith wiesner';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_12_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the opponent for the tournament of rio de janeiro?
<|assistant|>
SELECT "opponent" FROM "singles_18_12_6" WHERE "tournament"='rio de janeiro';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_12_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What is the opponent with the outcome of runner-up with a date of 19 september 1994?
<|assistant|>
SELECT "opponent" FROM "singles_18_12_6" WHERE "outcome"='runner-up' AND "date"='19 september 1994';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles_18_12_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What was the opponent for the tournament of taranto?
<|assistant|>
SELECT "opponent" FROM "singles_18_12_6" WHERE "tournament"='taranto';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_calendar" (
"date" text,
"round" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"report" text
);
Question: Who had the fastest lap where Joan Lascorz was the winner?
<|assistant|>
SELECT "fastest_lap" FROM "season_calendar" WHERE "race_winner"='joan lascorz';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "season_calendar" (
"date" text,
"round" text,
"circuit" text,
"pole_position" text,
"fastest_lap" text,
"race_winner" text,
"report" text
);
Question: Who won the round in Europe?
<|assistant|>
SELECT "race_winner" FROM "season_calendar" WHERE "round"='europe';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: How many games have a Score of 3β0, and a January larger than 12?
<|assistant|>
SELECT COUNT("game") FROM "regular_season" WHERE "score"='3β0' AND "january">12;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Opponent has a January larger than 8, and a Game smaller than 48, and a Score of 5β3?
<|assistant|>
SELECT "opponent" FROM "regular_season" WHERE "january">8 AND "game"<48 AND "score"='5β3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Game is the highest that has a January of 28?
<|assistant|>
SELECT MAX("game") FROM "regular_season" WHERE "january"=28;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "regular_season" (
"game" real,
"january" real,
"opponent" text,
"score" text,
"record" text,
"points" real
);
Question: Which Score has a Game larger than 47, and a January smaller than 25?
<|assistant|>
SELECT "score" FROM "regular_season" WHERE "game">47 AND "january"<25;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_reference" (
"code" text,
"vehicle" text,
"year" text,
"displacement" text,
"bore" text,
"stroke" text,
"c_r" text,
"max_power" text
);
Question: What stroke has a max power of 109 ps(80kw)@4000 rpm?
<|assistant|>
SELECT "stroke" FROM "engine_reference" WHERE "max_power"='109 ps(80kw)@4000 rpm';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_reference" (
"code" text,
"vehicle" text,
"year" text,
"displacement" text,
"bore" text,
"stroke" text,
"c_r" text,
"max_power" text
);
Question: The nissan primera p12 nissan almera n16 has what C.R.?
<|assistant|>
SELECT "c_r" FROM "engine_reference" WHERE "vehicle"='nissan primera p12 nissan almera n16';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_reference" (
"code" text,
"vehicle" text,
"year" text,
"displacement" text,
"bore" text,
"stroke" text,
"c_r" text,
"max_power" text
);
Question: What displacement has the code yd22ddt?
<|assistant|>
SELECT "displacement" FROM "engine_reference" WHERE "code"='yd22ddt';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "engine_reference" (
"code" text,
"vehicle" text,
"year" text,
"displacement" text,
"bore" text,
"stroke" text,
"c_r" text,
"max_power" text
);
Question: What code has a C.R of 16.7:1?
<|assistant|>
SELECT "code" FROM "engine_reference" WHERE "c_r"='16.7:1';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "singles" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
);
Question: What Outcome happened on a Date that was 20 november 2011?
<|assistant|>
SELECT "outcome" FROM "singles" WHERE "date"='20 november 2011';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Away team has a Score of 0β3?
<|assistant|>
SELECT "away_team" FROM "fourth_round" WHERE "score"='0β3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Attendance has a Tie number of 5?
<|assistant|>
SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Score has an Attendance of 23 january 1999, and a Tie # of 6?
<|assistant|>
SELECT "score" FROM "fourth_round" WHERE "attendance"='23 january 1999' AND "tie_no"='6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Tie #has an Attendance of 54,591?
<|assistant|>
SELECT "tie_no" FROM "fourth_round" WHERE "attendance"='54,591';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Home team has a Score of 1β1, and an Away team of tottenham hotspur?
<|assistant|>
SELECT "home_team" FROM "fourth_round" WHERE "score"='1β1' AND "away_team"='tottenham hotspur';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fourth_round" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
);
Question: Which Attendance has a Tie # of 15?
<|assistant|>
SELECT "attendance" FROM "fourth_round" WHERE "tie_no"='15';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: In what Year was the Position 11th?
<|assistant|>
SELECT COUNT("year") FROM "achievements" WHERE "position"='11th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What was the name of the Competition in Rome, Italy?
<|assistant|>
SELECT "competition" FROM "achievements" WHERE "venue"='rome, italy';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: What Notes after 1983 have a Position of 18th?
<|assistant|>
SELECT "notes" FROM "achievements" WHERE "year">1983 AND "position"='18th';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
);
Question: After 1983, what was the Position in Seoul, South Korea?
<|assistant|>
SELECT "position" FROM "achievements" WHERE "year">1983 AND "venue"='seoul, south korea';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total"<2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: How many Gold medals does the country with 2 Silver and more than 2 Bronze have?
<|assistant|>
SELECT COUNT("gold") FROM "medal_table" WHERE "silver"=2 AND "bronze">2;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "living_british_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"country_of_birth" text,
"place_of_residence" text
);
Question: What is the Age of dorothy Peel as of 1 February 2014 ?
<|assistant|>
SELECT "age_as_of_1_february_2014" FROM "living_british_supercentenarians" WHERE "name"='dorothy peel';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "living_british_supercentenarians" (
"name" text,
"birth_date" text,
"age_as_of_1_february_2014" text,
"country_of_birth" text,
"place_of_residence" text
);
Question: Who is 111years, 358days Age as of 1 February 2014?
<|assistant|>
SELECT "name" FROM "living_british_supercentenarians" WHERE "age_as_of_1_february_2014"='111years, 358days';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "atp_tour_venues" (
"rank" text,
"stadium" text,
"capacity" real,
"city" text,
"country" text
);
Question: Which Capacity has a City of london, and a Stadium of queen's club?
<|assistant|>
SELECT AVG("capacity") FROM "atp_tour_venues" WHERE "city"='london' AND "stadium"='queen''s club';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: Which Rank has a Name of thomas morgenstern, and Points larger than 368.9?
<|assistant|>
SELECT AVG("rank") FROM "planica" WHERE "name"='thomas morgenstern' AND "points">368.9;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: Which Rank has an Overall WC points (Rank) of 1561 (2), and a 1st (m) larger than 217?
<|assistant|>
SELECT AVG("rank") FROM "planica" WHERE "overall_wc_points_rank"='1561 (2)' AND "1st_m">217;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "planica" (
"rank" real,
"name" text,
"nationality" text,
"1st_m" real,
"2nd_m" real,
"points" real,
"overall_wc_points_rank" text
);
Question: How much Rank has a Name of janne happonen, and a 1st (m) larger than 203.5?
<|assistant|>
SELECT COUNT("rank") FROM "planica" WHERE "name"='janne happonen' AND "1st_m">203.5;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the lowest total for bronzes over 1, golds over 8, and fewer than 10 silvers?
<|assistant|>
SELECT MIN("total") FROM "medal_table" WHERE "bronze">1 AND "gold">8 AND "silver"<10;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
);
Question: What is the highest number of silvers for ranks over 7?
<|assistant|>
SELECT MAX("silver") FROM "medal_table" WHERE "rank">7;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "fixtures" (
"date" text,
"location" text,
"opponent" text,
"score" text,
"competition" text
);
Question: Which location held a game against the Maryland Terrapins?
<|assistant|>
SELECT "location" FROM "fixtures" WHERE "opponent"='maryland terrapins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Who was the opponent when the record recorded was 64-78?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "record"='64-78';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: When the record was 67-82, what was the final score recorded?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "record"='67-82';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "game_log" (
"date" text,
"time" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
Question: Who was the opponent for the game played with 54,136 people in attendance?
<|assistant|>
SELECT "opponent" FROM "game_log" WHERE "attendance"='54,136';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: Which position does bert coan play?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "player"='bert coan';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "nfl_draft" (
"round" real,
"pick" real,
"player" text,
"position" text,
"school_club_team" text
);
Question: What is round 1's position?
<|assistant|>
SELECT "position" FROM "nfl_draft" WHERE "round"=1;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.