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