output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "winner" FROM "tournament_results" WHERE "score"='281 (-6)';
## Task Generate a SQL query to answer the following question: `Who was the winner when the score was 281 (-6)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real,...
SELECT COUNT("score") FROM "tournament_results" WHERE "tournament"='Northville Long Island Classic';
## Task Generate a SQL query to answer the following question: `How many scores were at the Northville Long Island Classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "...
SELECT "tournament" FROM "tournament_results" WHERE "winner"='Raymond Floyd (1)';
## Task Generate a SQL query to answer the following question: ` what's the tournament where winner is raymond floyd (1)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "pur...
SELECT COUNT("purse") FROM "tournament_results" WHERE "winner"='Jimmy Powell (2)';
## Task Generate a SQL query to answer the following question: `what is the total number of purse( $ ) where winner is jimmy powell (2)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "locatio...
SELECT "date" FROM "tournament_results" WHERE "location"='Illinois';
## Task Generate a SQL query to answer the following question: ` what's the date where location is illinois` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "...
SELECT MIN("purse") FROM "tournament_results" WHERE "tournament"='Ko Olina Senior Invitational';
## Task Generate a SQL query to answer the following question: `what is the minimum purse( $ ) where tournament is ko olina senior invitational` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, ...
SELECT "location" FROM "tournament_results" WHERE "tournament"='Raley''s Senior Gold Rush';
## Task Generate a SQL query to answer the following question: ` what's the location where tournament is raley's senior gold rush` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" tex...
SELECT MAX("1st_prize") FROM "tournament_results" WHERE "score"='193 (-17)';
## Task Generate a SQL query to answer the following question: `what is the maximum 1st prize( $ ) where score is 193 (-17)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "...
SELECT "1st_prize" FROM "tournament_results" WHERE "purse"=275000;
## Task Generate a SQL query to answer the following question: `How much was the prize money for the 275000 purse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" re...
SELECT "1st_prize" FROM "tournament_results" WHERE "location"='Virginia';
## Task Generate a SQL query to answer the following question: `What is the prize money for Virginia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner...
SELECT COUNT("tournament") FROM "tournament_results" WHERE "score"='204 (-12)';
## Task Generate a SQL query to answer the following question: `How many tournaments ended with a score of 204 (-12)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse"...
SELECT "winner" FROM "tournament_results" WHERE "tournament"='PaineWebber Invitational';
## Task Generate a SQL query to answer the following question: `What's the winner of the Painewebber Invitational tournament?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, ...
SELECT "location" FROM "tournament_results" WHERE "tournament"='GTE Suncoast Classic';
## Task Generate a SQL query to answer the following question: `Where was the GTE Suncoast Classic tournament held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" r...
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='New Mexico';
## Task Generate a SQL query to answer the following question: `What was the minimal amount ($) of the 1st prize in the tournaments in New Mexico?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text,...
SELECT "date" FROM "tournament_results" WHERE "score"='203 (-13)';
## Task Generate a SQL query to answer the following question: `What are all the dates with a score of 203 (-13)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" rea...
SELECT "tournament" FROM "tournament_results" WHERE "score"='135 (-7)';
## Task Generate a SQL query to answer the following question: `For which tournaments was the score 135 (-7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, ...
SELECT "tournament" FROM "tournament_results" WHERE "1st_prize"=40000;
## Task Generate a SQL query to answer the following question: `Which tournaments have a first prize of $40000` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, ...
SELECT COUNT("location") FROM "tournament_results" WHERE "score"='206 (-7)';
## Task Generate a SQL query to answer the following question: `How many locations logged a score of 206 (-7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, ...
SELECT COUNT("tournament") FROM "tournament_results" WHERE "score"='206 (-7)';
## Task Generate a SQL query to answer the following question: `How many tournaments recorded a score of 206 (-7)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" re...
SELECT "tournament" FROM "tournament_results" WHERE "location"='Rhode Island';
## Task Generate a SQL query to answer the following question: `Name all the tournaments that took place in Rhode Island.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "pu...
SELECT "location" FROM "tournament_results" WHERE "score"='208 (-8)';
## Task Generate a SQL query to answer the following question: `What is the state that hosted a tournament with the score of 208 (-8)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location...
SELECT "location" FROM "tournament_results" WHERE "tournament"='Fairfield Barnett Classic';
## Task Generate a SQL query to answer the following question: `Where was the Fairfield Barnett classic tournament held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "pur...
SELECT COUNT("purse") FROM "tournament_results" WHERE "date"='Mar 16';
## Task Generate a SQL query to answer the following question: `How many purses were there for the mar 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "...
SELECT "original_air_date" FROM "season_1_2007" WHERE "series_no"=23;
## Task Generate a SQL query to answer the following question: `When did the series number 23 air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2007" ( "series_no" real, "title" text, "directed_by" text, "written_by" text, "origin...
SELECT MAX("production_code") FROM "season_1_2007" WHERE "title"='\"Surprise, Surprise\"';
## Task Generate a SQL query to answer the following question: `What is the production code of "surprise, surprise"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2007" ( "series_no" real, "title" text, "directed_by" text, "written_b...
SELECT "original_air_date" FROM "season_1_2007" WHERE "series_no"=21;
## Task Generate a SQL query to answer the following question: `What was the airdate of 21 series number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_1_2007" ( "series_no" real, "title" text, "directed_by" text, "written_by" text, ...
SELECT "location" FROM "tournament_results" WHERE "1st_prize"=33500;
## Task Generate a SQL query to answer the following question: `Which located featured the first prize of 33500?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real...
SELECT "winner" FROM "tournament_results" WHERE "tournament"='Suntree Seniors Classic';
## Task Generate a SQL query to answer the following question: `Who won the Suntree Seniors Classic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location" text, "purse" real, "winner"...
SELECT "purse" FROM "tournament_results" WHERE "score"='289 (9)';
## Task Generate a SQL query to answer the following question: `How much was the prize in the tournament where the winning score was 289 (9)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "l...
SELECT "date" FROM "tournament_results" WHERE "score"='204 (-6)';
## Task Generate a SQL query to answer the following question: `When was the tournament that was won with a score of 204 (-6) played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_results" ( "date" text, "tournament" text, "location"...
SELECT "written_by" FROM "table1_11630008_5" WHERE "title"='\"Stop Being All Funky\"';
## Task Generate a SQL query to answer the following question: `Who wrote "Stop Being all Funky"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11630008_5" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "wr...
SELECT MAX("season_num") FROM "table1_11630008_5" WHERE "series_num"=61;
## Task Generate a SQL query to answer the following question: `What was the season number for the episode with the series number 61?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11630008_5" ( "series_num" real, "season_num" real, "titl...
SELECT "title" FROM "table1_11630008_5" WHERE "production_code"=311;
## Task Generate a SQL query to answer the following question: `What was the title of the episode with the production code 311?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11630008_5" ( "series_num" real, "season_num" real, "title" tex...
SELECT "directed_by" FROM "table1_11630008_5" WHERE "written_by"='Lamont Ferrell';
## Task Generate a SQL query to answer the following question: `Who directed the episode written by Lamont Ferrell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11630008_5" ( "series_num" real, "season_num" real, "title" text, "direct...
SELECT "date" FROM "doubles_7" WHERE "result"='6–2, 4–6, 6–4';
## Task Generate a SQL query to answer the following question: `What date was the result 6–2, 4–6, 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" text,...
SELECT COUNT("partnering") FROM "doubles_7" WHERE "result"='6–3, 6–2';
## Task Generate a SQL query to answer the following question: `How many matches had the result of 6–3, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_7" ( "edition" text, "round" text, "date" text, "partnering" text, "against" ...
SELECT "director" FROM "table1_11642945_1" WHERE "original_air_date"='10January2008';
## Task Generate a SQL query to answer the following question: `If the Original Air Date is 10January2008, what directors released on that date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11642945_1" ( "total_no" real, "celebrity" text...
SELECT "total_no" FROM "table1_11642945_1" WHERE "original_air_date"='29November2007';
## Task Generate a SQL query to answer the following question: `The original air date of 29November2007 has what total no.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11642945_1" ( "total_no" real, "celebrity" text, "director" text, ...
SELECT "director" FROM "table1_11642945_1" WHERE "celebrity"='Margot Kidder';
## Task Generate a SQL query to answer the following question: `Margot Kidder had what director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11642945_1" ( "total_no" real, "celebrity" text, "director" text, "original_air_date" text, ...
SELECT COUNT("celebrity") FROM "table1_11642945_1" WHERE "original_air_date"='18October2007';
## Task Generate a SQL query to answer the following question: `How many celebrities had an 18October2007 Original air Date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11642945_1" ( "total_no" real, "celebrity" text, "director" text, ...
SELECT "viewers" FROM "table1_11642945_1" WHERE "director"='Matt Gallagher';
## Task Generate a SQL query to answer the following question: `Which viewers had Matt Gallagher as the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11642945_1" ( "total_no" real, "celebrity" text, "director" text, "original...
SELECT MAX("series_num") FROM "season_5_2008_09" WHERE "title"='\"Your Wife''s a Payne\"';
## Task Generate a SQL query to answer the following question: `What is the number of series of the title of "your wife's a payne"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_5_2008_09" ( "series_num" real, "season_num" real, "title" ...
SELECT "written_by" FROM "season_5_2008_09" WHERE "title"='\"A Grand Payne\"';
## Task Generate a SQL query to answer the following question: `Who write "a grand payne"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_5_2008_09" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by...
SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "title"='\"With Friends Like These\"';
## Task Generate a SQL query to answer the following question: `What is the number of series with a title of "with friends like these"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_5_2008_09" ( "series_num" real, "season_num" real, "tit...
SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "production_code"=503;
## Task Generate a SQL query to answer the following question: `What is the number of series with production code 503?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_5_2008_09" ( "series_num" real, "season_num" real, "title" text, "dire...
SELECT "title" FROM "season_5_2008_09" WHERE "production_code"=514;
## Task Generate a SQL query to answer the following question: `What is the title of production code 514?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_5_2008_09" ( "series_num" real, "season_num" real, "title" text, "directed_by" text...
SELECT "location" FROM "current_members" WHERE "institution"='Barton College';
## Task Generate a SQL query to answer the following question: `What is the location of the institution barton college` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "type...
SELECT "institution" FROM "current_members" WHERE "joined"='1993';
## Task Generate a SQL query to answer the following question: ` Which institutions joined in 1993` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollmen...
SELECT "location" FROM "current_members" WHERE "joined"='2008';
## Task Generate a SQL query to answer the following question: `what are the locations that joined in 2008` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "type" text, "...
SELECT MIN("enrollment") FROM "current_members" WHERE "institution"='Barton College';
## Task Generate a SQL query to answer the following question: `What is the minimum enrollment at barton college` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "type" text...
SELECT "founded" FROM "current_members" WHERE "institution"='Erskine College';
## Task Generate a SQL query to answer the following question: `When was erskine college founded` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "type" text, "enrollment"...
SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
## Task Generate a SQL query to answer the following question: `What is ithe range for married filing separately where head of household is $117,451–$190,200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( ...
SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$8,351– $33,950';
## Task Generate a SQL query to answer the following question: `What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_capital_gains_tax_rate...
SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
## Task Generate a SQL query to answer the following question: `What is the range for married filing separately in which the head of household is $117,451–$190,200?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_capital_gains_tax_rates_for...
SELECT "married_filing_jointly_or_qualified_widow_er" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_separately"='$33,951–$68,525';
## Task Generate a SQL query to answer the following question: `What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_capital_...
SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$171,551–$372,950';
## Task Generate a SQL query to answer the following question: `What is the range of the head of household whereas single is $171,551–$372,950?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_capital_gains_tax_rates_for_" ( "marginal_ordi...
SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_jointly_or_qualified_widow_er"='$208,851–$372,950';
## Task Generate a SQL query to answer the following question: `What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_and_cap...
SELECT "coach" FROM "honour_board" WHERE "dudley_tuckey_medal"='Ben Howlett';
## Task Generate a SQL query to answer the following question: ` who is the coach where dudley tuckey medal is ben howlett` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "win_loss" text, "coach" ...
SELECT COUNT("coach") FROM "honour_board" WHERE "captain"='Grant Welsh' AND "win_loss"='5-15';
## Task Generate a SQL query to answer the following question: `what is the total number of coach where captain is grant welsh and win/loss is 5-15` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "w...
SELECT "dudley_tuckey_medal" FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (46)';
## Task Generate a SQL query to answer the following question: ` who is the dudley tuckey medal where leading goalkicker is scott simister (46)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "win_l...
SELECT MAX("season") FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (54)';
## Task Generate a SQL query to answer the following question: `what is the maximum season where leading goalkicker is scott simister (54)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "win_loss" ...
SELECT "win_loss" FROM "honour_board" WHERE "season"=2009;
## Task Generate a SQL query to answer the following question: `what are all the win/loss where season is 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "win_loss" text, "coach" text, "cap...
SELECT "captain" FROM "honour_board" WHERE "coach"='Geoff Miles';
## Task Generate a SQL query to answer the following question: ` who is the captain where coach is geoff miles` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "honour_board" ( "season" real, "position" real, "win_loss" text, "coach" text, "cap...
SELECT "disaster" FROM "disaster_relief" WHERE "year"='2005-06';
## Task Generate a SQL query to answer the following question: `In 2005-06 what was the disaster?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disaster" te...
SELECT "scale_of_disaster" FROM "disaster_relief" WHERE "countries_affected"='Peru';
## Task Generate a SQL query to answer the following question: `What was the scale of disaster in Peru?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "disaster_relief" ( "disaster" text, "year" text, "countries_affected" text, "scale_of_disast...
SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "no_of_communes"=51;
## Task Generate a SQL query to answer the following question: `What's the area of the voivodenship with 51 communes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbreviation" text, "voivodeship" tex...
SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "abbreviation"='kn';
## Task Generate a SQL query to answer the following question: `How big (in km2) is the voivodenship also known by the abbreviation KN?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbreviation" text, ...
SELECT "population_1980" FROM "polish_voivodeships_and_separate_cities_" WHERE "capital"='Siedlce';
## Task Generate a SQL query to answer the following question: `How many people lived in the voivodenship whose capital is Siedlce in the year of 1980?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbre...
SELECT COUNT("voivodeship") FROM "polish_voivodeships_and_separate_cities_" WHERE "population_1980"='747 900';
## Task Generate a SQL query to answer the following question: `How many different voivodenship have 747 900 citizes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "polish_voivodeships_and_separate_cities_" ( "abbreviation" text, "voivodeship" tex...
SELECT MIN("left") FROM "former_members" WHERE "institution"='Longwood University';
## Task Generate a SQL query to answer the following question: `What year did longwood university leave the conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, "type...
SELECT "left" FROM "former_members" WHERE "founded"=1880;
## Task Generate a SQL query to answer the following question: `What year did a school leave that was founded in 1880?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, "type"...
SELECT "nickname" FROM "former_members" WHERE "enrollment"=2386;
## Task Generate a SQL query to answer the following question: `What is the nickname of the school with an enrollment of 2386?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, ...
SELECT "joined" FROM "former_members" WHERE "location"='Mars Hill, North Carolina';
## Task Generate a SQL query to answer the following question: `What year did the school from mars hill, north carolina join?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, ...
SELECT COUNT("left") FROM "former_members" WHERE "institution"='Anderson University';
## Task Generate a SQL query to answer the following question: `How many times did anderson university leave?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, "type" text, ...
SELECT "nickname" FROM "former_members" WHERE "institution"='Newberry College';
## Task Generate a SQL query to answer the following question: `What is the nickname of the newberry college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "former_members" ( "institution" text, "location" text, "founded" real, "type" text, ...
SELECT "gross_tonnage" FROM "ships_of_the_great_eastern_railway" WHERE "ended_service"='1866';
## Task Generate a SQL query to answer the following question: `What was the gross tonnage of the ship that ended service in 1866?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_of_the_great_eastern_railway" ( "ships_name" text, "entered_ser...
SELECT MIN("gross_tonnage") FROM "ships_of_the_great_eastern_railway" WHERE "ships_name"='Munich';
## Task Generate a SQL query to answer the following question: `What is the minimum gross tonnage of the Munich? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_of_the_great_eastern_railway" ( "ships_name" text, "entered_service" text, "en...
SELECT "original_air_date" FROM "table1_11665016_2" WHERE "written_by"='Wendy Battles' AND "directed_by"='Oz Scott';
## Task Generate a SQL query to answer the following question: `What is the air date for the episode written by Wendy Battles and directed by Oz Scott` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11665016_2" ( "no_in_series" real, "no_in_...
SELECT "u_s_viewers_millions" FROM "table1_11665016_2" WHERE "title"='\"Cold Reveal\"';
## Task Generate a SQL query to answer the following question: `How many US viewers (millions) were there for "cold reveal"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11665016_2" ( "no_in_series" real, "no_in_season" real, "title" tex...
SELECT "title" FROM "table1_11665016_2" WHERE "written_by"='Anthony E. Zuiker & Ken Solarz';
## Task Generate a SQL query to answer the following question: `Which episode was written by anthony e. zuiker & ken solarz` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11665016_2" ( "no_in_series" real, "no_in_season" real, "title" tex...
SELECT "title" FROM "table1_11665016_2" WHERE "directed_by"='Steven DePaul';
## Task Generate a SQL query to answer the following question: `Which episode was directed by steven depaul` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11665016_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_b...
SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "year_built"=1923;
## Task Generate a SQL query to answer the following question: `What where the tms numbers built in 1923` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_and_rolling_stock" ( "number" text, "tms_number" text, "builder" text, "year_bu...
SELECT "year_built" FROM "locomotives_and_rolling_stock" WHERE "carriage_type"='47'' 6\" ''Birdcage'' gallery coach';
## Task Generate a SQL query to answer the following question: `What year was the carriage type is 47' 6" 'birdcage' gallery coach built` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_and_rolling_stock" ( "number" text, "tms_number" te...
SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "builder"='NZR Addington' AND "year_built"=1913;
## Task Generate a SQL query to answer the following question: `What tms were built nzr addington in the year 1913` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "locomotives_and_rolling_stock" ( "number" text, "tms_number" text, "builder" text, ...
SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Wilhelmina';
## Task Generate a SQL query to answer the following question: ` what's the date entered service with ships name koningin wilhelmina` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, "dat...
SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Zeeland';
## Task Generate a SQL query to answer the following question: ` what's the date where ships name is zeeland entered service` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, "date_entere...
SELECT MAX("tonnage") FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='25 March 1986';
## Task Generate a SQL query to answer the following question: `what is the maximum tonnage where date entered service is 25 march 1986 ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, ...
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='21 November 1945';
## Task Generate a SQL query to answer the following question: `what are all the date withdrawn for service entered on 21 november 1945` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, "...
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "type_of_ship"='Twin Screw Ro-Ro Motorship';
## Task Generate a SQL query to answer the following question: `what are all the date withdrawn for twin screw ro-ro motorship` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, "date_ente...
SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Beatrix';
## Task Generate a SQL query to answer the following question: `what are all the date withdrawn for koningin beatrix` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships_operated_by_zeeland_steamship_comp" ( "ships_name" text, "date_entered_servic...
SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "directed_by"='Anthony Hemingway';
## Task Generate a SQL query to answer the following question: `Where is the first season that Anthony Hemingway appears?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11664625_2" ( "no_in_series" real, "no_in_season" real, "title" text,...
SELECT "original_air_date" FROM "table1_11664625_2" WHERE "no_in_season"=18;
## Task Generate a SQL query to answer the following question: `What is the original air date of season 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11664625_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_b...
SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "u_s_viewers_millions"='14.57';
## Task Generate a SQL query to answer the following question: `When is the first season there were 14.57 million U.S viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11664625_2" ( "no_in_series" real, "no_in_season" real, "title" ...
SELECT COUNT("champion") FROM "table1_1167698_1" WHERE "season"='2009';
## Task Generate a SQL query to answer the following question: `How many champions were there in 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1167698_1" ( "season" text, "champion" text, "runner_up" text, "third_place" text, "...
SELECT "third_place" FROM "table1_1167698_1" WHERE "runner_up"='Dynamo Moscow';
## Task Generate a SQL query to answer the following question: `Who won third place with the runner up being dynamo moscow?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1167698_1" ( "season" text, "champion" text, "runner_up" text, "t...
SELECT "position" FROM "table1_11677100_15" WHERE "player"='Matt Hobgood';
## Task Generate a SQL query to answer the following question: `What position does Matt Hobgood play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11677100_15" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_d...
SELECT COUNT("mlb_draft") FROM "table1_11677100_15" WHERE "hometown"='High Point, NC';
## Task Generate a SQL query to answer the following question: `How many players were from high point, nc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11677100_15" ( "player" text, "position" text, "school" text, "hometown" text, "...
SELECT "school" FROM "table1_11677100_15" WHERE "player"='Jeff Malm';
## Task Generate a SQL query to answer the following question: `What high school did Jeff Malm attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11677100_15" ( "player" text, "position" text, "school" text, "hometown" text, "mlb_...
SELECT COUNT("hometown") FROM "table1_11677100_15" WHERE "position"='Catcher';
## Task Generate a SQL query to answer the following question: `How many hometowns does the catcher have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11677100_15" ( "player" text, "position" text, "school" text, "hometown" text, "m...
SELECT "mlb_draft" FROM "table1_11677100_16" WHERE "school"='Mountain Pointe High School';
## Task Generate a SQL query to answer the following question: `Who was drafted from the school Mountain Pointe High School?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_11677100_16" ( "player" text, "position" text, "school" text, "h...