output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("3rd_ru") FROM "by_country_tally" WHERE "4th_ru">0 AND "rank"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the least 3rd RU that is ranked less than 8 with a 4th RU greater than 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_country_tally" (
"rank" real,
"country" text,
"mi... |
SELECT "result" FROM "goals_for_senior_national_team" WHERE "competition"='2010 fifa world cup qualification' AND "date"='10 september 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goals_for_senior_national_team" (... |
SELECT "venue" FROM "goals_for_senior_national_team" WHERE "competition"='2010 fifa world cup qualification' AND "result"='won' AND "date"='14 june 2008'; |
## Task
Generate a SQL query to answer the following question:
`What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goals_for_senior_na... |
SELECT "competition" FROM "goals_for_senior_national_team" WHERE "date"='30 december 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is Competition, when Date is 30 December 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "goals_for_senior_national_team" (
"date" text,
"venue" text,
"score" text,
"resu... |
SELECT "place" FROM "first_round" WHERE "score"<71 AND "country"='zimbabwe'; |
## Task
Generate a SQL query to answer the following question:
`What is the Place when the score is less than 71, and Country is zimbabwe?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,... |
SELECT MIN("score") FROM "first_round" WHERE "country"='canada'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Score when the Country is canada?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to... |
SELECT "score" FROM "first_round" WHERE "player"='toru taniguchi'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when the Player is toru taniguchi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to... |
SELECT COUNT("game") FROM "schedule_and_results" WHERE "record"='25-24-11'; |
## Task
Generate a SQL query to answer the following question:
`What is the Game number when the Rangers have a Record of 25-24-11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text... |
SELECT "score" FROM "schedule_and_results" WHERE "march"=18; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game on March 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"reco... |
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='rocketsports racing' AND "best"='1:10.949'; |
## Task
Generate a SQL query to answer the following question:
`What is the qual 2 of team rocketsports racing, which has the best of 1:10.949?`
### 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_... |
SELECT "team" FROM "qualifying_results" WHERE "best"='1:10.998'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a 1:10.998 best?`
### 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
);
### S... |
SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:10.771'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the person with a 1:10.771 qual 2?`
### 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,... |
SELECT "qual_2" FROM "qualifying_results" WHERE "best"='1:10.949'; |
## Task
Generate a SQL query to answer the following question:
`What is the qual 2 with a 1:10.949 best?`
### 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... |
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='forsythe racing' AND "best"='1:09.515'; |
## Task
Generate a SQL query to answer the following question:
`What is the qual 2 of team Forsythe racing, which has a 1:09.515 best?`
### 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,
... |
SELECT "qual_1" FROM "qualifying_results" WHERE "best"='1:09.567'; |
## Task
Generate a SQL query to answer the following question:
`What is the qual 1 with a 1:09.567 best?`
### 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... |
SELECT MAX("points") FROM "the_2011_season" WHERE "equipment"='zabel-wsp' AND "position">7; |
## Task
Generate a SQL query to answer the following question:
`What were highest points received from someone using a zabel-wsp with a position greater than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "the_2011_season" (
"position" real,
"dr... |
SELECT MIN("attendance") FROM "schedule" WHERE "week"=15; |
## Task
Generate a SQL query to answer the following question:
`What's the lowest attendance recorded for week 15?`
### 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,
"attendan... |
SELECT "result" FROM "awards_nominations" WHERE "nominated_work"='marlene' AND "award"='olivier award'; |
## Task
Generate a SQL query to answer the following question:
`When Marlene was nominated for the Olivier Award, what was the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_nominations" (
"year" real,
"award" text,
"category" tex... |
SELECT "result" FROM "awards_nominations" WHERE "award"='bafta tv award'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the Bafta Tv award?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_nominations" (
"year" real,
"award" text,
"category" text,
"nominated_work" text,... |
SELECT AVG("pick") FROM "draft_picks" WHERE "college"='texas-san antonio'; |
## Task
Generate a SQL query to answer the following question:
`What is the pick of Texas-San Antonio?`
### 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,
"nationality" text,
"college" text... |
SELECT "player" FROM "draft_picks" WHERE "round">2 AND "pick">83; |
## Task
Generate a SQL query to answer the following question:
`Who is the player that has a round greater than 2 and a pick bigger than 83?`
### 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,
... |
SELECT "nationality" FROM "draft_picks" WHERE "college"='louisiana tech'; |
## Task
Generate a SQL query to answer the following question:
`What's the nationality of Louisiana Tech?`
### 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,
"nationality" text,
"college" t... |
SELECT "pick" FROM "draft_picks" WHERE "player"='ray hall'; |
## Task
Generate a SQL query to answer the following question:
`What number pick is Ray Hall?`
### 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,
"nationality" text,
"college" text
);
### S... |
SELECT "nationality" FROM "draft_picks" WHERE "pick">129; |
## Task
Generate a SQL query to answer the following question:
`What nationality has a pick greater than 129?`
### 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,
"nationality" text,
"colleg... |
SELECT MAX("grid") FROM "250cc_classification" WHERE "rider"='mika kallio'; |
## Task
Generate a SQL query to answer the following question:
`what is the grid when the rider is mika kallio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time" text,... |
SELECT "time" FROM "250cc_classification" WHERE "laps"<21 AND "manufacturer"='aprilia' AND "grid"<17 AND "rider"='thomas luthi'; |
## Task
Generate a SQL query to answer the following question:
`what is the time when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classificatio... |
SELECT "time" FROM "250cc_classification" WHERE "laps"<21 AND "grid">17; |
## Task
Generate a SQL query to answer the following question:
`what is the time when the laps is less than 21 and the grid is more than 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "250cc_classification" (
"rider" text,
"manufacturer" text,
... |
SELECT "partnering" FROM "doubles_12" WHERE "against"='greece'; |
## Task
Generate a SQL query to answer the following question:
`Who was partnering when nueza silva played against greece?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12" (
"edition" text,
"round" text,
"date" text,
"partnering" tex... |
SELECT "round" FROM "doubles_12" WHERE "against"='greece'; |
## Task
Generate a SQL query to answer the following question:
`What was the round when nueza silva played against greece?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12" (
"edition" text,
"round" text,
"date" text,
"partnering" tex... |
SELECT "opponents" FROM "doubles_12" WHERE "edition"='2006 fed cup europe/africa group ii' AND "against"='greece'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents during the 2006 fed cup europe/africa group ii against greece?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_12" (
"edition" text,
"round" text,
"dat... |
SELECT "tries_against" FROM "pool_3" WHERE "points_for"='207'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tries against for the team that has 207 points for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_3" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_... |
SELECT "team" FROM "pool_3" WHERE "points_for"='118'; |
## Task
Generate a SQL query to answer the following question:
`What team has a 118 Point for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_3" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,
... |
SELECT "team" FROM "pool_3" WHERE "points_against"='102'; |
## Task
Generate a SQL query to answer the following question:
`What team has 102 Points against?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_3" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" tex... |
SELECT "points_for" FROM "pool_3" WHERE "tries_against"='10'; |
## Task
Generate a SQL query to answer the following question:
`What is the Points for number of the team with a 10 Tries against number?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_3" (
"team" text,
"tries_for" text,
"tries_against" tex... |
SELECT "team" FROM "pool_3" WHERE "points_diff"='+119'; |
## Task
Generate a SQL query to answer the following question:
`What team has +119 Points diff?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pool_3" (
"team" text,
"tries_for" text,
"tries_against" text,
"try_diff" text,
"points_for" text,... |
SELECT "manufacturer" FROM "class_h_4_6_2" WHERE "year_made"='1923'; |
## Task
Generate a SQL query to answer the following question:
`What manufacturer has a year made of 1923?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_h_4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s" text,
"manufact... |
SELECT "quantity_made" FROM "class_h_4_6_2" WHERE "manufacturer"='4-6-2 β oooooo β pacific'; |
## Task
Generate a SQL query to answer the following question:
`What's the quantity made when the manufacturer was 4-6-2 β oooooo β pacific?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_h_4_6_2" (
"class" text,
"wheel_arrangement" text,
... |
SELECT "year_made" FROM "class_h_4_6_2" WHERE "wheel_arrangement"='4-6-2' AND "quantity_made"='11'; |
## Task
Generate a SQL query to answer the following question:
`What year had a quantity made of 11 and a wheel arrangement of 4-6-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_h_4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_... |
SELECT "quantity_preserved" FROM "class_h_4_6_2" WHERE "fleet_number_s"='700'; |
## Task
Generate a SQL query to answer the following question:
`What's the quantity preserved when the fleet number was 700?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "class_h_4_6_2" (
"class" text,
"wheel_arrangement" text,
"fleet_number_s"... |
SELECT "race" FROM "top_10_women" WHERE "nation"='kenya' AND "time"='30:27'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the race in Kenya with a time of 30:27?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_women" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,... |
SELECT "athlete" FROM "top_10_women" WHERE "time"='30:48'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the athlete with a time of 30:48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_women" (
"rank" text,
"time" text,
"athlete" text,
"nation" text,
"da... |
SELECT "race" FROM "top_10_women" WHERE "athlete"='lineth chepkurui'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the race when Lineth Chepkurui is the athlete?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_women" (
"rank" text,
"time" text,
"athlete" text,
"nation... |
SELECT "time" FROM "top_10_women" WHERE "nation"='kenya' AND "athlete"='lineth chepkurui'; |
## Task
Generate a SQL query to answer the following question:
`What is the time when the race was in Kenya and Lineth Chepkurui was the athlete?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_women" (
"rank" text,
"time" text,
"athlete" ... |
SELECT "country" FROM "made_the_cut" WHERE "to_par"='+4'; |
## Task
Generate a SQL query to answer the following question:
`What is the country for the player who had a To Par of +4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total"... |
SELECT "player" FROM "made_the_cut" WHERE "total"<284 AND "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What player from South Africa had a total less than 284?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" r... |
SELECT "to_par" FROM "made_the_cut" WHERE "year_s_won"='2001'; |
## Task
Generate a SQL query to answer the following question:
`For the year won of 2001, what is the To Par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "made_the_cut" (
"player" text,
"country" text,
"year_s_won" text,
"total" real,
"to_... |
SELECT "location_attendance" FROM "playoffs" WHERE "series"='4-3'; |
## Task
Generate a SQL query to answer the following question:
`what is the location attendance when the series is 4-3?`
### 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" te... |
SELECT "team" FROM "playoffs" WHERE "location_attendance"='boston garden' AND "series"='0-1'; |
## Task
Generate a SQL query to answer the following question:
`what is the team when the location attendace is boston garden and the series is 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" tex... |
SELECT MAX("game") FROM "playoffs" WHERE "team"='@boston' AND "series"='0-1'; |
## Task
Generate a SQL query to answer the following question:
`what is the highest game when the team is @boston and the series is 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,
"locati... |
SELECT "series" FROM "playoffs" WHERE "team"='@boston' AND "game"<3; |
## Task
Generate a SQL query to answer the following question:
`what is the series when the team is @boston and the game is smaller than 3?`
### 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,
"loc... |
SELECT "2001" FROM "singles_performance_timeline" WHERE "1996"='0 / 2'; |
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1996 is "0 / 2"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1992" text,
"1993" text,
"1994" text,
"199... |
SELECT "1998" FROM "singles_performance_timeline" WHERE "1992"='a' AND "tournament"='hamburg masters'; |
## Task
Generate a SQL query to answer the following question:
`What is 1998, when 1992 is "A", and when Tournament is "Hamburg Masters"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1992" text... |
SELECT "2001" FROM "singles_performance_timeline" WHERE "1994"='a' AND "tournament"='monte carlo masters'; |
## Task
Generate a SQL query to answer the following question:
`What is 2001, when 1994 is "A", and when Tournament is "Monte Carlo Masters"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1992" ... |
SELECT "1999" FROM "singles_performance_timeline" WHERE "2003"='a' AND "career_sr"='0 / 4'; |
## Task
Generate a SQL query to answer the following question:
`What is 1999, when 2003 is "A", and when Career SR is "0 / 4"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1992" text,
"1993" ... |
SELECT "2000" FROM "singles_performance_timeline" WHERE "tournament"='canada masters'; |
## Task
Generate a SQL query to answer the following question:
`What is 2000, when Tournament is "Canada Masters"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1992" text,
"1993" text,
"199... |
SELECT "country" FROM "third_round" WHERE "to_par"='+1' AND "score"='69-70-72=211'; |
## Task
Generate a SQL query to answer the following question:
`What country is the player ho had a To par of +1 and a score of 69-70-72=211 from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"countr... |
SELECT "place" FROM "third_round" WHERE "country"='south africa'; |
## Task
Generate a SQL query to answer the following question:
`What place did the player from South Africa finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_... |
SELECT "country" FROM "third_round" WHERE "player"='tom purtzer'; |
## Task
Generate a SQL query to answer the following question:
`What country is Tom Purtzer from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
### S... |
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"='+1' AND "player"='wally armstrong'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of united states player wally armstrong when he had a To par of +1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"cou... |
SELECT "score" FROM "third_round" WHERE "player"='wally armstrong'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of Wally Armstrong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round" (
"place" text,
"player" text,
"country" text,
"score" text,
"to_par" text
);
... |
SELECT "verb_meaning" FROM "dutch" WHERE "part_1"='lopen'; |
## Task
Generate a SQL query to answer the following question:
`what is the verb meaning when the part 1 is lopen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" te... |
SELECT "part_4" FROM "dutch" WHERE "verb_meaning"='to steal'; |
## Task
Generate a SQL query to answer the following question:
`what is the part 4 when the verb meaning is to steal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4"... |
SELECT "class" FROM "dutch" WHERE "part_2"='bond'; |
## Task
Generate a SQL query to answer the following question:
`what is the class when part 2 is bond?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_... |
SELECT "part_4" FROM "dutch" WHERE "class"='5'; |
## Task
Generate a SQL query to answer the following question:
`what is part 4 when the class is 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_mea... |
SELECT "part_1" FROM "dutch" WHERE "class"='7d'; |
## Task
Generate a SQL query to answer the following question:
`what is part 1 when the class is 7d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb_me... |
SELECT "part_2" FROM "dutch" WHERE "part_4"='gebonden'; |
## Task
Generate a SQL query to answer the following question:
`what is part 2 when part 4 is gebonden?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "dutch" (
"class" text,
"part_1" text,
"part_2" text,
"part_3" text,
"part_4" text,
"verb... |
SELECT "boiling_point" FROM "properties_of_common_solvents" WHERE "density"='1.092 g/ml'; |
## Task
Generate a SQL query to answer the following question:
`What's the boiling point when the density is 1.092 g/ml?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"bo... |
SELECT "solvent" FROM "properties_of_common_solvents" WHERE "boiling_point"='100β103 Β°c'; |
## Task
Generate a SQL query to answer the following question:
`What solvent has a boiling point of 100β103 Β°c?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"boiling_poi... |
SELECT "dielectric_constant" FROM "properties_of_common_solvents" WHERE "chemical_formula"='ch 3 -c(=o)oh'; |
## Task
Generate a SQL query to answer the following question:
`What's the Dielectric constant of ch 3 -c(=o)oh?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"boiling_po... |
SELECT "dipole_moment_d" FROM "properties_of_common_solvents" WHERE "density"='1.092 g/ml'; |
## Task
Generate a SQL query to answer the following question:
`What dipole moment has a density of 1.092 g/ml?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"boiling_poi... |
SELECT "dipole_moment_d" FROM "properties_of_common_solvents" WHERE "solvent"='ethyl acetate (etoac)'; |
## Task
Generate a SQL query to answer the following question:
`What's the dipole moment of ethyl acetate (etoac)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"boiling_... |
SELECT "boiling_point" FROM "properties_of_common_solvents" WHERE "solvent"='diethyl ether'; |
## Task
Generate a SQL query to answer the following question:
`what's the boiling point of diethyl ether?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "properties_of_common_solvents" (
"solvent" text,
"chemical_formula" text,
"boiling_point" t... |
SELECT "type" FROM "diesel_locomotives" WHERE "works_number"='75823'; |
## Task
Generate a SQL query to answer the following question:
`What is Type, when Works Number is 75823?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_nu... |
SELECT "date" FROM "diesel_locomotives" WHERE "type"='ds4-4-750' AND "works_number"='74409'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Type is DS4-4-750, and when Works Number is 74409?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text... |
SELECT "works_number" FROM "diesel_locomotives" WHERE "type"='rs-11' AND "number"='61'; |
## Task
Generate a SQL query to answer the following question:
`What is Works Number, when Type is RS-11, and when Number is 61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text,
"... |
SELECT "builder" FROM "diesel_locomotives" WHERE "date"='1925'; |
## Task
Generate a SQL query to answer the following question:
`What is Builder, when Date is 1925?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" ... |
SELECT "works_number" FROM "diesel_locomotives" WHERE "number"='55'; |
## Task
Generate a SQL query to answer the following question:
`What is Works Number, when Number is 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_num... |
SELECT "builder" FROM "diesel_locomotives" WHERE "date"='1953'; |
## Task
Generate a SQL query to answer the following question:
`What is Builder, when Date is 1953?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "diesel_locomotives" (
"number" text,
"builder" text,
"type" text,
"date" text,
"works_number" ... |
SELECT MIN("attendance") FROM "final_standings" WHERE "record"='5β5β0'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance is the lowest one that has a Record of 5β5β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" ... |
SELECT "date" FROM "final_standings" WHERE "record"='4β2β0'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 4β2β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"attendance" real,
... |
SELECT "record" FROM "final_standings" WHERE "visitor"='pittsburgh' AND "score"='4β0'; |
## Task
Generate a SQL query to answer the following question:
`Which Record has a Visitor of pittsburgh, and a Score of 4β0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "final_standings" (
"date" text,
"visitor" text,
"score" text,
"home" t... |
SELECT "away_team_score" FROM "round_of_14" WHERE "ground"='waverley park' AND "home_team"='collingwood'; |
## Task
Generate a SQL query to answer the following question:
`What was the away team score when Waverley Park was the ground and the home team was collingwood?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_14" (
"home_team" text,
"home... |
SELECT "home_team" FROM "round_of_14" WHERE "time"='8:00 pm' AND "home_team_score"='11.18 (84)'; |
## Task
Generate a SQL query to answer the following question:
`Who was the home team at 8:00 pm when the score was 11.18 (84)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_of_14" (
"home_team" text,
"home_team_score" text,
"away_team" t... |
SELECT "country" FROM "first_round" WHERE "score"=71; |
## Task
Generate a SQL query to answer the following question:
`From what country did someone score 71?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);... |
SELECT SUM("attendance") FROM "game_log" WHERE "record"='loss' AND "date"='march 16, 1990'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance sum of the game on March 16, 1990 with a loss record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"at_vs" text,
"opponent" text,
... |
SELECT "outcome" FROM "doubles_26_12_14" WHERE "date"='august 20, 1978'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match on August 20, 1978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_26_12_14" (
"outcome" text,
"date" text,
"tournament" text,
"surface" ... |
SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "pick"<6; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Pick smaller than 6?`
### 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 MAX("round") FROM "washington_redskins_draft_history" WHERE "overall"<6; |
## Task
Generate a SQL query to answer the following question:
`Which Round has an Overall smaller than 6?`
### 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" te... |
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='washington' AND "overall"=46; |
## Task
Generate a SQL query to answer the following question:
`Which Position has a College of washington, and an Overall of 46?`
### 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,
"ove... |
SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "position"='qb' AND "overall">6; |
## Task
Generate a SQL query to answer the following question:
`Which Round has a Position of qb, and an Overall larger than 6?`
### 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,
"overa... |
SELECT "date" FROM "third_round_proper" WHERE "away_team"='bury'; |
## Task
Generate a SQL query to answer the following question:
`What date was Bury the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"date" te... |
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='tottenham hotspur'; |
## Task
Generate a SQL query to answer the following question:
`What team was the home team when Tottenham Hotspur is the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_round_proper" (
"tie_no" text,
"home_team" text,
"score" te... |
SELECT "college" FROM "player_selections" WHERE "pick_num"=22; |
## Task
Generate a SQL query to answer the following question:
`What college did the #22 overall draft pick attend?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_selections" (
"rnd" text,
"pick_num" real,
"nfl_team" text,
"pos" text,
... |
SELECT SUM("pick_num") FROM "player_selections" WHERE "nfl_team"='carolina panthers' AND "college"='syracuse'; |
## Task
Generate a SQL query to answer the following question:
`What draft pick number attended syracuse and was drafted by the Carolina panthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_selections" (
"rnd" text,
"pick_num" real,
"... |
SELECT AVG("population") FROM "list_of_countries_by_2010_emissions_esti" WHERE "area_in_km_2">'9,826,675' AND "emission_person"<14.9; |
## Task
Generate a SQL query to answer the following question:
`If the area of a country is over 9,826,675 kilometers and a total of emissions per person less than 14.9, what's the average Population found?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABL... |
SELECT AVG("population") FROM "list_of_countries_by_2010_emissions_esti" WHERE "country"='mexico' AND "area_in_km_2">'1,972,550'; |
## Task
Generate a SQL query to answer the following question:
`What's the average population of Mexico if the area is 1,972,550 kilometers squared?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_countries_by_2010_emissions_esti" (
"country"... |
SELECT MIN("lead_margin") FROM "polling" WHERE "poll_source"='rasmussen reports/ fox news'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead Margin has a Poll Source of rasmussen reports/ fox news?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"poll_source" text,
"date_administered" text,
"democrat... |
SELECT "poll_source" FROM "polling" WHERE "date_administered"='october 30 β november 2, 2008'; |
## Task
Generate a SQL query to answer the following question:
`Which Poll Source has a Date administered of october 30 β november 2, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "polling" (
"poll_source" text,
"date_administered" text,
"... |
SELECT "site" FROM "schedule" WHERE "opponentnum"='northwestern'; |
## Task
Generate a SQL query to answer the following question:
`At which site was Northwestern an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" ... |
SELECT "result" FROM "schedule" WHERE "opponentnum"='indiana'; |
## Task
Generate a SQL query to answer the following question:
`What result did Indiana have when they were an opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.