output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "score" FROM "goals_for_senior_national_team" WHERE "result"='5-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the Competition with a 5-0 Result?`
### 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,
"... |
SELECT "date" FROM "goals_for_senior_national_team" WHERE "result"='5-0' AND "score"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Competition with a Score of 4-0 and 5-0 Result?`
### 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,
"... |
SELECT "title" FROM "list_of_state_leaders_in_400_bc" WHERE "name"='yi'; |
## Task
Generate a SQL query to answer the following question:
`What is the title for YI?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_state_leaders_in_400_bc" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" t... |
SELECT "from" FROM "list_of_state_leaders_in_400_bc" WHERE "state"='song'; |
## Task
Generate a SQL query to answer the following question:
`What is the state song from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_state_leaders_in_400_bc" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house... |
SELECT "state" FROM "list_of_state_leaders_in_400_bc" WHERE "name"='yi'; |
## Task
Generate a SQL query to answer the following question:
`What is the state Yi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_state_leaders_in_400_bc" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_house" text,... |
SELECT "state" FROM "list_of_state_leaders_in_400_bc" WHERE "title"='king'; |
## Task
Generate a SQL query to answer the following question:
`What state has the king title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_state_leaders_in_400_bc" (
"state" text,
"type" text,
"name" text,
"title" text,
"royal_hou... |
SELECT "score" FROM "doubles_7_2_titles_5_runners_up" WHERE "partner"='arnaud clément'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the partner was arnaud clément?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"surface" text... |
SELECT "outcome" FROM "doubles_7_2_titles_5_runners_up" WHERE "partner"='kristof vliegen'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome when the partner was kristof vliegen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,
"surface" te... |
SELECT "surface" FROM "doubles_7_2_titles_5_runners_up" WHERE "outcome"='winner' AND "score"='7–5, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the match with winner as outcome and a score of 7–5, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"dat... |
SELECT "outcome" FROM "doubles_7_2_titles_5_runners_up" WHERE "partner"='christophe rochus' AND "date"='31 july 2005'; |
## Task
Generate a SQL query to answer the following question:
`What is the Outcome when christophe rochus was partner, on 31 july 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" text,... |
SELECT "opponents" FROM "doubles_7_2_titles_5_runners_up" WHERE "surface"='clay' AND "partner"='christophe rochus'; |
## Task
Generate a SQL query to answer the following question:
`What is the Opponents on a clay surface with christophe rochus as partner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" text,
"date" tex... |
SELECT "date" FROM "doubles_7_2_titles_5_runners_up" WHERE "partner"='christophe rochus' AND "score"='2–6, 7–6 (7–5) , 0–6'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date when christophe rochus was partner, and the score was 2–6, 7–6 (7–5) , 0–6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_7_2_titles_5_runners_up" (
"outcome" ... |
SELECT "city_town" FROM "members" WHERE "year_founded"=1860; |
## Task
Generate a SQL query to answer the following question:
`In what City/town was their institution founded in 1860?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution_name" text,
"city_town" text,
"state_province" text,
... |
SELECT "year_founded" FROM "members" WHERE "state_province"='pennsylvania' AND "institution_name"='waynesburg university'; |
## Task
Generate a SQL query to answer the following question:
`What year was Waynesburg University founded in Pennsylvania?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution_name" text,
"city_town" text,
"state_province" te... |
SELECT "total_enrollment" FROM "members" WHERE "institution_name"='howard payne university'; |
## Task
Generate a SQL query to answer the following question:
`What is Howard Payne University's total enrollment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "members" (
"institution_name" text,
"city_town" text,
"state_province" text,
"to... |
SELECT "to_par" FROM "european_tour_wins_7" WHERE "runner_s_up"='fredrik andersson hed'; |
## Task
Generate a SQL query to answer the following question:
`What is the To par when fredrik andersson hed was runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" t... |
SELECT "margin_of_victory" FROM "european_tour_wins_7" WHERE "runner_s_up"='rhys davies'; |
## Task
Generate a SQL query to answer the following question:
`What is the Margin of victory when rhys davies was runner-up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" ... |
SELECT "winning_score" FROM "european_tour_wins_7" WHERE "to_par"='−21'; |
## Task
Generate a SQL query to answer the following question:
`What is the Winning score when the To par was −21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"to... |
SELECT "date" FROM "european_tour_wins_7" WHERE "tournament"='wgc-accenture match play championship'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date for the wgc-accenture match play championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score... |
SELECT "margin_of_victory" FROM "european_tour_wins_7" WHERE "date"='27 feb 2011'; |
## Task
Generate a SQL query to answer the following question:
`What is the Margin of victory on 27 feb 2011?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_score" text,
"to_par"... |
SELECT "tournament" FROM "european_tour_wins_7" WHERE "winning_score"='65-67-68-67=267'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tournament when the winning score was 65-67-68-67=267?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "european_tour_wins_7" (
"date" text,
"tournament" text,
"winning_sc... |
SELECT "mission" FROM "missions" WHERE "apogee"='705 km'; |
## Task
Generate a SQL query to answer the following question:
`Which Mission has a Apogee of 705 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missions" (
"mission" text,
"date" text,
"launch_site" text,
"motor" text,
"apogee" text
);
... |
SELECT "motor" FROM "missions" WHERE "apogee"='713 km'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Motor has a Apogee of 713 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missions" (
"mission" text,
"date" text,
"launch_site" text,
"motor" text,
"apogee" tex... |
SELECT "mission" FROM "missions" WHERE "apogee"='707 km'; |
## Task
Generate a SQL query to answer the following question:
`What kind of Mission has a Apogee of 707 km?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missions" (
"mission" text,
"date" text,
"launch_site" text,
"motor" text,
"apogee" t... |
SELECT "apogee" FROM "missions" WHERE "mission"='maxus 3'; |
## Task
Generate a SQL query to answer the following question:
`Which Apogee has a Mission of maxus 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missions" (
"mission" text,
"date" text,
"launch_site" text,
"motor" text,
"apogee" text
);... |
SELECT "mission" FROM "missions" WHERE "date"='2003 apr 1'; |
## Task
Generate a SQL query to answer the following question:
`Which Mission is on 2003 apr 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "missions" (
"mission" text,
"date" text,
"launch_site" text,
"motor" text,
"apogee" text
);
### SQ... |
SELECT "ranking" FROM "season_ratings" WHERE "ep_num"<24 AND "rating"='25.7'; |
## Task
Generate a SQL query to answer the following question:
`What was the ranking for the episode number before 24 that had a rating of 25.7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_ratings" (
"season" text,
"ep_num" real,
"seas... |
SELECT "viewers_households_in_millions" FROM "season_ratings" WHERE "season_finale"='march 12, 1979'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the season finale on March 12, 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_ratings" (
"season" text,
"ep_num" real,
"season_premiere... |
SELECT "rating" FROM "season_ratings" WHERE "season"='season 10'; |
## Task
Generate a SQL query to answer the following question:
`What is the rating of the season 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_ratings" (
"season" text,
"ep_num" real,
"season_premiere" text,
"season_finale" text,
... |
SELECT "rating" FROM "season_ratings" WHERE "viewers_households_in_millions"='18.17'; |
## Task
Generate a SQL query to answer the following question:
`What was the rating of the season that had 18.17 million household viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_ratings" (
"season" text,
"ep_num" real,
"season_pr... |
SELECT COUNT("total") FROM "medal_table" WHERE "bronze"=2; |
## Task
Generate a SQL query to answer the following question:
`How many totals have 2 for the bronze?`
### 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" real,
"to... |
SELECT MIN("silver") FROM "medal_table" WHERE "bronze"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the smallest silver that has a bronze less than 0?`
### 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 "college" FROM "round_1" WHERE "pick"=5; |
## Task
Generate a SQL query to answer the following question:
`What college received Pick 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
);
... |
SELECT MAX("pick") FROM "round_1" WHERE "college"='united states international university'; |
## Task
Generate a SQL query to answer the following question:
`For the United States International University, what was the highest pick number allowed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_1" (
"pick" real,
"player" text,
"coun... |
SELECT "date" FROM "season_schedule" WHERE "week"=2; |
## Task
Generate a SQL query to answer the following question:
`what was the date of the game on week 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance"... |
SELECT "subj_pres" FROM "strong_verb_vowel_alternation_table" WHERE "plur_pret"='u' AND "sing_pret"='ou' AND "sing_pres"='û'; |
## Task
Generate a SQL query to answer the following question:
`What is the subjunctive present that is associated with a plural preterite of u, a singular preterite of ou, and a singular present of û?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st... |
SELECT "plur_pres" FROM "strong_verb_vowel_alternation_table" WHERE "past_part"='e' AND "inf_stem"='e'; |
## Task
Generate a SQL query to answer the following question:
`What is the plural present that has a past participle of e and an infinitive stem of e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "strong_verb_vowel_alternation_table" (
"inf_stem" ... |
SELECT "inf_stem" FROM "strong_verb_vowel_alternation_table" WHERE "subj_pres"='ou'; |
## Task
Generate a SQL query to answer the following question:
`What is the infinitive stem that has a subjunctive present of ou?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "strong_verb_vowel_alternation_table" (
"inf_stem" text,
"sing_pres" te... |
SELECT "inf_stem" FROM "strong_verb_vowel_alternation_table" WHERE "subj_pres"='a' AND "plur_pret"='uo'; |
## Task
Generate a SQL query to answer the following question:
`What is the infinitive stem that is associated with a subjunctive present of a and a plural preterite of uo?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "strong_verb_vowel_alternation_t... |
SELECT "sing_pres" FROM "strong_verb_vowel_alternation_table" WHERE "sing_pret"='ou' AND "subj_pres"='ie'; |
## Task
Generate a SQL query to answer the following question:
`What is the singular present that is associated with a singular preterite of ou and a subjunctive present of ie?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "strong_verb_vowel_alternati... |
SELECT "plur_pret" FROM "strong_verb_vowel_alternation_table" WHERE "subj_pret"='ü' AND "inf_stem"='e + l/r + cons.'; |
## Task
Generate a SQL query to answer the following question:
`What is the plural preterite that is associated with a subjunctive preterite of ü and has an infinitive stem of e + l/r + cons.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "strong_verb... |
SELECT "history" FROM "vessels" WHERE "built">1997 AND "name"='speedrunner iv (ssc4)'; |
## Task
Generate a SQL query to answer the following question:
`What is the history behind the vessel Speedrunner IV (SSC4) built after 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vessels" (
"name" text,
"built" real,
"tonnage" text,
... |
SELECT MAX("built") FROM "vessels" WHERE "name"='queen nefertiti (pegasus two)'; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year that Queen Nefertiti (pegasus two) was built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vessels" (
"name" text,
"built" real,
"tonnage" text,
"ya... |
SELECT "history" FROM "vessels" WHERE "name"='speedrunner iii (ssc3)'; |
## Task
Generate a SQL query to answer the following question:
`What is the history behind Speedrunner III (SSC3)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "vessels" (
"name" text,
"built" real,
"tonnage" text,
"yard_no" real,
"history"... |
SELECT "opponent" FROM "schedule" WHERE "date"='november 8, 1981'; |
## Task
Generate a SQL query to answer the following question:
`What was the opponent on november 8, 1981?`
### 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... |
SELECT MAX("time_seconds") FROM "track_records" WHERE "nation_athlete_s"='sylke otto - germany'; |
## Task
Generate a SQL query to answer the following question:
`What is the longest Time (seconds), when the Nation - athlete(s) is Sylke Otto - Germany?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_records" (
"sport" text,
"record" text,
... |
SELECT "date" FROM "track_records" WHERE "sport"='luge - men''s doubles' AND "record"='start'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Sport is luge - men's doubles, and when the Record is, "start"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_records" (
"sport" text,
"record" text,... |
SELECT "nation_athlete_s" FROM "track_records" WHERE "sport"='luge - men''s singles' AND "record"='track'; |
## Task
Generate a SQL query to answer the following question:
`What is the Nation - athlete(s), when the Sport is luge - men's singles, and when the Record is, "track"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "track_records" (
"sport" text,
... |
SELECT "date" FROM "track_records" WHERE "record"='track' AND "time_seconds">43.564 AND "sport"='luge - women''s singles'; |
## Task
Generate a SQL query to answer the following question:
`What is the Date, when the Record is, "track", when the Time (seconds) is longer than 43.564, and when the Sport is luge - women's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "... |
SELECT MAX("z_p") FROM "complete_list_of_the_22_mononuclidic_ele" WHERE "element"='arsenic' AND "n_n">42; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Z (p) when arsenic is the element, and the N (n) is more than 42`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_list_of_the_22_mononuclidic_ele" (
"element"... |
SELECT AVG("z_p") FROM "complete_list_of_the_22_mononuclidic_ele" WHERE "n_n"<30 AND "element"='scandium'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest Z (p) when the N (n) is less than 30, and scandium is the element?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_list_of_the_22_mononuclidic_ele" (
"elemen... |
SELECT "isotopic_mass_u" FROM "complete_list_of_the_22_mononuclidic_ele" WHERE "nuclide"='89 y'; |
## Task
Generate a SQL query to answer the following question:
`What is the isotopic mass (u) when the nuclide is 89 y?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_list_of_the_22_mononuclidic_ele" (
"element" text,
"nuclide" text,
"z... |
SELECT "element" FROM "complete_list_of_the_22_mononuclidic_ele" WHERE "nuclide"='55 mn'; |
## Task
Generate a SQL query to answer the following question:
`What is the Element when the Nuclide is 55 mn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "complete_list_of_the_22_mononuclidic_ele" (
"element" text,
"nuclide" text,
"z_p" real,... |
SELECT "venue" FROM "england_in_australia_1911_12" WHERE "date"='23,24,26,27,28,29 feb, 1 mar 1912'; |
## Task
Generate a SQL query to answer the following question:
`What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"date" text,
"home_captain" text,
"away... |
SELECT "date" FROM "england_in_australia_1911_12" WHERE "venue"='melbourne cricket ground' AND "result"='eng by inns&225 runs'; |
## Task
Generate a SQL query to answer the following question:
`What is Date, when Venue is Melbourne Cricket Ground, and when Result is Eng By Inns&225 Runs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"date" text... |
SELECT "result" FROM "england_in_australia_1911_12" WHERE "venue"='sydney cricket ground' AND "date"='23,24,26,27,28,29 feb, 1 mar 1912'; |
## Task
Generate a SQL query to answer the following question:
`What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"... |
SELECT "away_captain" FROM "england_in_australia_1911_12" WHERE "date"='30 dec, 1,2,3 jan 1911/2'; |
## Task
Generate a SQL query to answer the following question:
`What is Away Captain, when Date is 30 Dec, 1,2,3 Jan 1911/2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"date" text,
"home_captain" text,
"away_c... |
SELECT "venue" FROM "england_in_australia_1911_12" WHERE "date"='23,24,26,27,28,29 feb, 1 mar 1912'; |
## Task
Generate a SQL query to answer the following question:
`What is Venue, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"date" text,
"home_captain" text,
"away... |
SELECT "home_captain" FROM "england_in_australia_1911_12" WHERE "date"='23,24,26,27,28,29 feb, 1 mar 1912'; |
## Task
Generate a SQL query to answer the following question:
`What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "england_in_australia_1911_12" (
"date" text,
"home_captain" text,
... |
SELECT "catalog" FROM "release_history" WHERE "region"='uk' AND "label"='razor records'; |
## Task
Generate a SQL query to answer the following question:
`What is Catalog, when the Region is UK, and when Label is Razor Records?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
... |
SELECT MAX("date") FROM "release_history" WHERE "label"='captain oi! records'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest Date, when Label is Captain Oi! Records?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" te... |
SELECT "region" FROM "release_history" WHERE "date"=2004; |
## Task
Generate a SQL query to answer the following question:
`What is Region, when Date is 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"region" text,
"date" real,
"label" text,
"format" text,
"catalog" text
);
#... |
SELECT "catalog" FROM "release_history" WHERE "format"='cd' AND "region"='us' AND "date"<2004 AND "label"='taang! records'; |
## Task
Generate a SQL query to answer the following question:
`What is Catalog, when Format is CD, when Region is US, when Date is before 2004, and when Label is Taang! Records?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "release_history" (
"reg... |
SELECT MAX("top_division_titles") FROM "meistriliiga_clubs_2013" WHERE "club"='tammeka'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of top division titles featuring the tammeka club?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "meistriliiga_clubs_2013" (
"club" text,
"position_in_2012"... |
SELECT MAX("top_division_titles") FROM "meistriliiga_clubs_2013" WHERE "position_in_2012"='10th'; |
## Task
Generate a SQL query to answer the following question:
`What is the largest number of top division titles with a 2012 position of 10th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "meistriliiga_clubs_2013" (
"club" text,
"position_in_201... |
SELECT COUNT("number_of_seasons_in_meistriliiga") FROM "meistriliiga_clubs_2013" WHERE "club"='kuressaare' AND "first_season_in_top_division">2000; |
## Task
Generate a SQL query to answer the following question:
`How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "meistriliiga_clubs_... |
SELECT "name" FROM "judges" WHERE "law_school_attended"='columbia law school' AND "appointed"=2004; |
## Task
Generate a SQL query to answer the following question:
`Who attended Columbia law school and was appointed in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "judges" (
"name" text,
"appointed" real,
"term_expiration" real,
"appoin... |
SELECT SUM("term_expiration") FROM "judges" WHERE "appointing_governor"='george pataki, republican' AND "appointed">2004; |
## Task
Generate a SQL query to answer the following question:
`Which Term expiration has an Appointing Governor of george pataki, republican, and an Appointed larger than 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "judges" (
"name" text,
... |
SELECT "law_school_attended" FROM "judges" WHERE "appointed">2004 AND "name"='judge sheila abdus-salaam'; |
## Task
Generate a SQL query to answer the following question:
`Which law school did judge sheila abdus-salaam attend, who was appointed in 2004?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "judges" (
"name" text,
"appointed" real,
"term_expir... |
SELECT "races" FROM "career_statistics" WHERE "top_5">2 AND "avg_start"=6.5; |
## Task
Generate a SQL query to answer the following question:
`What is the number of races having top 5s over 2 and average starts of 6.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"races" real,
"wins" rea... |
SELECT MIN("avg_finish") FROM "career_statistics" WHERE "top_5"<0; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest average finish having top 5s of 0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_statistics" (
"year" text,
"races" real,
"wins" real,
"top_5" real,
"... |
SELECT "volume_issue" FROM "see_also" WHERE "weeks_on_top">1 AND "artist"='peter cetera'; |
## Task
Generate a SQL query to answer the following question:
`What Volume:Issue that has Peter Cetera as the artist and was on top for longer than 1 week?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"volume_issue" text,
"issue_dat... |
SELECT MAX("weeks_on_top") FROM "see_also" WHERE "artist"='bruce hornsby and the range'; |
## Task
Generate a SQL query to answer the following question:
`What is the longest weeks on top when the Artist was Bruce Hornsby and the Range?`
### 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,
... |
SELECT "score" FROM "fifth_round_proper" WHERE "attendance"='arsenal win 4-2 on penalties'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of the game with arsenal win 4-2 on penalties in the attendance field?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team... |
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='3'; |
## Task
Generate a SQL query to answer the following question:
`What team was the Away team when the Tie no was 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" ... |
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='burnley'; |
## Task
Generate a SQL query to answer the following question:
`What is the Tie no when the away team was Burnley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" ... |
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='sheffield united'; |
## Task
Generate a SQL query to answer the following question:
`What shows for Tie no when Sheffield United was the Away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
... |
SELECT COUNT("rank") FROM "overall" WHERE "silver"=1 AND "bronze"=3 AND "total"<8; |
## Task
Generate a SQL query to answer the following question:
`What rank is the team with 1 silver, 3 bronze and a total of less than 8 medals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overall" (
"rank" real,
"nation" text,
"gold" real,
... |
SELECT SUM("balls_faced") FROM "australia" WHERE "average"=39.13 AND "runs_scored">313; |
## Task
Generate a SQL query to answer the following question:
`Which Balls Faced has a Average of 39.13 and Runs Scored larger than 313?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" real... |
SELECT "name" FROM "australia" WHERE "average"=48.83; |
## Task
Generate a SQL query to answer the following question:
`Which Name has an Average of 48.83?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_faced" real,
"average" re... |
SELECT AVG("s_r") FROM "australia" WHERE "average"=39.13 AND "balls_faced">318; |
## Task
Generate a SQL query to answer the following question:
`Which average S.R. has an Average of 39.13 and Balls Faced larger than 318?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" re... |
SELECT SUM("s_r") FROM "australia" WHERE "runs_scored"=161 AND "average">26.83; |
## Task
Generate a SQL query to answer the following question:
`How many S.R. that has Runs Scored of 161 and an Average larger than 26.83?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" re... |
SELECT MIN("average") FROM "australia" WHERE "s_r"=70.43 AND "runs_scored"<293; |
## Task
Generate a SQL query to answer the following question:
`What kind of Average has a S.R. of 70.43 and Runs Scored smaller than 293?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" rea... |
SELECT "s_r" FROM "australia" WHERE "average"<23.63 AND "runs_scored"=49; |
## Task
Generate a SQL query to answer the following question:
`Which S.R. has a Average smaller than 23.63 Runs Scored of 49?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australia" (
"name" text,
"innings" real,
"runs_scored" real,
"balls_... |
SELECT "acquisition_via" FROM "h" WHERE "number"<22 AND "season"='2002'; |
## Task
Generate a SQL query to answer the following question:
`What is the Acquisition that has less than 22, in the 2002 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"name" text,
"position" text,
"number" real,
"season" text,
... |
SELECT "number" FROM "h" WHERE "acquisition_via"='import' AND "season"='2002'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the acquisition of import in the 2002 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"name" text,
"position" text,
"number" real,
"season" text,... |
SELECT "name" FROM "h" WHERE "season"='2002' AND "acquisition_via"='free agency'; |
## Task
Generate a SQL query to answer the following question:
`What is the name from the 2002 season, and acquired via free agency?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"name" text,
"position" text,
"number" real,
"season" text... |
SELECT "name" FROM "h" WHERE "acquisition_via"='import' AND "number">22; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the player acquired via import and larger than 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "h" (
"name" text,
"position" text,
"number" real,
"season" te... |
SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='abraham j. cuddeback'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"... |
SELECT "office" FROM "1876_state_election_results" WHERE "greenback_ticket"='richard m. griffin'; |
## Task
Generate a SQL query to answer the following question:
`Which office was Richard M. Griffin vying for on the Greenback ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"democratic_ticket"... |
SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"demo... |
SELECT "prohibition_ticket" FROM "1876_state_election_results" WHERE "greenback_ticket"='thomas armstrong'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the prohibition ticket when the Greenback ticket had Thomas Armstrong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"democra... |
SELECT "republican_ticket" FROM "1876_state_election_results" WHERE "office"='inspector of state prisons'; |
## Task
Generate a SQL query to answer the following question:
`Who was on the Republican ticket for the office of Inspector of state prisons?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"democratic... |
SELECT "office" FROM "1876_state_election_results" WHERE "prohibition_ticket"='henry hagner'; |
## Task
Generate a SQL query to answer the following question:
`What office did Henry Hagner run for on the prohibition ticket?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1876_state_election_results" (
"office" text,
"democratic_ticket" text,
... |
SELECT COUNT("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"=0 AND "total"=3 AND "15_inch"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of 13.5 inch/1400 lb that has a 0 13.5 inch/1250 lb; 3 for a total and a 15 inch less than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "hits_on_german_ships"... |
SELECT "home" FROM "december" WHERE "record"='16-8'; |
## Task
Generate a SQL query to answer the following question:
`What is the home of the team with a 16-8 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scor... |
SELECT "date" FROM "december" WHERE "score"='96-89'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the game that ended with a score of 96-89?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "attendance" FROM "december" WHERE "visitor"='indiana'; |
## Task
Generate a SQL query to answer the following question:
`How many people went to the game with Indiana visiting?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leadi... |
SELECT "date" FROM "december" WHERE "home"='cleveland' AND "record"='20-8'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of the Cleveland home game with a 20-8 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
... |
SELECT "score" FROM "december" WHERE "home"='new jersey'; |
## Task
Generate a SQL query to answer the following question:
`What is the score of the New Jersey home game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.