output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">74 AND "1985"=125 AND "1995">130; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elections_to_the_legisla... |
SELECT MAX("2007") FROM "elections_to_the_legislative_assembly_of" WHERE "1985">52 AND "1987">130 AND "1990"<1990; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elections_to_the... |
SELECT MAX("1995") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">36 AND "1987"<1987 AND "2007">107; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elections_to_the_legislative_as... |
SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "2011"<107 AND "1995"<17; |
## Task
Generate a SQL query to answer the following question:
`What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elections_to_the_legislative_assembly_of" (
"party... |
SELECT "tournament" FROM "summary" WHERE "events">11 AND "top_5"=0 AND "top_25"=2; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"... |
SELECT MAX("top_10") FROM "summary" WHERE "cuts_made"=8 AND "events"<11; |
## Task
Generate a SQL query to answer the following question:
`What is the most top-10 of the team with 8 cuts made and less than 11 events?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,... |
SELECT "american_labor_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='henry epstein'; |
## Task
Generate a SQL query to answer the following question:
`What is the American Labor ticket when Henry Epstein is the liberal ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ti... |
SELECT "communist_ticket" FROM "1946_state_election_results" WHERE "office"='judge of the court of appeals'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Communist ticket with an Office of judge of the court of appeals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946_state_election_results" (
"office" text,
... |
SELECT "office" FROM "1946_state_election_results" WHERE "liberal_ticket"='spencer c. young'; |
## Task
Generate a SQL query to answer the following question:
`What is the Office when spencer c. young is on the liberal ticket??`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946_state_election_results" (
"office" text,
"republican_ticket" te... |
SELECT "democratic_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='erastus corning 2nd'; |
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946_state_election_results" (
"office" text,
... |
SELECT "republican_ticket" FROM "1946_state_election_results" WHERE "american_labor_ticket"='spencer c. young'; |
## Task
Generate a SQL query to answer the following question:
`What name is on the Republican ticket when the American Labor ticket was spencer c. young?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1946_state_election_results" (
"office" text,
... |
SELECT "entered" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='29:28'; |
## Task
Generate a SQL query to answer the following question:
`What is the entered number for the person with a time of 29:28?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrestler... |
SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='12:38'; |
## Task
Generate a SQL query to answer the following question:
`What is the number eliminated for the person with a time of 12:38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wrest... |
SELECT MAX("attendance") FROM "schedule" WHERE "result"='w 24-21'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Attendance with a Result that is w 24-21?`
### 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,
... |
SELECT "date" FROM "track_records" WHERE "time_seconds"=42.172; |
## Task
Generate a SQL query to answer the following question:
`What Date has a time of (seconds) 42.172?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_records" (
"sport" text,
"record" text,
"nation_athlete_s" text,
"date" text,
"tim... |
SELECT "record" FROM "track_records" WHERE "date"='23 january 2010' AND "time_seconds"<42.679; |
## Task
Generate a SQL query to answer the following question:
`What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_records" (
"sport" text,
"record" text,
"nation... |
SELECT COUNT("points") FROM "college_career" WHERE "year"='2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points that were in a Year that was 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college_career" (
"year" text,
"gp_gs" text,
"shots" real,
"go... |
SELECT MIN("shots") FROM "college_career" WHERE "points">32; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Shots with a Point that is larger than 32?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "college_career" (
"year" text,
"gp_gs" text,
"shots" real,
"goals" rea... |
SELECT "category" FROM "singles" WHERE "year"=1991; |
## Task
Generate a SQL query to answer the following question:
`Which category had a year of 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" real,
"category" text,
"champion" text,
"runner_up" text,
"score" text
);
###... |
SELECT "score" FROM "singles" WHERE "runner_up"='magdalena maleeva'; |
## Task
Generate a SQL query to answer the following question:
`What is the score having a runner-up of Magdalena Maleeva?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"year" real,
"category" text,
"champion" text,
"runner_up" tex... |
SELECT "year_built" FROM "present" WHERE "venue"='john m. belk arena'; |
## Task
Generate a SQL query to answer the following question:
`What year was John m. Belk Arena built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" tex... |
SELECT "environment" FROM "present" WHERE "year_built"='2003'; |
## Task
Generate a SQL query to answer the following question:
`What type of environment is the venue that was built in 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" tex... |
SELECT "year_built" FROM "present" WHERE "venue"='transamerica field'; |
## Task
Generate a SQL query to answer the following question:
`What year was transamerica field built in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"owner" text,
"environment" ... |
SELECT "location" FROM "present" WHERE "owner"='johnson c. smith university'; |
## Task
Generate a SQL query to answer the following question:
`What is the location of the venue owned by johnson c. smith university?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "present" (
"venue" text,
"location" text,
"capacity" text,
"... |
SELECT "venue" FROM "international_goals" WHERE "score"='8-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the venue when the score was 8-2?`
### 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" text,
"competit... |
SELECT "score" FROM "international_goals" WHERE "competition"='1999 fifa confederations cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score for the 1999 fifa confederations cup?`
### 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" tex... |
SELECT "result" FROM "international_goals" WHERE "date"='30 june 1995'; |
## Task
Generate a SQL query to answer the following question:
`What is the result on 30 june 1995?`
### 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" text,
"competition" t... |
SELECT "date" FROM "international_goals" WHERE "competition"='1999 fifa confederations cup'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the 1999 fifa confederations cup?`
### 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" text,... |
SELECT "venue" FROM "international_goals" WHERE "competition"='2002 fifa world cup qualifier' AND "result"='8-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?`
### 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... |
SELECT "score" FROM "international_goals" WHERE "date"='11 march 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score on 11 march 2001?`
### 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" text,
"competition" t... |
SELECT "round_4" FROM "scoring_format" WHERE "from"<1990 AND "round_3"='double'; |
## Task
Generate a SQL query to answer the following question:
`What is the round 4 that has from less than 1990, and double for round 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" text,
... |
SELECT "round_6" FROM "scoring_format" WHERE "round_2"='single' AND "round_4"='double' AND "from"=1982; |
## Task
Generate a SQL query to answer the following question:
`What is the round 6+ that has single as round 2, double as round 4, from 1982?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"round_1" t... |
SELECT "round_1" FROM "scoring_format" WHERE "from"<1984 AND "round_3"='double' AND "goal"<300; |
## Task
Generate a SQL query to answer the following question:
`Which round 1 has a from prior to 1984, double as round 3, with a goal lwss than 300?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"goal" real,
"rou... |
SELECT "round_6" FROM "scoring_format" WHERE "from"<1993 AND "round_3"='double' AND "round_5"='double'; |
## Task
Generate a SQL query to answer the following question:
`What is the round 6+ that has a from prior to 1993, double for round 3, and a double for round 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_format" (
"from" real,
"goal" ... |
SELECT "symbol" FROM "atomic_radii" WHERE "empirical"='190' AND "calculated"='135'; |
## Task
Generate a SQL query to answer the following question:
`What is the symbol of the element with an empirical t of 190 and a calculated value of 135?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text... |
SELECT "name" FROM "atomic_radii" WHERE "calculated"='56'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the element with a calculated value of 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text,
"name" text,
"empirical... |
SELECT "covalent_single_bond" FROM "atomic_radii" WHERE "name"='sodium'; |
## Task
Generate a SQL query to answer the following question:
`What is the covalent (single bond) value of sodium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "atomic_radii" (
"number" real,
"symbol" text,
"name" text,
"empirical" text,
"... |
SELECT MIN("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=191 AND "2008_2009_team"='new jersey devils'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest jersey # of the player with a height of 191 cm from the New Jersey Devils in 2008-2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ic... |
SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "birthdate"='september 2, 1973'; |
## Task
Generate a SQL query to answer the following question:
`What is the total height of the player with a birthdate on September 2, 1973?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,... |
SELECT "birthdate" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='robert esche'; |
## Task
Generate a SQL query to answer the following question:
`What is the birthdate of Robert Esche?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,
... |
SELECT "position" FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num">30 AND "birthdate"='december 23, 1986'; |
## Task
Generate a SQL query to answer the following question:
`What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hoc... |
SELECT "weight_kg" FROM "list_of_united_states_national_ice_hocke" WHERE "name"='john-michael liles'; |
## Task
Generate a SQL query to answer the following question:
`What is the weight of John-Michael Liles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_united_states_national_ice_hocke" (
"position" text,
"jersey_num" real,
"name" text,... |
SELECT "first_leg" FROM "liverpool" WHERE "round"='quarter-final'; |
## Task
Generate a SQL query to answer the following question:
`What was the first leg score during the quarter-final game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"second_... |
SELECT "aggregate_score" FROM "liverpool" WHERE "opposition"='dynamo dresden'; |
## Task
Generate a SQL query to answer the following question:
`What was the aggregate score for the game against Dynamo Dresden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"s... |
SELECT "opposition" FROM "liverpool" WHERE "round"='3rd'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opposing team in the 3rd round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "liverpool" (
"round" text,
"opposition" text,
"first_leg" text,
"second_leg" text,
"ag... |
SELECT "nation" FROM "medal_table" WHERE "gold"=0 AND "silver">1; |
## Task
Generate a SQL query to answer the following question:
`Which nation has 0 golds and more than 1 silver?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" r... |
SELECT MIN("total") FROM "medal_table" WHERE "gold"<3 AND "bronze">0 AND "silver">0; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" ... |
SELECT COUNT("silver") FROM "medal_table" WHERE "bronze"=3 AND "rank"='3' AND "total">6; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of silvers associated with 3 bronzes, a total over 6, and a rank of 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" tex... |
SELECT SUM("bronze") FROM "medal_table" WHERE "rank"='10' AND "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of bronzes associated with 0 golds and a rank of 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver... |
SELECT MAX("silver") FROM "medal_table" WHERE "gold"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the largest silver value associated with 0 golds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"... |
SELECT COUNT("bronze") FROM "medal_table" WHERE "nation"='netherlands'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronzes from the Netherlands?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"... |
SELECT AVG("earnings") FROM "lpga_tour_career_summary" WHERE "money_list_rank"='6' AND "year"<2004; |
## Task
Generate a SQL query to answer the following question:
`What is the average amount of earnings for years under 2004 and money list rankings of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"wins... |
SELECT MAX("wins") FROM "lpga_tour_career_summary" WHERE "average">73.02 AND "year">1999; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for years after 1999 with averages over 73.02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"wins" real,
... |
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='manchester united'; |
## Task
Generate a SQL query to answer the following question:
`Who was the away team when the home team Manchester United played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" tex... |
SELECT "attendance" FROM "fourth_round_proper" WHERE "tie_no"='16'; |
## Task
Generate a SQL query to answer the following question:
`When there was a tie of 16 what was the attendance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team... |
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='6'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the score when there was a Tie number of 6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team... |
SELECT "away_team" FROM "fourth_round_proper" WHERE "tie_no"='14'; |
## Task
Generate a SQL query to answer the following question:
`For the Tie number of 14 who was the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fourth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" te... |
SELECT "catalog" FROM "release_history" WHERE "format"='digipak album' AND "date"='june 29, 1999'; |
## Task
Generate a SQL query to answer the following question:
`What Catalog released on June 29, 1999 has a Digipak Album Format?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"for... |
SELECT "date" FROM "release_history" WHERE "catalog"='rr 8655-2'; |
## Task
Generate a SQL query to answer the following question:
`What is the release Date of Catalog RR 8655-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" text,
"label" text,
"format" text,
"catalo... |
SELECT "score" FROM "episode_7_1_march_2008" WHERE "group_song"='就是你' AND "index"='f2'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Group Song is 就是你, and when Index is F2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"grou... |
SELECT "score" FROM "episode_7_1_march_2008" WHERE "name"='nicole 赖淞凤'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Name is Nicole 赖淞凤?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"scor... |
SELECT "score" FROM "episode_7_1_march_2008" WHERE "song"='第九夜'; |
## Task
Generate a SQL query to answer the following question:
`What is Score, when Song is 第九夜?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text... |
SELECT "group_song" FROM "episode_7_1_march_2008" WHERE "song"='换季'; |
## Task
Generate a SQL query to answer the following question:
`What is Group Song, when Song is 换季?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" ... |
SELECT "group_song" FROM "episode_7_1_march_2008" WHERE "name"='alice 林芯糸'; |
## Task
Generate a SQL query to answer the following question:
`What is Group Song, when Name is Alice 林芯糸?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_7_1_march_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"... |
SELECT "surface" FROM "runner_up_16" WHERE "score"='2–6, 6–3, 6–4'; |
## Task
Generate a SQL query to answer the following question:
`On what surface was the match played with a score of 2–6, 6–3, 6–4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
... |
SELECT "surface" FROM "runner_up_16" WHERE "score"='4–6, 6–3, 6–1'; |
## Task
Generate a SQL query to answer the following question:
`On what surface was the match played with a score of 4–6, 6–3, 6–1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" text,
... |
SELECT "score" FROM "runner_up_16" WHERE "opponent_in_the_final"='iroda tulyaganova'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the opponent in the final was iroda tulyaganova?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" text,
"surface" tex... |
SELECT "tournament" FROM "runner_up_16" WHERE "opponent_in_the_final"='nadia petrova' AND "score"='6–3, 4–6, 6–1'; |
## Task
Generate a SQL query to answer the following question:
`Which tournament has an opponent in the final of nadia petrova and a score of 6–3, 4–6, 6–1??`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "runner_up_16" (
"date" text,
"tournament" ... |
SELECT "01_02" FROM "education" WHERE "03_04"='03-04'; |
## Task
Generate a SQL query to answer the following question:
`What is 01-02, when 03-04 is 03-04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02... |
SELECT "02_03" FROM "education" WHERE "school_year"='% learning in latvian'; |
## Task
Generate a SQL query to answer the following question:
`What is 02-03, when School Year is % Learning In Latvian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,... |
SELECT "03_04" FROM "education" WHERE "00_01"='67.4'; |
## Task
Generate a SQL query to answer the following question:
`What is 03-04, when 00-01 is 67.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_... |
SELECT "02_03" FROM "education" WHERE "06_07"='1198'; |
## Task
Generate a SQL query to answer the following question:
`What is 02-03, when 06-07 is 1198?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"02_... |
SELECT "04_05" FROM "education" WHERE "05_06"='205,189'; |
## Task
Generate a SQL query to answer the following question:
`What is 04-05, when 05-06 is 205,189?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"... |
SELECT "03_04" FROM "education" WHERE "95_96"='337,660'; |
## Task
Generate a SQL query to answer the following question:
`What is 03-04, when 95-96 is 337,660?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "education" (
"school_year" text,
"95_96" text,
"99_00" text,
"00_01" text,
"01_02" text,
"... |
SELECT "choreographer_s" FROM "week_8_july_30_2008" WHERE "style"='jazz'; |
## Task
Generate a SQL query to answer the following question:
`Who was the choreographer for the dance style of Jazz?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"choreograp... |
SELECT "music" FROM "week_8_july_30_2008" WHERE "results"='safe' AND "choreographer_s"='jason gilkison'; |
## Task
Generate a SQL query to answer the following question:
`Which music led to a safe result and was choreographed by Jason Gilkison?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" ... |
SELECT "couple" FROM "week_8_july_30_2008" WHERE "style"='contemporary'; |
## Task
Generate a SQL query to answer the following question:
`Which couple participated in the Contemporary style of dance?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"cho... |
SELECT "couple" FROM "week_8_july_30_2008" WHERE "results"='safe' AND "style"='paso doble'; |
## Task
Generate a SQL query to answer the following question:
`Which couple participated in the Paso Doble style and were safe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "week_8_july_30_2008" (
"couple" text,
"style" text,
"music" text,
"... |
SELECT "date" FROM "schedule" WHERE "attendance">'50,637' AND "week"=1; |
## Task
Generate a SQL query to answer the following question:
`What was the Date of the game held during Week 1, that had an Attendance greater than 50,637?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"o... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='november 26, 1978' AND "attendance">'26,248'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks had a game on November 26, 1978, and an attendance higher than 26,248?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent"... |
SELECT MIN("attendance") FROM "schedule" WHERE "week"=12; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest Attendance during Week 12?`
### 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,
"attendance" ... |
SELECT "tournament" FROM "singles_wins_6" WHERE "opponent_in_the_final"='yi jingqian'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the tournament that the final was played against Yi Jingqian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"... |
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "tournament"='taipei, taiwan' AND "date"='november 14, 1994'; |
## Task
Generate a SQL query to answer the following question:
`Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
... |
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "date"='october 14, 1996'; |
## Task
Generate a SQL query to answer the following question:
`On October 14, 1996 who was the opponent in the final?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponent_i... |
SELECT "score" FROM "singles_wins_6" WHERE "surface"='hard' AND "opponent_in_the_final"='yi jingqian'; |
## Task
Generate a SQL query to answer the following question:
`When playing against Yi Jingqian in the final on a hard surface what was the score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
... |
SELECT "opponent_in_the_final" FROM "singles_wins_6" WHERE "date"='november 14, 1994'; |
## Task
Generate a SQL query to answer the following question:
`Who was played against in the final on November 14, 1994?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_wins_6" (
"date" text,
"tournament" text,
"surface" text,
"opponen... |
SELECT COUNT("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "eliminated"='3'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of Entered when the eliminated number is 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"eliminated" text,
"wre... |
SELECT "eliminated" FROM "elimination_chamber_entrances_and_elimin" WHERE "entered"<4 AND "wrestler"='shawn michaels'; |
## Task
Generate a SQL query to answer the following question:
`What is the Eliminated when there are less than 4 entered and the wrestler was shawn michaels?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "elimination_chamber_entrances_and_elimin" (
... |
SELECT COUNT("frequency_per_hour") FROM "services" WHERE "line"='east london' AND "destination"='crystal palace'; |
## Task
Generate a SQL query to answer the following question:
`How many frequencies have a line of East London and destination of Crystal Palace?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" rea... |
SELECT "line" FROM "services" WHERE "operator"='london overground' AND "destination"='crystal palace'; |
## Task
Generate a SQL query to answer the following question:
`Which line has an operator of the London Overground and ends at the Crystal Palace?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" re... |
SELECT "weeks_on_top" FROM "see_also" WHERE "volume_issue"='28:26'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks on top was the song with a volume:issue of 28:26?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" ... |
SELECT "song" FROM "see_also" WHERE "weeks_on_top"='1' AND "volume_issue"='29:8'; |
## Task
Generate a SQL query to answer the following question:
`Which song was 1 week on top and had a volume:issue of 29:8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text... |
SELECT "song" FROM "see_also" WHERE "artist"='gino vannelli'; |
## Task
Generate a SQL query to answer the following question:
`Which song was by artist Gino Vannelli?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_date_s" text,
"weeks_on_top" text,
"song" text,
"a... |
SELECT "tournament" FROM "summary" WHERE "cuts_made"<7 AND "wins"=0 AND "top_25"<1; |
## Task
Generate a SQL query to answer the following question:
`What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"win... |
SELECT "9_00" FROM "thursday" WHERE "8_30"='my thursday night movie'; |
## Task
Generate a SQL query to answer the following question:
`What is 9:00, when 8:30 is "My Thursday Night Movie"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text... |
SELECT "9_30" FROM "thursday" WHERE "8_30"='bones (reruns)'; |
## Task
Generate a SQL query to answer the following question:
`What is 9:30, when 8:30 is "Bones (Reruns)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" text,
"9_30" text,
"10_00" text
);
### S... |
SELECT "8_30" FROM "thursday" WHERE "9_00"='the office (reruns)' AND "10_00"='law & order (reruns)'; |
## Task
Generate a SQL query to answer the following question:
`What is 8:30, when 9:00 is "The Office (Reruns)", and when 10:00 is "Law & Order (Reruns)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_0... |
SELECT "10_00" FROM "thursday" WHERE "9_30"='grey''s anatomy (reruns)' AND "8_00"='samantha who?'; |
## Task
Generate a SQL query to answer the following question:
`What is 10:00, when 9:30 is "Grey's Anatomy (Reruns)", and when 8:00 is "Samantha Who?"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "thursday" (
"8_00" text,
"8_30" text,
"9_00" ... |
SELECT COUNT("losses") FROM "advocates" WHERE "ties"=1 AND "poll_wins">3; |
## Task
Generate a SQL query to answer the following question:
`What are the number of losses that have Ties of 1 and 3 or more poll wins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "advocates" (
"advocate" text,
"wins" real,
"losses" real,
... |
SELECT MIN("poll_losses") FROM "advocates" WHERE "ties"=0 AND "poll_wins">1 AND "wins"<2; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest poll losses of the 0 ties, poll wins greater than 1 and wins less than 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "advocates" (
"advocate" text,
"wins" real,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.