output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "source" FROM "opinion_polls" WHERE "zares"='8.6%';
## Task Generate a SQL query to answer the following question: `What is the source for Zares at 8.6%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "de_sus" text, "zares" text, "nlpd" text ); ###...
SELECT "source" FROM "opinion_polls" WHERE "date"='may 25–27';
## Task Generate a SQL query to answer the following question: `What is the source corresponding to a date of May 25–27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "source" text, "date" text, "de_sus" text, "zares" text, ...
SELECT "song" FROM "see_also" WHERE "artist"='terence trent d''arby';
## Task Generate a SQL query to answer the following question: `What song is done by Terence Trent D'Arby?` ### 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" real, "song" text, ...
SELECT "result" FROM "schedule" WHERE "date"='october 27, 2002';
## Task Generate a SQL query to answer the following question: `What was the Result on October 27, 2002?` ### 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 "score" FROM "international_goals" WHERE "venue"='riyadh, saudi arabia';
## Task Generate a SQL query to answer the following question: `in riyadh, saudi arabia, what is the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "compet...
SELECT MIN("pocona_municipality_pct") FROM "the_people" WHERE "puerto_villarroel_municipality_pct"<14.6 AND "chimor_municipality_pct"=5.1 AND "entre_r_os_municipality_pct"<0.9;
## Task Generate a SQL query to answer the following question: `Which Pocona Municipality (%) is the lowest one that has a Puerto Villarroel Municipality (%) smaller than 14.6, and a Chimoré Municipality (%) of 5.1, and an Entre Ríos Municipality (%) smaller than 0.9?` ### Database Schema This query will run on a dat...
SELECT MIN("puerto_villarroel_municipality_pct") FROM "the_people" WHERE "ethnic_group"='not indigenous' AND "totora_municipality_pct"<4.4;
## Task Generate a SQL query to answer the following question: `Which Puerto Villarroel Municipality (%) is the lowest one that has an Ethnic group of not indigenous, and a Totora Municipality (%) smaller than 4.4?` ### Database Schema This query will run on a database whose schema is represented in this string: CRE...
SELECT SUM("pocona_municipality_pct") FROM "the_people" WHERE "puerto_villarroel_municipality_pct">14.6 AND "pojo_municipality_pct"<88.5;
## Task Generate a SQL query to answer the following question: `Which Pocona Municipality (%) has a Puerto Villarroel Municipality (%) larger than 14.6, and a Pojo Municipality (%) smaller than 88.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_...
SELECT MAX("totora_municipality_pct") FROM "the_people" WHERE "chimor_municipality_pct"=5.1 AND "pocona_municipality_pct"<0.2;
## Task Generate a SQL query to answer the following question: `Which Totora Municipality (%) is the highest one that has a Chimoré Municipality (%) of 5.1, and a Pocona Municipality (%) smaller than 0.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE ...
SELECT AVG("pos") FROM "camping_world_200" WHERE "car_num"<18 AND "driver"='mike skinner';
## Task Generate a SQL query to answer the following question: `Which Pos has a Car # smaller than 18, and a Driver of mike skinner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, ...
SELECT "team" FROM "camping_world_200" WHERE "pos">3 AND "make"='toyota' AND "car_num"<59 AND "driver"='mike skinner';
## Task Generate a SQL query to answer the following question: `Which Team has a Pos larger than 3, and a Make of toyota, and a Car # smaller than 59, and a Driver of mike skinner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "camping_world_200" ( ...
SELECT SUM("pos") FROM "camping_world_200" WHERE "team"='roush fenway racing' AND "car_num"=99;
## Task Generate a SQL query to answer the following question: `Which Pos has a Team of roush fenway racing, and a Car # of 99?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "mak...
SELECT AVG("car_num") FROM "camping_world_200" WHERE "make"='toyota' AND "pos"=7;
## Task Generate a SQL query to answer the following question: `Which Car # has a Make of toyota, and a Pos of 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "te...
SELECT "pos" FROM "camping_world_200" WHERE "team"='germian racing';
## Task Generate a SQL query to answer the following question: `Which Pos has a Team of germian racing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "camping_world_200" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text )...
SELECT "opponent" FROM "playoffs" WHERE "score"='2–6';
## Task Generate a SQL query to answer the following question: `Which Opponent has a Score of 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL G...
SELECT MAX("game") FROM "playoffs" WHERE "series"='flyers win 3–0';
## Task Generate a SQL query to answer the following question: `Which Game has a Series of flyers win 3–0? Question 3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series...
SELECT "series" FROM "playoffs" WHERE "date"='april 18';
## Task Generate a SQL query to answer the following question: `Which Series is on april 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "opponent" text, "score" text, "series" text ); ### SQL Given t...
SELECT "date" FROM "game_log" WHERE "score"='9-2';
## Task Generate a SQL query to answer the following question: `Name the date with score of 9-2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record"...
SELECT MAX("points") FROM "liberec" WHERE "nationality"='aut' AND "name"='thomas morgenstern';
## Task Generate a SQL query to answer the following question: `Which Points is the highest one that has a Nationality of aut, and a Name of thomas morgenstern?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "liberec" ( "rank" real, "name" text, ...
SELECT "name" FROM "liberec" WHERE "2nd_m">128.5 AND "points"=260.8;
## Task Generate a SQL query to answer the following question: `Which Name has a 2nd (m) larger than 128.5, and Points of 260.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "liberec" ( "rank" real, "name" text, "nationality" text, "1st_m" re...
SELECT SUM("capacity_mw") FROM "completed_onshore_wind_farms" WHERE "size_mw"='0.85' AND "wind_farm"='carrigh' AND "turbines">3;
## Task Generate a SQL query to answer the following question: `What is the sum of the capacities for Carrigh wind warm that has a size of 0.85 MW and more than 3 turbines?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed_onshore_wind_farms" (...
SELECT "size_mw" FROM "completed_onshore_wind_farms" WHERE "turbines">19 AND "turbine_vendor"='enercon' AND "county"='wexford';
## Task Generate a SQL query to answer the following question: `What is the size of the windfarm in wexford that has more than 19 turbines and a vendor of Enercon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed_onshore_wind_farms" ( "wind_...
SELECT "turbine_vendor" FROM "completed_onshore_wind_farms" WHERE "turbines"<6 AND "county"='donegal' AND "size_mw"='0.85' AND "wind_farm"='meenadreen';
## Task Generate a SQL query to answer the following question: `Who is the turbine vendor for Meenadreen in Donegal county with less than 6 turbines with a size of 0.85 MW?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "completed_onshore_wind_farms" (...
SELECT SUM("population") FROM "new_mexico_places_ranked_by_per_capita_i" WHERE "rank">51 AND "median_house_hold_income"='$25,250';
## Task Generate a SQL query to answer the following question: `What is the population where the rank is higher than 51 and the Median House-hold income is $25,250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_mexico_places_ranked_by_per_capita_...
SELECT MIN("population") FROM "new_mexico_places_ranked_by_per_capita_i" WHERE "median_house_hold_income"='$25,016';
## Task Generate a SQL query to answer the following question: `What is the Population where the Median House-hold Income is $25,016?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" t...
SELECT AVG("number_of_households") FROM "new_mexico_places_ranked_by_per_capita_i" WHERE "per_capita_income"='$21,345';
## Task Generate a SQL query to answer the following question: `What is the Number of Households that have a Per Capita Income of $21,345?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "pla...
SELECT "county" FROM "new_mexico_places_ranked_by_per_capita_i" WHERE "median_family_income"='$79,331';
## Task Generate a SQL query to answer the following question: `What County has a Median Family Income of $79,331?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_mexico_places_ranked_by_per_capita_i" ( "rank" real, "place" text, "county" tex...
SELECT MAX("gold") FROM "world_championships_total_medals" WHERE "total"<171 AND "nation"='united states' AND "bronze"<9;
## Task Generate a SQL query to answer the following question: `The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_champion...
SELECT COUNT("gold") FROM "world_championships_total_medals" WHERE "nation"='australia';
## Task Generate a SQL query to answer the following question: `How many total gold medals did Australia receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silv...
SELECT MAX("bronze") FROM "world_championships_total_medals" WHERE "nation"='canada';
## Task Generate a SQL query to answer the following question: `How many total bronze medals did Canada receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silve...
SELECT "gold" FROM "world_championships_total_medals" WHERE "nation"='india';
## Task Generate a SQL query to answer the following question: `How many total gold medals did India receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_championships_total_medals" ( "rank" text, "nation" text, "gold" real, "silver" ...
SELECT "1997" FROM "mixed_doubles" WHERE "1991"='a' AND "tournament"='australian open';
## Task Generate a SQL query to answer the following question: `Which 1997's accompanying 1991 was a when the tournament was the australian open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "19...
SELECT "1997" FROM "mixed_doubles" WHERE "1992"='1r' AND "1994"='a';
## Task Generate a SQL query to answer the following question: `Which 1997's 1992 was 1r when 1994 was a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, ...
SELECT "1995" FROM "mixed_doubles" WHERE "tournament"='french open';
## Task Generate a SQL query to answer the following question: `Which 1995's tournament was the French Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" tex...
SELECT "1989" FROM "mixed_doubles" WHERE "1991"='1r' AND "1994"='1r';
## Task Generate a SQL query to answer the following question: `Which 1989's 1991 and 1994 stats were 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, ...
SELECT "1990" FROM "mixed_doubles" WHERE "1992"='3r';
## Task Generate a SQL query to answer the following question: `Which 1990s 1992 was 3r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_doubles" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, ...
SELECT "linda_mc_cartney" FROM "instruments_played_by_band_members" WHERE "stuart"='electric guitar';
## Task Generate a SQL query to answer the following question: `Which Linda McCartney has a Stuart of electric guitar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, "m...
SELECT "whitten" FROM "instruments_played_by_band_members" WHERE "stuart"='bass' AND "paul_mc_cartney"='electric guitar';
## Task Generate a SQL query to answer the following question: `Which Whitten has a Stuart of bass, and a Paul McCartney of electric guitar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text,...
SELECT "mc_intosh" FROM "instruments_played_by_band_members" WHERE "whitten"='drums' AND "stuart"='bass' AND "paul_mc_cartney"='electric guitar';
## Task Generate a SQL query to answer the following question: `Which McIntosh has a Whitten of drums, and a Stuart of bass, and a Paul McCartney of electric guitar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( ...
SELECT "paul_mc_cartney" FROM "instruments_played_by_band_members" WHERE "linda_mc_cartney"='keyboards';
## Task Generate a SQL query to answer the following question: `Which Paul McCartney has a Linda McCartney of keyboards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" text, ...
SELECT "mc_intosh" FROM "instruments_played_by_band_members" WHERE "stuart"='bass' AND "linda_mc_cartney"='keyboards or drum';
## Task Generate a SQL query to answer the following question: `Which McIntosh has a Stuart of bass, and a Linda McCartney of keyboards or drum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" t...
SELECT "paul_mc_cartney" FROM "instruments_played_by_band_members" WHERE "linda_mc_cartney"='keyboards or drum';
## Task Generate a SQL query to answer the following question: `Which Paul McCartney has a Linda McCartney of keyboards or drum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "instruments_played_by_band_members" ( "paul_mc_cartney" text, "stuart" ...
SELECT MAX("grid") FROM "superbike_race_2_classification" WHERE "bike"='honda cbr1000rr' AND "time"='+20.848' AND "laps">24;
## Task Generate a SQL query to answer the following question: `What is the largest Grid that has a Bike of honda cbr1000rr, and a Time of +20.848, and a Lap greater than 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "superbike_race_2_classificati...
SELECT "d_oyly_carte_1930_tour" FROM "historical_casting" WHERE "d_oyly_carte_1920_tour"='hugh enes blackmore';
## Task Generate a SQL query to answer the following question: `D'Oyly Carte 1920 Tour of hugh enes blackmore is what D'Oyly Carte 1930 Tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour...
SELECT "d_oyly_carte_1945_tour" FROM "historical_casting" WHERE "d_oyly_carte_1939_tour"='richard walker';
## Task Generate a SQL query to answer the following question: `D'Oyly Carte 1939 Tour of richard walker involves what D'Oyly Carte 1945 Tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tou...
SELECT "d_oyly_carte_1945_tour" FROM "historical_casting" WHERE "d_oyly_carte_1920_tour"='james turnbull';
## Task Generate a SQL query to answer the following question: `D'Oyly Carte 1920 Tour of james turnbull is what D'Oyly Carte 1945 Tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" tex...
SELECT "d_oyly_carte_1945_tour" FROM "historical_casting" WHERE "role"='wilfred';
## Task Generate a SQL query to answer the following question: `Role of wilfred is what D'Oyly Carte 1945 Tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" text, "d_oyly_carte_1930_t...
SELECT "d_oyly_carte_1950_tour" FROM "historical_casting" WHERE "d_oyly_carte_1939_tour"='sydney granville';
## Task Generate a SQL query to answer the following question: `D'Oyly Carte 1939 Tour of sydney granville had what D'Oyly Carte 1950 Tour` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" t...
SELECT "d_oyly_carte_1945_tour" FROM "historical_casting" WHERE "d_oyly_carte_1930_tour"='john dean';
## Task Generate a SQL query to answer the following question: `D'Oyly Carte 1930 Tour of john dean involved what D'Oyly Carte 1945 Tour?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "historical_casting" ( "role" text, "d_oyly_carte_1920_tour" te...
SELECT AVG("total") FROM "medal_table" WHERE "nation"='denmark' AND "gold">0;
## Task Generate a SQL query to answer the following question: `The nation of denmark has what average total nad more than 0 gold?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze...
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='switzerland' AND "silver"<0;
## Task Generate a SQL query to answer the following question: `Switzerland has how many gold and less than 0 silver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "nation" text, "gold" real, "silver" real, "bronze" real, "to...
SELECT SUM("wins") FROM "leaders" WHERE "rank">3 AND "earnings">'3,315,502';
## Task Generate a SQL query to answer the following question: `How many wins does the player ranked lower than 3 with earnings of $3,315,502 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, "player" text, "country" t...
SELECT MAX("wins") FROM "leaders" WHERE "earnings"<'4,976,980' AND "rank">4;
## Task Generate a SQL query to answer the following question: `What is the highest number of wins of the player with less than $4,976,980 in earnings and a rank lower than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leaders" ( "rank" real, ...
SELECT COUNT("year") FROM "highest_lancashire_totals" WHERE "score"='734-5d';
## Task Generate a SQL query to answer the following question: `How many years had a score of 734-5d?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "ye...
SELECT "venue" FROM "highest_lancashire_totals" WHERE "city"='manchester' AND "year"<2003;
## Task Generate a SQL query to answer the following question: `Which venue had a city of Manchester before 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city"...
SELECT "venue" FROM "highest_lancashire_totals" WHERE "city"='manchester' AND "year"=2003;
## Task Generate a SQL query to answer the following question: `Which venue had a city of Manchester in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" tex...
SELECT "venue" FROM "highest_lancashire_totals" WHERE "score"='734-5d';
## Task Generate a SQL query to answer the following question: `Which venue had a score of 734-5d?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_lancashire_totals" ( "score" text, "opposition" text, "venue" text, "city" text, "year"...
SELECT AVG("top_5") FROM "summary" WHERE "top_10"=5 AND "cuts_made"<12;
## Task Generate a SQL query to answer the following question: `What is the average number of top-5s for the major with 5 top-10s and fewer than 12 cuts made?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real...
SELECT AVG("top_10") FROM "summary" WHERE "top_25"=2 AND "cuts_made"<10;
## Task Generate a SQL query to answer the following question: `What is the average number of top-10s for the major with 2 top-25s and fewer than 10 cuts made?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" rea...
SELECT COUNT("top_25") FROM "summary" WHERE "top_10"=11;
## Task Generate a SQL query to answer the following question: `What is the total number of top-25s for the major that has 11 top-10s?` ### 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...
SELECT SUM("events") FROM "summary" WHERE "cuts_made">12 AND "top_5">2 AND "top_10">11;
## Task Generate a SQL query to answer the following question: `How many total events have cuts made over 12, more than 2 top-5s, and more than 11 top-10s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" real, ...
SELECT SUM("wins") FROM "summary" WHERE "top_10"=1;
## Task Generate a SQL query to answer the following question: `How many total wins are associated with events with 1 top-10?` ### 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 AVG("cuts_made") FROM "summary" WHERE "top_10"=11 AND "wins"<1;
## Task Generate a SQL query to answer the following question: `What is the average number of cuts made in events with fewer than 1 win and exactly 11 top-10s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "tournament" text, "wins" rea...
SELECT "week" FROM "schedule" WHERE "date"='bye';
## Task Generate a SQL query to answer the following question: `What week did they have a bye?` ### 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, "attendan...
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2006"='0-0';
## Task Generate a SQL query to answer the following question: `What tournament in 2006 had a score of 0-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text...
SELECT MAX("extra_points") FROM "michigan_63_oberlin_0" WHERE "player"='albert herrnstein' AND "points">15;
## Task Generate a SQL query to answer the following question: `What was the highest number of extra points scored by Albert Herrnstein, when he scored more than 15 points total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_63_oberlin_0" ( ...
SELECT "touchdowns" FROM "michigan_63_oberlin_0" WHERE "player"='william cole';
## Task Generate a SQL query to answer the following question: `How many touchdowns were scored by William Cole?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "michigan_63_oberlin_0" ( "player" text, "touchdowns" real, "extra_points" real, "fi...
SELECT "record" FROM "game_log" WHERE "attendance"='26,236';
## Task Generate a SQL query to answer the following question: `For the game with 26,236 attendance, what was the record?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "at...
SELECT "record" FROM "game_log" WHERE "attendance"='49,222';
## Task Generate a SQL query to answer the following question: `What's the record for the game with an attendance of 49,222?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, ...
SELECT "high_rebounds" FROM "game_log" WHERE "date"='june 11';
## Task Generate a SQL query to answer the following question: `Who had the most rebounds and how many did he have during the game on June 11?` ### 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, "s...
SELECT "high_points" FROM "game_log" WHERE "date"='june 13';
## Task Generate a SQL query to answer the following question: `Who was the leading scorer and how many did he score for the game on June 13?` ### 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, "sc...
SELECT "college_junior_club_team" FROM "nhl_amateur_draft" WHERE "round"<8 AND "pick"=50;
## Task Generate a SQL query to answer the following question: `What College/Junior/Club Team has Pick 50 before Round 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nhl_amateur_draft" ( "round" real, "pick" real, "player" text, "nationalit...
SELECT MAX("overall") FROM "season_standings" WHERE "slalom"='39' AND "season"<1996;
## Task Generate a SQL query to answer the following question: `What is the highest overall prior to 1996 with a slalom of 39?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom" text, "gi...
SELECT MIN("overall") FROM "season_standings" WHERE "downhill"='1' AND "season"<1992;
## Task Generate a SQL query to answer the following question: `What is the lowest overall score prior to 1992 with a downhill score of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" real, "slalom"...
SELECT "giant_slalom" FROM "season_standings" WHERE "overall">3 AND "super_g"=12;
## Task Generate a SQL query to answer the following question: `What was her Giant Slalom score when her Overall was greater than 3 and her Super G score was 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "ov...
SELECT MAX("super_g") FROM "season_standings" WHERE "slalom"='58' AND "overall">2;
## Task Generate a SQL query to answer the following question: `What was her highest Super G score with a Slalom score of 58 and an Overall larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_standings" ( "season" real, "overall" ...
SELECT "location_all_in_nagano" FROM "list_of_interchanges_and_features" WHERE "name"='sakakita bs';
## Task Generate a SQL query to answer the following question: `What location has the name of Sakakita BS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin" text, "dist_from_termi...
SELECT "location_all_in_nagano" FROM "list_of_interchanges_and_features" WHERE "name"='sakakita bs';
## Task Generate a SQL query to answer the following question: `Which location includes Sakakita BS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin" text, "dist_from_terminus" t...
SELECT "dist_from_origin" FROM "list_of_interchanges_and_features" WHERE "location_all_in_nagano"='azumino' AND "name"='toyoshina ic';
## Task Generate a SQL query to answer the following question: `What is the distance from origin in Azumino including Toyoshina IC?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_interchanges_and_features" ( "name" text, "dist_from_origin"...
SELECT "district" FROM "senate" WHERE "first_elected"<2006 AND "towns_represented"='broken arrow, tulsa';
## Task Generate a SQL query to answer the following question: `Which district had first elected earlier than 2006 for representation of Broken Arrow, Tulsa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "district" text, "name" text, ...
SELECT COUNT("first_elected") FROM "senate" WHERE "district"='16';
## Task Generate a SQL query to answer the following question: `How many values of first elected are for district 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "district" text, "name" text, "party" text, "hometown" text, "firs...
SELECT "towns_represented" FROM "senate" WHERE "district"='31';
## Task Generate a SQL query to answer the following question: `Which towns are represented in district 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate" ( "district" text, "name" text, "party" text, "hometown" text, "first_elected"...
SELECT COUNT("deposits") FROM "financial_comparisons_between_top_10_ban" WHERE "non_interest_income"=0.9500000000000001 AND "no_of_branches_offices"<17;
## Task Generate a SQL query to answer the following question: `How many deposits had a Non-Interest Income of 0.9500000000000001 and number of branch/offices less than 17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "financial_comparisons_between_t...
SELECT "npl_net" FROM "financial_comparisons_between_top_10_ban" WHERE "bank"='citibank';
## Task Generate a SQL query to answer the following question: `Which NPL net's bank was citibank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "financial_comparisons_between_top_10_ban" ( "bank" text, "asset" real, "loans" real, "npl_net" te...
SELECT "championship" FROM "wins_5" WHERE "winning_score"='(77-76-74-73=300)';
## Task Generate a SQL query to answer the following question: `Which championship has a winning score of (77-76-74-73=300)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_s...
SELECT "championship" FROM "wins_5" WHERE "margin"='8 strokes';
## Task Generate a SQL query to answer the following question: `Which championship has a margin of 8 strokes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text, "...
SELECT "championship" FROM "wins_5" WHERE "54_holes"='5 shot lead';
## Task Generate a SQL query to answer the following question: `Which championship has a 5 shot lead for 54 holes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" text...
SELECT "54_holes" FROM "wins_5" WHERE "championship"='the open championship (4)';
## Task Generate a SQL query to answer the following question: `What is the 54 holes for The Open Championship (4)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wins_5" ( "year" real, "championship" text, "54_holes" text, "winning_score" tex...
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2007"='wta premier 5 tournaments';
## Task Generate a SQL query to answer the following question: `Which Tournament has a 2007 of wta premier 5 tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text,...
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2011"='nh';
## Task Generate a SQL query to answer the following question: `Which Tournament was played in NH in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2008" text,...
SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2010"='2r' AND "2011"='1r';
## Task Generate a SQL query to answer the following question: `Which Tournament has a 2010 of 2r, and a 2011 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2006" text, "2007" text, "2...
SELECT MIN("first_issued") FROM "banknotes" WHERE "color"='green';
## Task Generate a SQL query to answer the following question: `When was Color of green first issued?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real...
SELECT MAX("first_issued") FROM "banknotes" WHERE "color"='green';
## Task Generate a SQL query to answer the following question: `When was Color of green last issued?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real ...
SELECT "reverse" FROM "banknotes" WHERE "color"='green';
## Task Generate a SQL query to answer the following question: `What reverse has a color of green?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "reverse" text, "first_issued" real );...
SELECT "value" FROM "banknotes" WHERE "first_issued"<1998 AND "reverse"='guitar of agustín pío barrios';
## Task Generate a SQL query to answer the following question: `How much was a Reverse of guitar of agustín pío barrios before 1998?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "banknotes" ( "value" text, "color" text, "obverse" text, "rever...
SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "college"='byu';
## Task Generate a SQL query to answer the following question: `What is BYU's lowest pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position"...
SELECT SUM("round") FROM "atlanta_falcons_draft_history" WHERE "pick_num"<26 AND "position"='cornerback' AND "overall">41;
## Task Generate a SQL query to answer the following question: `Which cornerback round has a pick number lower than 26 and an overall higher than 41?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pi...
SELECT COUNT("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='wyoming';
## Task Generate a SQL query to answer the following question: `What is the overall number for the College of Wyoming?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real,...
SELECT COUNT("round") FROM "atlanta_falcons_draft_history" WHERE "position"='wide receiver' AND "overall">145;
## Task Generate a SQL query to answer the following question: `What is the total round for a wide receiver with an overall of more than 145?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" ...
SELECT "pick_num" FROM "atlanta_falcons_draft_history" WHERE "overall"<145 AND "college"='ohio state';
## Task Generate a SQL query to answer the following question: `What is College of Ohio State's pick number with an overall lower than 145?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" re...