output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MAX("tries_against") FROM "pool_3" WHERE "points_against">109;
## Task Generate a SQL query to answer the following question: `Which Tries against have Points against larger than 109?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real, "try_diff" t...
SELECT SUM("tries_against") FROM "pool_3" WHERE "points_against"=95 AND "tries_for">20;
## Task Generate a SQL query to answer the following question: `What Tries against that have a Points against of 95 and Tries for larger than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_agai...
SELECT SUM("tries_for") FROM "pool_3" WHERE "team"='neath' AND "points_against">109;
## Task Generate a SQL query to answer the following question: `What Tries for has a Team of neath, and Points against larger than 109?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tries_against" real,...
SELECT SUM("points_against") FROM "pool_3" WHERE "team"='harlequins' AND "tries_against"<8;
## Task Generate a SQL query to answer the following question: `How many Points against that have a Team of harlequins and Tries against smaller than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pool_3" ( "team" text, "tries_for" real, "tri...
SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='a' AND "identifier"='cboc-fm';
## Task Generate a SQL query to answer the following question: `What is the power that belongs to Class A with an Identifier of CBOC-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifie...
SELECT "class" FROM "s_rebroadcaster_of_cbo_fm" WHERE "frequency"='91.9 fm';
## Task Generate a SQL query to answer the following question: `Which class has a frequency of 91.9 fm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "p...
SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='lp' AND "identifier"='cbli';
## Task Generate a SQL query to answer the following question: `What power belongs to the LP Class and has an Identifier of CBLI?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text...
SELECT "city_of_license" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='c1' AND "identifier"='cbcd-fm';
## Task Generate a SQL query to answer the following question: `Which city has a C1 class and Identifier of CBCD-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequenc...
SELECT "power" FROM "s_rebroadcaster_of_cbo_fm" WHERE "identifier"='cbli';
## Task Generate a SQL query to answer the following question: `Which Power has a CBLI Identifier?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" text, "frequency" text, "power"...
SELECT "rec_net" FROM "s_rebroadcaster_of_cbo_fm" WHERE "class"='a' AND "power"='3,000 watts';
## Task Generate a SQL query to answer the following question: `What is the RECNet belonging to Class A with a Power of 3,000 watts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "s_rebroadcaster_of_cbo_fm" ( "city_of_license" text, "identifier" t...
SELECT "report" FROM "tournament_3" WHERE "time"='12:30';
## Task Generate a SQL query to answer the following question: `What is the report in the tournament that started at 12:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tournament_3" ( "date" text, "time" text, "score" text, "set_1" text, ...
SELECT "2007" FROM "grand_slam_tournament_performance_timeli" WHERE "2003"='1r';
## Task Generate a SQL query to answer the following question: `Which 2007 has a 2003 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, ...
SELECT "2006" FROM "grand_slam_tournament_performance_timeli" WHERE "2012"='a' AND "2011"='3r';
## Task Generate a SQL query to answer the following question: `Which 2006 has a 2012 of a, and a 2011 of 3r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text,...
SELECT "2008" FROM "grand_slam_tournament_performance_timeli" WHERE "2002"='a' AND "tournament"='australian open';
## Task Generate a SQL query to answer the following question: `Which 2008 has a 2002 of a, and a Tournament of australian open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" t...
SELECT "2012" FROM "grand_slam_tournament_performance_timeli" WHERE "2008"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `Which 2012 has a 2008 of grand slam tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" te...
SELECT "2002" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='2r';
## Task Generate a SQL query to answer the following question: `Which 2002 has a 2009 of 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, ...
SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2002"='2r';
## Task Generate a SQL query to answer the following question: `Which 2010 has a 2002 of 2r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_slam_tournament_performance_timeli" ( "tournament" text, "2002" text, "2003" text, "2004" text, ...
SELECT "us_a_c" FROM "singles" WHERE "year"=1985 AND "us_hot_100"='57';
## Task Generate a SQL query to answer the following question: `What is th US A.C. in 1985 with a US hot 100 of 57?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, ...
SELECT "canada_singles" FROM "singles" WHERE "year"=1979 AND "us_a_c"='24';
## Task Generate a SQL query to answer the following question: `What is the Canada singles in 1979 with a US A.C. of 24?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" te...
SELECT "us_a_c" FROM "singles" WHERE "year"=1974;
## Task Generate a SQL query to answer the following question: `What is the US A.C. in 1974?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "song" text, "canada_singles" text, "us_hot_100" text, "us_a_c" text ); ### S...
SELECT AVG("round") FROM "nfl_draft" WHERE "player"='sammy morris';
## Task Generate a SQL query to answer the following question: `What is the average round of player Sammy Morris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "col...
SELECT SUM("pick_num") FROM "nfl_draft" WHERE "round"=4;
## Task Generate a SQL query to answer the following question: `What is the sum pick # of the player from round 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "co...
SELECT "player" FROM "nfl_draft" WHERE "college"='arizona state';
## Task Generate a SQL query to answer the following question: `Who is the player from Arizona State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position" text, "college" text )...
SELECT SUM("round") FROM "nfl_draft" WHERE "position"='linebacker' AND "pick_num">251;
## Task Generate a SQL query to answer the following question: `What is the sum of the round of the player who plays linebacker and has a pick # greater than 251?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num"...
SELECT "player" FROM "nfl_draft" WHERE "round"<7 AND "college"='arizona state';
## Task Generate a SQL query to answer the following question: `Who is the player from Arizona state with a round less than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "player" text, "position"...
SELECT MAX("week") FROM "schedule" WHERE "date"='october 21, 1956';
## Task Generate a SQL query to answer the following question: `What's the highest week for the day of October 21, 1956?` ### 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, "at...
SELECT MIN("week") FROM "schedule" WHERE "attendance"='16,562';
## Task Generate a SQL query to answer the following question: `What is the least recent week number when the attendance is 16,562?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" ...
SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "rider"='lindsay porter';
## Task Generate a SQL query to answer the following question: `What is Country , when Rider is Lindsay Porter?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text...
SELECT "time" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "speed"='87.49mph';
## Task Generate a SQL query to answer the following question: `What is Time, when Speed is 87.49mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "machi...
SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">12;
## Task Generate a SQL query to answer the following question: `What is Country, when Points are more than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text,...
SELECT "speed" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:24.23.0';
## Task Generate a SQL query to answer the following question: `What is Speed, when Time is 1:24.23.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "mach...
SELECT "country" FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "time"='1:29.43.60';
## Task Generate a SQL query to answer the following question: `What is Country, when Time is 1:29.43.60?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "country" text, "m...
SELECT MIN("place") FROM "1972_isle_of_man_ultra_lightweight_tt_12" WHERE "points">2;
## Task Generate a SQL query to answer the following question: `What is the lowest Place, when Points are greater than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1972_isle_of_man_ultra_lightweight_tt_12" ( "place" real, "rider" text, "cou...
SELECT "opponent" FROM "schedule" WHERE "result"='l 0-27';
## Task Generate a SQL query to answer the following question: `What team was the opponent when the result was l 0-27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "...
SELECT "opponent" FROM "schedule" WHERE "date"='09/20/1975';
## Task Generate a SQL query to answer the following question: `What team was the opponent on 09/20/1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attendance" r...
SELECT "location" FROM "schedule" WHERE "date"='11/08/1975*';
## Task Generate a SQL query to answer the following question: `What is the Location of the game on 11/08/1975*?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "location" text, "result" text, "attend...
SELECT "gold" FROM "medal_table" WHERE "bronze">2 AND "silver"=29;
## Task Generate a SQL query to answer the following question: `How many gold medals were awarded to the team with more than 2 bronze and exactly 29 silver medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation"...
SELECT MAX("year") FROM "women" WHERE "actor"='cicely tyson';
## Task Generate a SQL query to answer the following question: `What is the latest year that Cicely Tyson is the Golden Globe Award actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion...
SELECT "motion_picture" FROM "women" WHERE "year">2003 AND "result"='nominated' AND "actor"='viola davis' AND "award"='best supporting actress';
## Task Generate a SQL query to answer the following question: `What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "actor" text, "award" text...
SELECT "award" FROM "women" WHERE "year"=2002;
## Task Generate a SQL query to answer the following question: `What Award has a date of 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "motion_picture" text, "result" text ); ### SQL G...
SELECT "award" FROM "women" WHERE "motion_picture"='what''s love got to do with it';
## Task Generate a SQL query to answer the following question: `What Award was received bby the Motion Picture What's Love Got To Do With It?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "mot...
SELECT MAX("year") FROM "women" WHERE "actor"='marianne jean-baptiste';
## Task Generate a SQL query to answer the following question: `What is the latest Year with Marianne Jean-Baptiste as the Golden Globe Actor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women" ( "year" real, "actor" text, "award" text, "mo...
SELECT "title" FROM "2004" WHERE "date"='august 2004';
## Task Generate a SQL query to answer the following question: `Which film was released in August 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gro...
SELECT "production_cost" FROM "2004" WHERE "director"='2004';
## Task Generate a SQL query to answer the following question: `What was the production cost for the film directed by 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" te...
SELECT "title" FROM "2004" WHERE "director"='pen-ek ratanaruang';
## Task Generate a SQL query to answer the following question: `What film did Pen-Ek Ratanaruang direct?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gr...
SELECT "date" FROM "2004" WHERE "director"='pen-ek ratanaruang';
## Task Generate a SQL query to answer the following question: `When was the film directed by Pen-Ek Ratanaruang released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" tex...
SELECT "director" FROM "2004" WHERE "title"='tequila';
## Task Generate a SQL query to answer the following question: `Who directed Tequila?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2004" ( "date" text, "title" text, "director" text, "production_cost" text, "singapore_gross" text ); ### SQ...
SELECT "name" FROM "list_of_special_representatives" WHERE "left_office"='june 2011';
## Task Generate a SQL query to answer the following question: `Who left office in June 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_office" text, "left_office" te...
SELECT "born_died" FROM "list_of_special_representatives" WHERE "country"='italy';
## Task Generate a SQL query to answer the following question: `What is the Born-Died date for the Representative of Italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" text, "took_of...
SELECT "country" FROM "list_of_special_representatives" WHERE "left_office"='incumbent';
## Task Generate a SQL query to answer the following question: `What is the country of the Representative that left office as incumbent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_special_representatives" ( "name" text, "born_died" tex...
SELECT "package_option" FROM "music" WHERE "language"='italian' AND "television_service"='sky radio';
## Task Generate a SQL query to answer the following question: `What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "television_service" text, "country...
SELECT "hdtv" FROM "music" WHERE "television_service"='mtv rocks';
## Task Generate a SQL query to answer the following question: `What is HDTV, when Television Service is MTV Rocks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "television_service" text, "country" text, "language" text, "content" t...
SELECT "television_service" FROM "music" WHERE "hdtv"='no' AND "language"='italian';
## Task Generate a SQL query to answer the following question: `What is Television Service, when HDTV is No, and when Language is Italian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "television_service" text, "country" text, "langua...
SELECT "television_service" FROM "music" WHERE "package_option"='sky famiglia' AND "language"='italian';
## Task Generate a SQL query to answer the following question: `What is Television Service, when Package/Option is Sky Famiglia, and when Language is Italian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "television_service" text, "coun...
SELECT "hdtv" FROM "music" WHERE "language"='english' AND "television_service"='mtv dance';
## Task Generate a SQL query to answer the following question: `What is HDTV, when Language is English, and when Television Service is MTV Dance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "music" ( "television_service" text, "country" text, ...
SELECT AVG("matches") FROM "one_day_batting_statistics" WHERE "strike_rate"='87.37' AND "100s"<0;
## Task Generate a SQL query to answer the following question: `What is the mean number of matches when the strike rate is 87.37 and the 100s is less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_batting_statistics" ( "player" text,...
SELECT AVG("100s") FROM "one_day_batting_statistics" WHERE "player"='tim bresnan';
## Task Generate a SQL query to answer the following question: `How many average 100s were there for Tim Bresnan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "one_day_batting_statistics" ( "player" text, "matches" real, "innings" real, "not_...
SELECT COUNT("platform") FROM "services" WHERE "frequency_per_hour"<2;
## Task Generate a SQL query to answer the following question: `How many Platforms have a Frequency of less than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "services" ( "platform" real, "frequency_per_hour" real, "destination" text, "ser...
SELECT "1999_2000_team" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"<187 AND "birthplace"='cloquet, minnesota';
## Task Generate a SQL query to answer the following question: `What is the 1999-2000 team, when the Height (cm) is less than 187, and when the Birthplace is Cloquet, Minnesota?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_nati...
SELECT "name_v_t_e" FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm">179 AND "1999_2000_team"='chicago blackhawks';
## Task Generate a SQL query to answer the following question: `What is the Name v t e, when the Height (cm) is greater than 179, and when the 1999-2000 team is Chicago Blackhawks?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_n...
SELECT SUM("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "weight_kg"=90;
## Task Generate a SQL query to answer the following question: `What is the sum of Height (cm), when the Weight (kg) is 90?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke" ( "position" text, "name_v_t_e" te...
SELECT "losses" FROM "seasons" WHERE "pct"='.451' AND "finish"='6th';
## Task Generate a SQL query to answer the following question: `Which Losses have a Pct of .451 and Finished 6th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" ...
SELECT "season" FROM "seasons" WHERE "losses"='30';
## Task Generate a SQL query to answer the following question: `Which season has Losses of 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losses" text, "pct" text ...
SELECT "season" FROM "seasons" WHERE "division"='washington bullets';
## Task Generate a SQL query to answer the following question: `In which Season was the Division Washington Bullets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" text, "losse...
SELECT "season" FROM "seasons" WHERE "wins"='29' AND "finish"='3rd';
## Task Generate a SQL query to answer the following question: `In which season were there Wins of 29 and a Finished place of 3rd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons" ( "season" text, "division" text, "finish" text, "wins" ...
SELECT "easa_eu" FROM "charter_airlines" WHERE "notes"='aoc 135';
## Task Generate a SQL query to answer the following question: `What is the EASA (EU) when the notes show aoc 135?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" ...
SELECT "notes" FROM "charter_airlines" WHERE "fleet_size"=3;
## Task Generate a SQL query to answer the following question: `What is the Notes when the fleet size is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text, ...
SELECT "fleet_size" FROM "charter_airlines" WHERE "easa_eu"='no';
## Task Generate a SQL query to answer the following question: `What is the Fleet Size when the EASA (EU) is no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" te...
SELECT "airline" FROM "charter_airlines" WHERE "easa_eu"='yes';
## Task Generate a SQL query to answer the following question: `hat is the Airline when the EASA (EU) is yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" text,...
SELECT "airline" FROM "charter_airlines" WHERE "notes"='aoc 135';
## Task Generate a SQL query to answer the following question: `What is the Airline when the notes show aoc 135?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "charter_airlines" ( "airline" text, "fleet_size" real, "notes" text, "iosa_iata" te...
SELECT MAX("year") FROM "achievements" WHERE "competition"='new york city marathon';
## Task Generate a SQL query to answer the following question: `What is the highest Year with a Competition that is new york city marathon?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" t...
SELECT "notes" FROM "achievements" WHERE "venue"='venice, italy';
## Task Generate a SQL query to answer the following question: `What is the Notes with a Venue that is venice, italy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text...
SELECT "1994" FROM "doubles_performance_timeline" WHERE "2002"='atp masters series';
## Task Generate a SQL query to answer the following question: `What is 1994, when 2002 is ATP Masters Series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" t...
SELECT "2001" FROM "doubles_performance_timeline" WHERE "1987"='n/a' AND "career_sr"='n/a';
## Task Generate a SQL query to answer the following question: `What is 2001, when 1987 is N/A, and when Career SR is N/A?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text...
SELECT "1989" FROM "doubles_performance_timeline" WHERE "1999"='f' AND "1994"='2r';
## Task Generate a SQL query to answer the following question: `What is 1989, when 1999 is F, and when 1994 is 2R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "198...
SELECT "2001" FROM "doubles_performance_timeline" WHERE "1990"='a' AND "1987"='nme' AND "1997"='1r';
## Task Generate a SQL query to answer the following question: `What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "...
SELECT "1997" FROM "doubles_performance_timeline" WHERE "2003"='0 / 4';
## Task Generate a SQL query to answer the following question: `What is 1997, when 2003 is 0 / 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "1987" text, "1988" text, "1989" text, "1990"...
SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"<2 AND "12_inch"=0 AND "total">8;
## Task Generate a SQL query to answer the following question: `What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb less than 2, a 12-inch of 0, and a Total larger than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hits_on_german_ships" ( ...
SELECT MIN("12_inch") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb"=0 AND "ship"='seydlitz';
## Task Generate a SQL query to answer the following question: `What is the lowest 12-inch when the 13.5-inch/1250lb was 0, and the ship is seydlitz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_14...
SELECT MIN("13_5_inch_1400lb") FROM "hits_on_german_ships" WHERE "13_5_inch_1250lb">1 AND "12_inch"<8;
## Task Generate a SQL query to answer the following question: `What is the lowest 13.5-inch/1400lb with a 13.5-inch/1250lb of more than 1, and a 12-inch smaller than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hits_on_german_ships" ( "ship" t...
SELECT AVG("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "13_5_inch_1400lb"<0;
## Task Generate a SQL query to answer the following question: `What is the average Total when the ship was lützow, with a 13.5-inch/1400lb smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_i...
SELECT MAX("total") FROM "hits_on_german_ships" WHERE "ship"='lützow' AND "12_inch"<8;
## Task Generate a SQL query to answer the following question: `What is the highest Total when the ship was lützow, and a 12-inch less than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "hits_on_german_ships" ( "ship" text, "13_5_inch_1400lb" r...
SELECT AVG("total") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=0 AND "agricultural_panel">5;
## Task Generate a SQL query to answer the following question: `What is the average total 0 are nominated by the Taoiseach and the agricultural panel is greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_14th_seanad" ( ...
SELECT SUM("cultural_and_educational_panel") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel"=0 AND "agricultural_panel">0;
## Task Generate a SQL query to answer the following question: `What is the total of the cultural and educational panel when the industrial and commercial panel is 0 and the agricultural panel is greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE...
SELECT SUM("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "nominated_by_the_taoiseach"=2 AND "industrial_and_commercial_panel">0;
## Task Generate a SQL query to answer the following question: `What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "...
SELECT MAX("labour_panel") FROM "composition_of_the_14th_seanad" WHERE "university_of_dublin"<2 AND "agricultural_panel">5;
## Task Generate a SQL query to answer the following question: `What is the highest labour panel when the university of dublin is less than 2 and the agricultural panel is greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_t...
SELECT AVG("university_of_dublin") FROM "composition_of_the_14th_seanad" WHERE "industrial_and_commercial_panel">4 AND "national_university_of_ireland">3;
## Task Generate a SQL query to answer the following question: `What is the average for the university of dublin when the industrial and commercial panel is greater than 4 and the total of the national university of ireland is larger than 3?` ### Database Schema This query will run on a database whose schema is repre...
SELECT "year" FROM "chinese_professional_baseball_league" WHERE "site"='tainan city' AND "score"='8–6';
## Task Generate a SQL query to answer the following question: `When has a Site of tainan city and a Score of 8–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "losing_t...
SELECT "score" FROM "chinese_professional_baseball_league" WHERE "winning_team"='wei chuan dragons';
## Task Generate a SQL query to answer the following question: `Which Score that has a Winning team of wei chuan dragons?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chinese_professional_baseball_league" ( "year" real, "winning_team" text, "l...
SELECT "2011_passengers_in_millions" FROM "world" WHERE "distance"='1271km';
## Task Generate a SQL query to answer the following question: `What is the number of 2011 passengers in millions that have traveled a distance of 1271km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world" ( "rank" real, "city_1" text, "city_...
SELECT COUNT("2012_passengers_in_millions") FROM "world" WHERE "distance"='1075km';
## Task Generate a SQL query to answer the following question: `What is the number of 2012 passengers in millions that have traveled a distance of 1075km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world" ( "rank" real, "city_1" text, "city_...
SELECT "city_1" FROM "world" WHERE "2012_passengers_in_millions"<8.211 AND "distance"='1075km';
## Task Generate a SQL query to answer the following question: `What is the City 1 that has less than 8.211 million passengers and traveled 1075km in distance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world" ( "rank" real, "city_1" text, "...
SELECT "second" FROM "1992_93_to_1996_97" WHERE "sixth"='victoria';
## Task Generate a SQL query to answer the following question: `What is SECOND, when SIXTH is Victoria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "fourth" t...
SELECT "second" FROM "1992_93_to_1996_97" WHERE "first"='western australia';
## Task Generate a SQL query to answer the following question: `What is SECOND, when FIRST is Western Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1992_93_to_1996_97" ( "season" text, "first" text, "second" text, "third" text, "...
SELECT COUNT("lost") FROM "torneio_rio_s_o_paulo" WHERE "team"='corinthians' AND "points">22;
## Task Generate a SQL query to answer the following question: `How many losses does corinthians have when they scored over 22 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "torneio_rio_s_o_paulo" ( "position" real, "team" text, "points"...
SELECT "termination" FROM "current_line_of_headphones" WHERE "earpads"='comfort pads' AND "us_msrp"='$150';
## Task Generate a SQL query to answer the following question: `What was the termination type for the headphones with comfort pads and selling for $150?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" t...
SELECT "earpads" FROM "current_line_of_headphones" WHERE "headphone_class"='reference' AND "us_msrp"='$695';
## Task Generate a SQL query to answer the following question: `What are the earpads for the headphones that are Reference class and have MSRP of $695?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" te...
SELECT "earpads" FROM "current_line_of_headphones" WHERE "driver_matched_d_b">0.05 AND "us_msrp"='$79';
## Task Generate a SQL query to answer the following question: `What earpads do the headphones with driver-matched dB over 0.05 and MSRP of $79 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_line_of_headphones" ( "headphone_model" text...
SELECT "race_name" FROM "calendar" WHERE "round"=1;
## Task Generate a SQL query to answer the following question: `What is the name of the race from round 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" t...
SELECT "race_name" FROM "calendar" WHERE "city_state"='sydney, new south wales';
## Task Generate a SQL query to answer the following question: `Which race was in Sydney, New South Wales?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "race_name" text, "circuit" text, "city_state" text, "date" t...