output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "film_title_used_in_nomination" FROM "federal_republic_of_yugoslavia" WHERE "serbian_title"='бело одело'; |
## Task
Generate a SQL query to answer the following question:
`What is the Film title used in nomination of the Film with a Serbian title of бело одело?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "federal_republic_of_yugoslavia" (
"year_ceremony... |
SELECT "year_ceremony" FROM "federal_republic_of_yugoslavia" WHERE "film_title_used_in_nomination"='labyrinth'; |
## Task
Generate a SQL query to answer the following question:
`In what Year was Labyrinth nominated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "federal_republic_of_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"s... |
SELECT "high_assists" FROM "game_log" WHERE "date"='march 25'; |
## Task
Generate a SQL query to answer the following question:
`What is the High assists for march 25?`
### 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,
"hig... |
SELECT "score" FROM "game_log" WHERE "high_points"='donyell marshall (26)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score when Donyell Marshall (26) had the high points?`
### 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,
... |
SELECT MAX("game") FROM "game_log" WHERE "high_assists"='morris peterson (8)'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Game when Morris Peterson (8) had the high assists?`
### 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" t... |
SELECT "high_assists" FROM "game_log" WHERE "high_points"='jalen rose (22)'; |
## Task
Generate a SQL query to answer the following question:
`What is the High assists when jalen rose (22) had the high points?`
### 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,
... |
SELECT "high_assists" FROM "game_log" WHERE "record"='28–40'; |
## Task
Generate a SQL query to answer the following question:
`What is the High assists when the record was 28–40?`
### 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"... |
SELECT "brazil_scorers" FROM "brazil_national_team" WHERE "score"='3-3'; |
## Task
Generate a SQL query to answer the following question:
`Who were the Brazil scorers who scored 3-3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,... |
SELECT "brazil_scorers" FROM "brazil_national_team" WHERE "score"='6-0'; |
## Task
Generate a SQL query to answer the following question:
`Who is the Brazil scorer who scored 6-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
... |
SELECT "result" FROM "brazil_national_team" WHERE "score"='2-2'; |
## Task
Generate a SQL query to answer the following question:
`With a score of 2-2, what was the Result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "brazil_national_team" (
"date" text,
"result" text,
"score" text,
"brazil_scorers" text,
... |
SELECT "original_team" FROM "candidates" WHERE "hometown"='brooklyn, new york' AND "background"='comedienne'; |
## Task
Generate a SQL query to answer the following question:
`Which Original Team has a Hometown of Brooklyn, New York and a Background of Comedienne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"background" text,
"original_team... |
SELECT "background" FROM "candidates" WHERE "hometown"='los angeles, california'; |
## Task
Generate a SQL query to answer the following question:
`What is the Background of the contestant with a Hometown listed as Los Angeles, California?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"background" text,
"original_t... |
SELECT "background" FROM "candidates" WHERE "result"='07 fired in task 6 (2009-04-05)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Background of the contestant with a Result of 07 fired in task 6 (2009-04-05)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"background" text,
"original_te... |
SELECT "original_team" FROM "candidates" WHERE "hometown"='wrightsville, georgia'; |
## Task
Generate a SQL query to answer the following question:
`What is the Original Team of the contestant from Wrightsville, Georgia ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "candidates" (
"background" text,
"original_team" text,
"homet... |
SELECT "attendance" FROM "schedule" WHERE "opponent"='carolina panthers'; |
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Opponent of carolina panthers?`
### 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,
"atte... |
SELECT "date" FROM "schedule" WHERE "week"<11 AND "attendance"='54,094'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Week smaller than 11, and a Attendance of 54,094?`
### 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" t... |
SELECT AVG("episode_number") FROM "uk_ratings" WHERE "title"='sugar daddy'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the episode titled 'Sugar Daddy'?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "uk_ratings" (
"episode_number" real,
"title" text,
"original_airing_on_channel... |
SELECT "nation" FROM "medal_table" WHERE "gold">1 AND "silver"=4; |
## Task
Generate a SQL query to answer the following question:
`Which nations have more than 1 gold medal and 4 silver medals?`
### 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 MAX("attendance") FROM "schedule" WHERE "week"=7; |
## Task
Generate a SQL query to answer the following question:
`In Week 7, what is the highest attendance number?`
### 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,
"attendanc... |
SELECT "opponent" FROM "schedule" WHERE "week"=13; |
## Task
Generate a SQL query to answer the following question:
`In Week 13, who was the opponent?`
### 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" real
);
### S... |
SELECT "date" FROM "schedule" WHERE "week"=9; |
## Task
Generate a SQL query to answer the following question:
`What date did Week 9 begin?`
### 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" real
);
### SQL
Giv... |
SELECT "award" FROM "awards_and_nominations" WHERE "year"='2012'; |
## Task
Generate a SQL query to answer the following question:
`Which award was given in 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role" text,
"result" text
... |
SELECT "award" FROM "awards_and_nominations" WHERE "role"='elphaba' AND "year"='2009'; |
## Task
Generate a SQL query to answer the following question:
`Which award was given for the role of Elphaba in 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"role... |
SELECT "result" FROM "awards_and_nominations" WHERE "role"='ellie greenwich' AND "year"='2005'; |
## Task
Generate a SQL query to answer the following question:
`What was the result for the role of Ellie Greenwich in 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
... |
SELECT "award" FROM "awards_and_nominations" WHERE "result"='nominated' AND "production"='an officer and a gentleman'; |
## Task
Generate a SQL query to answer the following question:
`Which award was An Officer and a Gentleman nominated for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" text,
"r... |
SELECT "year" FROM "awards_and_nominations" WHERE "production"='wicked' AND "award"='green room awards'; |
## Task
Generate a SQL query to answer the following question:
`During what year was Wicked associated with the Green Room Awards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "awards_and_nominations" (
"year" text,
"award" text,
"production" t... |
SELECT "manufacturer" FROM "engine_roster" WHERE "locomotive_number"='ctn 46'; |
## Task
Generate a SQL query to answer the following question:
`What manufacturer makes locomotive number CTN 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion"... |
SELECT "type" FROM "engine_roster" WHERE "locomotive_number"='ctn 46'; |
## Task
Generate a SQL query to answer the following question:
`What type is locomotive number CTN 46?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion" text,
"m... |
SELECT "type" FROM "engine_roster" WHERE "locomotive_number"='ctn 1364'; |
## Task
Generate a SQL query to answer the following question:
`What type is locomotive CTN 1364?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engine_roster" (
"locomotive_number" text,
"model" text,
"type" text,
"propulsion" text,
"manufa... |
SELECT "cuts_made" FROM "summary" WHERE "wins"<3 AND "events"=23; |
## Task
Generate a SQL query to answer the following question:
`What cuts made has a wins less than 3 and 23 for the 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,
"top_10" real,... |
SELECT MIN("events") FROM "summary" WHERE "cuts_made"=17 AND "top_25"<8; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest events that have 17 as the cuts made, with a top-25 less than 8?`
### 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"... |
SELECT MIN("cuts_made") FROM "summary" WHERE "events"<4; |
## Task
Generate a SQL query to answer the following question:
`What are the lowest cuts made that have events less than 4?`
### 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,
"top_10" real,
... |
SELECT MAX("top_10") FROM "summary" WHERE "tournament"='u.s. open' AND "top_25">12; |
## Task
Generate a SQL query to answer the following question:
`What is the highest top-10 that has a u.s. open for the tournament, and a top-25 greater than 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "summary" (
"tournament" text,
"wins" r... |
SELECT COUNT("points") FROM "1_lyga" WHERE "loses">16 AND "goals_scored">44 AND "position"<13; |
## Task
Generate a SQL query to answer the following question:
`How many points are there with more losses than 16, more goals than 44, and a smaller position than 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1_lyga" (
"position" real,
"club... |
SELECT SUM("points") FROM "1_lyga" WHERE "goals_conceded"<51 AND "position">1 AND "draws"=7 AND "loses">5; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of the points with less goals conceded than 51, larger than position 1, has a draw of 7, and more losses than 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1_lyga" (
... |
SELECT "surface" FROM "titles" WHERE "score"='6–1, 3–0 ret.'; |
## Task
Generate a SQL query to answer the following question:
`Which has a Score of 6–1, 3–0 ret.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"score... |
SELECT "surface" FROM "titles" WHERE "date"='23 january 2011'; |
## Task
Generate a SQL query to answer the following question:
`Which Surface is on 23 january 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final" text,
"scor... |
SELECT "date" FROM "titles" WHERE "surface"='hard' AND "tournament"='wrexham , great britain'; |
## Task
Generate a SQL query to answer the following question:
`When has a Surface of hard, a Tournament of wrexham , great britain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"oppo... |
SELECT "surface" FROM "titles" WHERE "opponent_in_the_final"='stéphane robert'; |
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent in the final of stéphane robert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_i... |
SELECT "surface" FROM "titles" WHERE "score"='6–4, 0–6, 6–2'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Surface has a Score of 6–4, 0–6, 6–2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles" (
"date" text,
"tournament" text,
"surface" text,
"opponent_in_the_final"... |
SELECT "call_sign" FROM "radio" WHERE "branding"='cbc radio one'; |
## Task
Generate a SQL query to answer the following question:
`Which Call sign has a Branding of cbc radio one?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"own... |
SELECT "frequency" FROM "radio" WHERE "format"='country / news / sports'; |
## Task
Generate a SQL query to answer the following question:
`WHich Frequency has a Format of country / news / sports?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text... |
SELECT "format" FROM "radio" WHERE "frequency"='100.5 fm'; |
## Task
Generate a SQL query to answer the following question:
`Which Format has a Frequency of 100.5 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" tex... |
SELECT "frequency" FROM "radio" WHERE "branding"='country 600'; |
## Task
Generate a SQL query to answer the following question:
`Which Frequency has a Branding of country 600?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner... |
SELECT "format" FROM "radio" WHERE "frequency"='99.3 fm'; |
## Task
Generate a SQL query to answer the following question:
`WHich format has a Frequency of 99.3 fm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "radio" (
"frequency" text,
"call_sign" text,
"branding" text,
"format" text,
"owner" text... |
SELECT "class_aaa" FROM "individual" WHERE "class_aa"='hale center' AND "class_aaaaa"='del rio'; |
## Task
Generate a SQL query to answer the following question:
`What is the Class AA where Class AA is Hale Center and Class AAAAA is Del Rio?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"clas... |
SELECT "school_year" FROM "individual" WHERE "class_aaaa"='dickinson'; |
## Task
Generate a SQL query to answer the following question:
`What School Year has a Class AAAA of Dickinson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,... |
SELECT "class_aa" FROM "individual" WHERE "class_a"='anton' AND "class_aaa"='burnet'; |
## Task
Generate a SQL query to answer the following question:
`If the Class A is Anton and Class AAA is Burnet, what is Class AA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" text,
... |
SELECT "class_aa" FROM "individual" WHERE "class_aaaa"='schertz clemens' AND "school_year"='1987-88'; |
## Task
Generate a SQL query to answer the following question:
`If Class AAAA is Schertz Clemens and SChool Year is 1987-88, what is Class AA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"clas... |
SELECT "class_aaaaa" FROM "individual" WHERE "class_aaa"='atlanta' AND "class_aa"='weimar'; |
## Task
Generate a SQL query to answer the following question:
`Where Class AAA is Atlanta and Class AA is Weimar, what is Class AAAAA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "individual" (
"school_year" text,
"class_a" text,
"class_aa" t... |
SELECT "result" FROM "schedule" WHERE "week"=11; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on week 11?`
### 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,
"record" text,
... |
SELECT COUNT("attendance") FROM "schedule" WHERE "game_site"='rich stadium' AND "opponent"='miami dolphins' AND "week">2; |
## Task
Generate a SQL query to answer the following question:
`After week 2, how many people attended the game at Rich Stadium against the Miami Dolphins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opp... |
SELECT "attendance" FROM "schedule" WHERE "opponent"='san francisco 49ers'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance when the opponent is the San Francisco 49ers?`
### 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"... |
SELECT "result" FROM "schedule" WHERE "week">6 AND "opponent"='buffalo bills'; |
## Task
Generate a SQL query to answer the following question:
`What is the result when the week is greater than 6 and the Buffalo Bills are the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"date" text,
"oppo... |
SELECT "result" FROM "schedule" WHERE "attendance"='54,814'; |
## Task
Generate a SQL query to answer the following question:
`What is the result when the attendance is 54,814?`
### 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,
"attendanc... |
SELECT COUNT("week") FROM "schedule" WHERE "opponent"='new york jets'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of weeks when the New York Jets are the opponent?`
### 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,
"r... |
SELECT "result" FROM "schedule" WHERE "attendance"='56,906'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of the game when the attendance is 56,906?`
### 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 "song" FROM "episode_5_23_february_2008" WHERE "group_song"='ring ring ring' AND "score"='6.0 + 6.5 + 5.0 + 6.5 = 24.0'; |
## Task
Generate a SQL query to answer the following question:
`What Song has a Group Song of Ring Ring Ring and a Score of 6.0 + 6.5 + 5.0 + 6.5 = 24.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"n... |
SELECT "index" FROM "episode_5_23_february_2008" WHERE "song"='会呼吸的痛'; |
## Task
Generate a SQL query to answer the following question:
`What is Song's 会呼吸的痛 Index?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
... |
SELECT "song" FROM "episode_5_23_february_2008" WHERE "index"='f6'; |
## Task
Generate a SQL query to answer the following question:
`What Song's Index is F6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" text
);
... |
SELECT "group_song" FROM "episode_5_23_february_2008" WHERE "name"='shine 王幸儿'; |
## Task
Generate a SQL query to answer the following question:
`What Group Song of Shine 王幸儿?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" tex... |
SELECT "score" FROM "episode_5_23_february_2008" WHERE "song"='我等的人会是谁'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of 我等的人会是谁?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" tex... |
SELECT "name" FROM "episode_5_23_february_2008" WHERE "index"='f3'; |
## Task
Generate a SQL query to answer the following question:
`What is the Name of Index F3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_5_23_february_2008" (
"index" text,
"name" text,
"song" text,
"group_song" text,
"score" tex... |
SELECT "record" FROM "schedule_and_results" WHERE "february"=10; |
## Task
Generate a SQL query to answer the following question:
`What is the record after the game on Feb 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" text,
"score" text,
... |
SELECT MIN("february") FROM "schedule_and_results" WHERE "opponent"='boston bruins'; |
## Task
Generate a SQL query to answer the following question:
`What is the earliest day that had a game against the Boston Bruins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule_and_results" (
"game" real,
"february" real,
"opponent" t... |
SELECT SUM("solidat_c") FROM "type_metal_alloys_mentioned_in_the_uk_mo" WHERE "purpose"='display type, heavy duty jobs' AND "hardness_brinell"<33; |
## Task
Generate a SQL query to answer the following question:
`What is the sum of Solidat (c) that's purpose is display type, heavy duty jobs, and a hardness (brinell) is smaller than 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_metal_allo... |
SELECT SUM("solidat_c") FROM "type_metal_alloys_mentioned_in_the_uk_mo" WHERE "sn_sb_pct"='13/17' AND "liquidat_c">283; |
## Task
Generate a SQL query to answer the following question:
`When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_metal_alloys_mentioned_in_the_uk_mo" (
"sn_sb... |
SELECT COUNT("liquidat_c") FROM "type_metal_alloys_mentioned_in_the_uk_mo" WHERE "purpose"='dual (machine & hand composition)'; |
## Task
Generate a SQL query to answer the following question:
`How many Liquidat (c) have a purpose of dual (machine & hand composition)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "type_metal_alloys_mentioned_in_the_uk_mo" (
"sn_sb_pct" text,
... |
SELECT "record" FROM "schedule" WHERE "week"=10; |
## Task
Generate a SQL query to answer the following question:
`What was the record for the Chargers on Week 10?`
### 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,
"game_site"... |
SELECT "result" FROM "schedule" WHERE "week"=4; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game on week 4?`
### 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,
"game_site" text,... |
SELECT COUNT("week") FROM "schedule" WHERE "date"='september 17, 2000'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks did a game happen on September 17, 2000?`
### 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,
"gam... |
SELECT "result" FROM "schedule" WHERE "week"<16 AND "opponent"='san francisco 49ers'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game against San Francisco 49ers before week 16?`
### 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,
"... |
SELECT "semi_finalists" FROM "february" WHERE "runner_up"='lisa raymond'; |
## Task
Generate a SQL query to answer the following question:
`Who were semi-finalists in the event with a runner-up of Lisa Raymond?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"week_of" text,
"tier" text,
"winner" text,
"runn... |
SELECT "song" FROM "see_also" WHERE "weeks_on_top"=2 AND "artist"='david essex'; |
## Task
Generate a SQL query to answer the following question:
`Which song by David Essex spent 2 weeks on top of the charts?`
### 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" rea... |
SELECT "volume_issue" FROM "see_also" WHERE "weeks_on_top"<2 AND "artist"='george mccrae'; |
## Task
Generate a SQL query to answer the following question:
`What is the Volume:Issue number of the George McCrae song that spent less than 2 weeks on top of the charts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" te... |
SELECT "venue" FROM "defunct" WHERE "closed"='1990s'; |
## Task
Generate a SQL query to answer the following question:
`Which venues closed in the 1990s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
##... |
SELECT "location" FROM "defunct" WHERE "reason"='replaced'; |
## Task
Generate a SQL query to answer the following question:
`Which venues were closed because they were replaced?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
... |
SELECT "venue" FROM "defunct" WHERE "closed"='1996'; |
## Task
Generate a SQL query to answer the following question:
`Which venue closed in 1996?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
### SQL
... |
SELECT "reason" FROM "defunct" WHERE "closed"='1990s'; |
## Task
Generate a SQL query to answer the following question:
`What were the reasons that venues closed in the 1990s?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
... |
SELECT "reason" FROM "defunct" WHERE "venue"='belk gymnasium'; |
## Task
Generate a SQL query to answer the following question:
`Why did the Belk Gymnasium close?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "defunct" (
"venue" text,
"location" text,
"environment" text,
"closed" text,
"reason" text
);
##... |
SELECT "score" FROM "semi_finals" WHERE "home_team"='townsville crocodiles'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Score that has the Home team of townsville crocodiles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,... |
SELECT "venue" FROM "semi_finals" WHERE "away_team"='south dragons'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Venue that has the Away team of south dragons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" text,
"away... |
SELECT MIN("crowd") FROM "semi_finals" WHERE "away_team"='melbourne tigers'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Crowd that has the Away team of melbourne tigers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_finals" (
"date" text,
"home_team" text,
"score" tex... |
SELECT "away_team" FROM "semi_finals" WHERE "home_team"='south dragons' AND "score"='94-81'; |
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Away team that has the Home team of south dragons, and the Score of 94-81?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "semi_finals" (
"date" text,
"home_team" t... |
SELECT "position" FROM "nfl_draft" WHERE "round">3 AND "pick_num"=238; |
## Task
Generate a SQL query to answer the following question:
`Which position has a pick # of 238 and a round above 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
... |
SELECT "player" FROM "nfl_draft" WHERE "college"='vanderbilt'; |
## Task
Generate a SQL query to answer the following question:
`Which player went to Vanderbilt?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"round" real,
"pick_num" real,
"player" text,
"position" text,
"college" text
);
###... |
SELECT COUNT("grid") FROM "race" WHERE "time_retired"='+4 laps'; |
## Task
Generate a SQL query to answer the following question:
`How many grids had a Time/Retired of +4 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" ... |
SELECT COUNT("laps") FROM "race" WHERE "constructor"='toyota' AND "time_retired"='+13.409'; |
## Task
Generate a SQL query to answer the following question:
`How many laps had a constructor of toyota and a Time/Retired of +13.409?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"ti... |
SELECT "constructor" FROM "race" WHERE "laps">54 AND "time_retired"='+1 lap' AND "grid"=20; |
## Task
Generate a SQL query to answer the following question:
`What was the constructor when the laps were larger than 54, and the time/retired was +1 lap on a grid of 20?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"con... |
SELECT SUM("grid") FROM "race" WHERE "constructor"='renault' AND "laps"<4; |
## Task
Generate a SQL query to answer the following question:
`How many grids had a constructor of renault and less than 4 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_reti... |
SELECT "census_ranking" FROM "communities" WHERE "area_km_2"=57.06; |
## Task
Generate a SQL query to answer the following question:
`Which census ranking is 57.06 km big?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" real,
"ce... |
SELECT "status" FROM "communities" WHERE "area_km_2"<75.35 AND "official_name"='sussex'; |
## Task
Generate a SQL query to answer the following question:
`Which status is 75.35 km2 and is named sussex?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "communities" (
"official_name" text,
"status" text,
"area_km_2" real,
"population" re... |
SELECT "distance" FROM "1930_31_season_as_a_four_year_old" WHERE "winner_or_2nd"='waterline'; |
## Task
Generate a SQL query to answer the following question:
`What was the distance for the winner or 2nd Waterline?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_31_season_as_a_four_year_old" (
"result" text,
"race" text,
"distance" tex... |
SELECT "result" FROM "1930_31_season_as_a_four_year_old" WHERE "distance"='10f' AND "winner_or_2nd"='lampra'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for the distance of 10f, and a winner or 2nd of Lampra?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1930_31_season_as_a_four_year_old" (
"result" text,
"race" te... |
SELECT "1987" FROM "singles_performance_timeline" WHERE "1986"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 1987, when 1986 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" ... |
SELECT "1986" FROM "singles_performance_timeline" WHERE "1978"='a' AND "1979"='a' AND "1980"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 1986, when 1978 is "A", when 1979 is "A", and when 1980 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,... |
SELECT "1984" FROM "singles_performance_timeline" WHERE "1979"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 1984, when 1979 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" ... |
SELECT "1982" FROM "singles_performance_timeline" WHERE "1978"='a' AND "1985"='4r' AND "1991"='1r'; |
## Task
Generate a SQL query to answer the following question:
`What is 1982, when 1978 is "A", when 1985 is "4R", and when 1991 is "1R"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text... |
SELECT "1989" FROM "singles_performance_timeline" WHERE "1982"='sf'; |
## Task
Generate a SQL query to answer the following question:
`What is 1989, when 1982 is "SF"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
"1982" ... |
SELECT "1992" FROM "singles_performance_timeline" WHERE "1990"='grand slams'; |
## Task
Generate a SQL query to answer the following question:
`What is 1992, when 1990 is "Grand Slams"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"1978" text,
"1979" text,
"1980" text,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.