output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "play_by_play" FROM "2000s" WHERE "color_commentator_s"='eric wynalda' AND "year"<2005; |
## Task
Generate a SQL query to answer the following question:
`What was the Play-by-play when the color commentator was Eric Wynalda, earlier than 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2000s" (
"year" real,
"network" text,
"play_... |
SELECT "pregame_host" FROM "2000s" WHERE "play_by_play"='jp dellacamera' AND "year"<2009 AND "color_commentator_s"='ty keough'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the pregame host when the Play-by-play was by JP Dellacamera, earlier than 2009, and Color commentator(s) was Ty Keough?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE ... |
SELECT "date" FROM "pool_c" WHERE "score"='3β0' AND "set_1"='25β22'; |
## Task
Generate a SQL query to answer the following question:
`What date was the score 3β0, and set 1 was 25β22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
... |
SELECT "date" FROM "pool_c" WHERE "total"='56β75'; |
## Task
Generate a SQL query to answer the following question:
`What date was the total 56β75?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
##... |
SELECT "set_1" FROM "pool_c" WHERE "set_3"='25β15'; |
## Task
Generate a SQL query to answer the following question:
`What is the Set 1 when Set 3 was 25β15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" t... |
SELECT "date" FROM "pool_c" WHERE "total"='75β45'; |
## Task
Generate a SQL query to answer the following question:
`What date was the total 75β45?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_c" (
"date" text,
"score" text,
"set_1" text,
"set_2" text,
"set_3" text,
"total" text
);
##... |
SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='atlanta flames' AND "game"<40; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the dates in december that were against the atlanta flames before game 40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"dece... |
SELECT "score" FROM "schedule_and_results" WHERE "game">26 AND "opponent"='montreal canadiens'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against montreal canadiens after game 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"december" real,
"oppone... |
SELECT MIN("round") FROM "draft_picks" WHERE "player"='grant long'; |
## Task
Generate a SQL query to answer the following question:
`In what Round was Grant Long Drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text... |
SELECT "player" FROM "draft_picks" WHERE "school_club_team"='memphis'; |
## Task
Generate a SQL query to answer the following question:
`What is the Player from Memphis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationality" text,
"... |
SELECT "player" FROM "draft_picks" WHERE "pick">33 AND "round">2; |
## Task
Generate a SQL query to answer the following question:
`What Player was picked after Round 2 with a Pick number larger than 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"po... |
SELECT AVG("round") FROM "draft_picks" WHERE "school_club_team"='memphis'; |
## Task
Generate a SQL query to answer the following question:
`In what Round was the Memphis Player drafted?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"player" text,
"position" text,
"nationali... |
SELECT "school_club_team" FROM "l" WHERE "years_for_grizzlies"='2006-2009'; |
## Task
Generate a SQL query to answer the following question:
`Which School/Club Team holds the 2006-2009 Years of Grizzlies ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_... |
SELECT "player" FROM "l" WHERE "years_for_grizzlies"='1998-2000'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Player in the 1998-2000 Year of Grizzlies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies... |
SELECT "nationality" FROM "l" WHERE "years_for_grizzlies"='1998-2000'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nationality of the 1998-2000 Years for Grizzlies?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_gr... |
SELECT "player" FROM "l" WHERE "nationality"='united states' AND "position"='small forward' AND "years_for_grizzlies"='1999-2002'; |
## Task
Generate a SQL query to answer the following question:
`Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
... |
SELECT "player" FROM "l" WHERE "position"='shooting guard'; |
## Task
Generate a SQL query to answer the following question:
`Which Player is the shooting guard?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "l" (
"player" text,
"nationality" text,
"position" text,
"years_for_grizzlies" text,
"school_c... |
SELECT "location_attendance" FROM "game_log" WHERE "game"=44; |
## Task
Generate a SQL query to answer the following question:
`What is the location and attendance of game 44?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,
"decision" te... |
SELECT "record" FROM "game_log" WHERE "decision"='clemmensen' AND "game"=42; |
## Task
Generate a SQL query to answer the following question:
`What is the record of game 42, which had a clemmensen decision?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" real,
"opponent" text,
"score" text,... |
SELECT "country" FROM "final_round" WHERE "to_par"='e' AND "score"='71-73-70-74=288'; |
## Task
Generate a SQL query to answer the following question:
`What country parred E and scored 71-73-70-74=288?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_pa... |
SELECT "money" FROM "final_round" WHERE "score"='73-71-70-73=287'; |
## Task
Generate a SQL query to answer the following question:
`How much money was scored for 73-71-70-73=287?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" ... |
SELECT "country" FROM "final_round" WHERE "to_par"='e' AND "player"='mark o''meara'; |
## Task
Generate a SQL query to answer the following question:
`What country has to par E with Mark O'Meara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" te... |
SELECT "country" FROM "final_round" WHERE "place"='t6' AND "player"='vijay singh'; |
## Task
Generate a SQL query to answer the following question:
`What country placed t6 with player Vijay Singh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par"... |
SELECT "money" FROM "final_round" WHERE "player"='david toms'; |
## Task
Generate a SQL query to answer the following question:
`How much money did David Toms get?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text,
"mon... |
SELECT "game" FROM "playoffs" WHERE "date"='april 26'; |
## Task
Generate a SQL query to answer the following question:
`What is the playoffs Game number on April 26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendanc... |
SELECT "score" FROM "playoffs" WHERE "game"='4'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of Game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"serie... |
SELECT "game" FROM "playoffs" WHERE "date"='april 30'; |
## Task
Generate a SQL query to answer the following question:
`What is the playoff Game on April 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"location_attendance" text,... |
SELECT "date" FROM "playoffs" WHERE "score"='l 115β118 (ot)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the game with a Score of L 115β118 (OT)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" text,
"date" text,
"team" text,
"score" text,
"loc... |
SELECT "result" FROM "1996" WHERE "attendance"='27,321'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when there were 27,321 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
"atten... |
SELECT "attendance" FROM "1996" WHERE "site"='dowdy-ficklen stadium β’ greenville, nc' AND "opponent"='ohio'; |
## Task
Generate a SQL query to answer the following question:
`What is the number in attendance at Dowdy-Ficklen stadium β’ Greenville, NC, and the opponent was Ohio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996" (
"date" text,
"opponent" t... |
SELECT "date" FROM "1996" WHERE "site"='dowdy-ficklen stadium β’ greenville, nc' AND "attendance"='27,321'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game at Dowdy-Ficklen stadium β’ Greenville, NC, with 27,321 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"si... |
SELECT "opponent" FROM "1996" WHERE "attendance"='27,321'; |
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when there were 27,321 in attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
... |
SELECT "date" FROM "1996" WHERE "site"='williams-brice stadium β’ columbia, sc'; |
## Task
Generate a SQL query to answer the following question:
`What date was the game at Williams-Brice stadium β’ Columbia, SC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1996" (
"date" text,
"opponent" text,
"site" text,
"result" text,
... |
SELECT "margin_of_victory" FROM "winners" WHERE "winning_score"='67-69-67-69=272'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Margin of victory that has the Winning score of 67-69-67-69=272?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real,
"dates" text,
"champion" ... |
SELECT "to_par" FROM "winners" WHERE "winner_s_share">'200,000' AND "margin_of_victory"='3 strokes'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the To par that has the Winner's share larger than 200,000, and the Margin of victory of 3 strokes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"year" real... |
SELECT AVG("date") FROM "release_history" WHERE "label"='cbs' AND "region"='australia' AND "catalog"='sbp 241031'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE AVERAGE DATE FOR CBS LABEL, IN AUSTRALIA, AND SBP 241031 FOR CATALOG?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"region" text,
"labe... |
SELECT MAX("date") FROM "release_history" WHERE "catalog"='486553.4'; |
## Task
Generate a SQL query to answer the following question:
`WHAT DATE HAS A CATALOG OF 486553.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"region" text,
"label" text,
"format" text,
"catalog" text
);... |
SELECT MIN("date") FROM "release_history" WHERE "region"='korea' AND "format"='cd'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST DATE FOR KOREA, IN CD FORMAT?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"date" real,
"region" text,
"label" text,
"format" text,
"cata... |
SELECT "2008" FROM "men_s_doubles_performance_timeline" WHERE "2006"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 2008, when 2006 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"... |
SELECT "tournament" FROM "men_s_doubles_performance_timeline" WHERE "2006"='a' AND "2009"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2006 is "A", and when 2009 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"200... |
SELECT "2005" FROM "men_s_doubles_performance_timeline" WHERE "2006"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 2005, when 2006 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"... |
SELECT "2011" FROM "men_s_doubles_performance_timeline" WHERE "2008"='2r'; |
## Task
Generate a SQL query to answer the following question:
`What is 2011, when 2008 is "2R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"... |
SELECT "2004" FROM "men_s_doubles_performance_timeline" WHERE "2005"='2r' AND "2006"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2005 is "2R", and when 2006 is "1R"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" te... |
SELECT "2004" FROM "men_s_doubles_performance_timeline" WHERE "2009"='a'; |
## Task
Generate a SQL query to answer the following question:
`What is 2004, when 2009 is "A"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s_doubles_performance_timeline" (
"tournament" text,
"2004" text,
"2005" text,
"2006" text,
"2... |
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='ko (slam)' AND "record"='13β1'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the opponent when the method was ko (slam), and record was 13β1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" ... |
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "round">2 AND "name"='scott turner'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pick of scott turner, who has a round greater than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real... |
SELECT "name" FROM "washington_redskins_draft_history" WHERE "round">4 AND "position"='ot'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the ot position player with a round greater than 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
... |
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='darryl pounds' AND "overall">68; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the pick of darryl pounds, who has an overall greater than 68?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pi... |
SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='lehigh' AND "overall"<152; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of rounds of the player from lehigh college with an overall less than 152?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"... |
SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "pick"=3; |
## Task
Generate a SQL query to answer the following question:
`What is the highest round of pick 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
"pick" real,
"overall" real,
"name" text,
... |
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "pick">5; |
## Task
Generate a SQL query to answer the following question:
`What is the total overall number of the ot position player with a pick greater than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "washington_redskins_draft_history" (
"round" real,
... |
SELECT MAX("rank") FROM "goalscorers" WHERE "singapore_cup"='0 (1)'; |
## Task
Generate a SQL query to answer the following question:
`What rank does the Singapore Cup of 0 (1) have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"s... |
SELECT "singapore_league_cup" FROM "goalscorers" WHERE "name"='masahiro fukasawa'; |
## Task
Generate a SQL query to answer the following question:
`What Singapore League Cup does Masahiro Fukasawa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" tex... |
SELECT "total" FROM "goalscorers" WHERE "name"='norikazu murakami'; |
## Task
Generate a SQL query to answer the following question:
`What is Norikazu Murakami's total?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_leag... |
SELECT "rank" FROM "goalscorers" WHERE "total"='3 (20)'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank for the total that has 3 (20)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"s... |
SELECT "afc_cup" FROM "goalscorers" WHERE "name"='masahiro fukasawa'; |
## Task
Generate a SQL query to answer the following question:
`Which AFC cup does Masahiro Fukasawa have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singap... |
SELECT "afc_cup" FROM "goalscorers" WHERE "name"='kenji arai'; |
## Task
Generate a SQL query to answer the following question:
`Which AFC cup does Kenji Arai have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goalscorers" (
"rank" real,
"name" text,
"s_league" text,
"singapore_cup" text,
"singapore_lea... |
SELECT "score" FROM "game_log" WHERE "high_points"='joe johnson (31)'; |
## Task
Generate a SQL query to answer the following question:
`In the game where Joe Johnson (31) was the high points scorer, what was the final score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" ... |
SELECT MIN("to_par") FROM "final_leaderboard" WHERE "place"='t3' AND "money"<'1,500'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest to par of the player with a t3 place and less than $1,500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"count... |
SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "place"='t6' AND "score"='71-70-76-72=289'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from the United States with a t6 place and a 71-70-76-72=289 score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
... |
SELECT COUNT("money") FROM "final_leaderboard" WHERE "to_par"=9 AND "player"='tommy bolt'; |
## Task
Generate a SQL query to answer the following question:
`How much total money does player tommy bolt, who has a to par of 9, have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player" text,
"country" ... |
SELECT MIN("money") FROM "final_leaderboard" WHERE "country"='south africa' AND "to_par"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of money a player from South Africa with a to par less than 8 has?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_leaderboard" (
"place" text,
"player"... |
SELECT "venue" FROM "international_goals" WHERE "competition"='friendly match'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue that had a friendly match competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"date" text,
"venue" text,
"score" text,
"result" t... |
SELECT "course" FROM "u_s_open_champions" WHERE "to_par_a"='n/a' AND "country"='scotland' AND "year">1905 AND "location"='philadelphia, pennsylvania'; |
## Task
Generate a SQL query to answer the following question:
`With a year larger than 1905, and a location of philadelphia, pennsylvania with a to par [a] of n/a and a country of scotland what is the course?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE T... |
SELECT "total_score" FROM "u_s_open_champions" WHERE "location"='san francisco, california' AND "year">1987 AND "to_par_a"='+1'; |
## Task
Generate a SQL query to answer the following question:
`What is the total score for a location of san francisco, california, and a year after 1987, and a to pa [a] of +1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_open_champions" (
"... |
SELECT SUM("year") FROM "u_s_open_champions" WHERE "location"='newport, rhode island'; |
## Task
Generate a SQL query to answer the following question:
`What is the sum for the year with a location of newport, rhode island?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" tex... |
SELECT "country" FROM "u_s_open_champions" WHERE "course"='merion golf club' AND "to_par_a"='e'; |
## Task
Generate a SQL query to answer the following question:
`What is the country with a course of merion golf club, and a to par [1] of e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"cour... |
SELECT "total_score" FROM "u_s_open_champions" WHERE "year"=2012; |
## Task
Generate a SQL query to answer the following question:
`What is the total score for the year 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_open_champions" (
"year" real,
"country" text,
"course" text,
"location" text,
"tot... |
SELECT "evening_gown" FROM "final_competition" WHERE "state"='mississippi'; |
## Task
Generate a SQL query to answer the following question:
`What is the evening gown score for the contestant from Mississippi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_competition" (
"state" text,
"preliminary_average" text,
"in... |
SELECT "type" FROM "denmark" WHERE "rank"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the type for rank 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "denmark" (
"rank" real,
"surname" text,
"number_of_bearers_1971" real,
"number_of_bearers_2009" real,
... |
SELECT SUM("number_of_bearers_2009") FROM "denmark" WHERE "rank">1 AND "type"='patronymic' AND "etymology"='son of christian' AND "number_of_bearers_1971">45.984; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984?`
### Database Schema
This query will run on a database whose schema is re... |
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='herdez competition' AND "name"='ryan hunter-reay'; |
## Task
Generate a SQL query to answer the following question:
`What is Ryan Hunter-Reay of the Herdez Competition's Qual 2 time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qu... |
SELECT "team" FROM "qualifying_results" WHERE "name"='justin wilson'; |
## Task
Generate a SQL query to answer the following question:
`What is Justin Wilson's Team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
);
### SQL... |
SELECT "best" FROM "qualifying_results" WHERE "qual_2"='1:00.588'; |
## Task
Generate a SQL query to answer the following question:
`What is the Best of the racer with a Qual 2 of 1:00.588?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" tex... |
SELECT MIN("area_km") FROM "subdivisions" WHERE "population_2010"='7,616'; |
## Task
Generate a SQL query to answer the following question:
`Where is the lowest area with a population of 7,616?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,... |
SELECT "tongyong" FROM "subdivisions" WHERE "hanyu"='sanmin'; |
## Task
Generate a SQL query to answer the following question:
`Where in Tongyong is Hanyu Sanmin?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" real,... |
SELECT "hanyu" FROM "subdivisions" WHERE "area_km"=19.3888; |
## Task
Generate a SQL query to answer the following question:
`Which Hanya has an area of 19.3888?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "subdivisions" (
"hanyu" text,
"tongyong" text,
"pe_h_e_j" text,
"chinese" text,
"area_km" real... |
SELECT "nationality" FROM "draft_picks" WHERE "round"<2 AND "pick"=24; |
## Task
Generate a SQL query to answer the following question:
`What is Nationality, when Round is less than 2, and when Pick is "24"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"position" text,
"n... |
SELECT "nationality" FROM "draft_picks" WHERE "round"<2 AND "college_team"='cb l''hospitalet'; |
## Task
Generate a SQL query to answer the following question:
`What is Nationality, when Round is less than 2, and when College/Team is "CB L'Hospitalet"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
... |
SELECT MIN("round") FROM "draft_picks" WHERE "college_team"='kansas' AND "pick"<56; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Round, when College/Team is "Kansas", and when Pick is less than 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"pos... |
SELECT "college_team" FROM "draft_picks" WHERE "round"<2 AND "nationality"='united states'; |
## Task
Generate a SQL query to answer the following question:
`What is College/Team, when Round is less than 2, and when Nationality is "United States"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"pick" real,
"p... |
SELECT MAX("q1_pos") FROM "qualifying" WHERE "q1_time"='1:31.826' AND "q1_order">7; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE Q1 POS WITH A 1:31.826 Q1 TIME, AND Q1 ORDER OF 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "qualifying" (
"driver" text,
"constructor" text,
"q1_order" real,
"q1... |
SELECT "score" FROM "game_log" WHERE "date"='december 2'; |
## Task
Generate a SQL query to answer the following question:
`What is the score on December 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebo... |
SELECT "silver" FROM "overall_medal_tally" WHERE "year"='1938'; |
## Task
Generate a SQL query to answer the following question:
`How many silver medals were won in 1938?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" te... |
SELECT "gold" FROM "overall_medal_tally" WHERE "year"='1970'; |
## Task
Generate a SQL query to answer the following question:
`How many gold medals were won in 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" text... |
SELECT "silver" FROM "overall_medal_tally" WHERE "gold"='7'; |
## Task
Generate a SQL query to answer the following question:
`How many silver medals were won the year 7 gold medals were won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"br... |
SELECT "bronze" FROM "overall_medal_tally" WHERE "year"='1998'; |
## Task
Generate a SQL query to answer the following question:
`How many bronze medals were won in 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall_medal_tally" (
"year" text,
"gold" text,
"silver" text,
"bronze" text,
"total" te... |
SELECT "tv_time" FROM "schedule" WHERE "date"='november 22, 1998'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the TV Time that has the Date of november 22, 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent"... |
SELECT "result" FROM "schedule" WHERE "date"='september 13, 1998'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Result that has the Date of september 13, 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent"... |
SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "tv_time"='fox 10:00 am mt' AND "result"='w 20-17'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Opponent that has the Week smaller than 11, and the TV Time of fox 10:00 am mt, and the Result of w 20-17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
... |
SELECT "result" FROM "schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Result that has the Week of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"tv_time" text,
"opponent" text,
"result"... |
SELECT AVG("founded") FROM "south_australia" WHERE "coach"='unknown' AND "location"='enfield'; |
## Task
Generate a SQL query to answer the following question:
`What is the average year that the club located in enfield was founded with an unknown coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" tex... |
SELECT "location" FROM "south_australia" WHERE "home_ground"='wilfred taylor reserve'; |
## Task
Generate a SQL query to answer the following question:
`What was the location of the club where the home ground is wilfred taylor reserve?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home... |
SELECT "location" FROM "south_australia" WHERE "coach"='unknown' AND "founded"=1946; |
## Task
Generate a SQL query to answer the following question:
`Where is the club that was founded in 1946 located that has an unknown coach?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
"home_grou... |
SELECT "home_ground" FROM "south_australia" WHERE "founded"<1946 AND "coach"='nick pantsaras'; |
## Task
Generate a SQL query to answer the following question:
`Where is the home ground for the club coached by nick pantsaras and founded before 1946?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "south_australia" (
"team" text,
"coach" text,
... |
SELECT "team" FROM "playoffs" WHERE "location_attendance"='madison square garden' AND "score"='87-83'; |
## Task
Generate a SQL query to answer the following question:
`Which team was the opponent that had a location of Madison Square Garden with a score of 87-83?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"team" text,
... |
SELECT "game" FROM "playoffs" WHERE "location_attendance"='the forum' AND "series"='0-1'; |
## Task
Generate a SQL query to answer the following question:
`Which game was played at the Forum and led to a series result of 0-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_... |
SELECT "score" FROM "playoffs" WHERE "game"=2; |
## Task
Generate a SQL query to answer the following question:
`What was the score for game 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"team" text,
"score" text,
"location_attendance" text,
"series" text
);
##... |
SELECT "title" FROM "season_2_1997_98" WHERE "season_num"<10 AND "directed_by"='milan cheylov' AND "original_air_date"='september 29, 1997'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the show with less than 10 seasons that aired on September 29, 1997 and is directed by Milan Cheylov?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1997_98"... |
SELECT "attendance" FROM "schedule" WHERE "date"='november 19, 1990'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the November 19, 1990 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"atten... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.