question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What's the lowest Votes (SW Eng) with a % (SW Eng) that's larger than 2.1, Votes (Gib) of 1,127, and a Change (SW Eng) that's larger than -3.6?
CREATE TABLE "results" ( "party" text, "votes_gib" real, "votes_sw_eng" real, "pct_gib" real, "pct_sw_eng" real, "change_sw_eng" real, "seats" real );
SELECT MIN("votes_sw_eng") FROM "results" WHERE "pct_sw_eng">2.1 AND "votes_gib"='1,127' AND "change_sw_eng">-3.6;
2-1466144-1
Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=14 AND "total">42;
2-14306965-3
Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='total' AND "gold"<14;
2-14306965-3
How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "medal_table" WHERE "nation"='kazakhstan (kaz)' AND "gold">0;
2-14306965-3
Which Total is the highest one that has a Rank of 1, and a Gold larger than 11?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_table" WHERE "rank"='1' AND "gold">11;
2-14306965-3
Who finished 3rd in Oslo?
CREATE TABLE "individual_events" ( "round" text, "venue" text, "discipline" text, "date" text, "winner" text, "second" text, "third" text );
SELECT "third" FROM "individual_events" WHERE "venue"='oslo';
2-13955259-1
On November 22, what were the results of the friendly type game?
CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "results" FROM "1950" WHERE "type_of_game"='friendly' AND "date"='november 22';
2-14305653-28
On October 8, what city was the game played?
CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "city" FROM "1950" WHERE "date"='october 8';
2-14305653-28
On June 29, who was the opponent?
CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "opponent" FROM "1950" WHERE "date"='june 29';
2-14305653-28
What date had an opponent of Sweden and a friendly type game?
CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "date" FROM "1950" WHERE "type_of_game"='friendly' AND "opponent"='sweden';
2-14305653-28
What were the results on September 7?
CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text );
SELECT "results" FROM "1950" WHERE "date"='september 7';
2-14305653-28
Which 1990–95 is the highest one that has a State of karnataka, and a 2001–05 smaller than 0.2?
CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real );
SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='karnataka' AND "2001_05"<0.2;
2-14496392-1
Which 1996-00 is the lowest one that has a State of maharashtra, and a 2006–10 smaller than 0.26?
CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real );
SELECT MIN("1996_00") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='maharashtra' AND "2006_10"<0.26;
2-14496392-1
Which 1990–95 is the average one that has a 2001–05 larger than 0.55?
CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real );
SELECT AVG("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "2001_05">0.55;
2-14496392-1
Which 1990–95 is the highest one that has a State of assam, and a 1996-00 smaller than 0.02?
CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real );
SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='assam' AND "1996_00"<0.02;
2-14496392-1
What is the Winning team on january 28, 2006?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "winning_team" FROM "2005_2006" WHERE "date"='january 28, 2006';
2-14175075-3
Which Series has a Winning team of iowa state and a Sport of w basketball?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "series" FROM "2005_2006" WHERE "winning_team"='iowa state' AND "sport"='w basketball';
2-14175075-3
Which Series has a Site of ames on september 10, 2005?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "date"='september 10, 2005';
2-14175075-3
Which Series has a Site of ames and a Sport of w gymnastics?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "sport"='w gymnastics';
2-14175075-3
WHich port is on march 17, 2006 and has a Winning team of iowa state?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "sport" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';
2-14175075-3
Which Site has a Date of march 17, 2006 and an iowa state Winning team?
CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text );
SELECT "site" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';
2-14175075-3
Who was the opponent of the game before week 11 on October 31, 1976?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "date"='october 31, 1976';
2-15087558-2
What is the highest attendance of the game on week 9?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "week"=9;
2-15087558-2
When is the last episode air date for season 3?
CREATE TABLE "seasons" ( "season" real, "episodes" real, "first_air_date" text, "last_air_date" text, "timeslot" text, "dvd_release" text );
SELECT "last_air_date" FROM "seasons" WHERE "season"=3;
2-1375281-1
Which season had its last episode air on March 11, 2001?
CREATE TABLE "seasons" ( "season" real, "episodes" real, "first_air_date" text, "last_air_date" text, "timeslot" text, "dvd_release" text );
SELECT "season" FROM "seasons" WHERE "last_air_date"='march 11, 2001';
2-1375281-1
What games have more than 1 draw?
CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT AVG("games") FROM "first_round" WHERE "drawn">1;
2-14148130-1
What game is the lowest with 1 draw and less than 7 points?
CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real );
SELECT MIN("games") FROM "first_round" WHERE "drawn"=1 AND "points"<7;
2-14148130-1
Manager of art griggs had what lowest year?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT MIN("year") FROM "western_league" WHERE "manager"='art griggs';
2-14058693-1
Manager of spencer abbott, and a Year of 1919 involves what playoffs?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "playoffs" FROM "western_league" WHERE "manager"='spencer abbott' AND "year"=1919;
2-14058693-1
Manager of marty berghammer / nick allen is what year?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "year" FROM "western_league" WHERE "manager"='marty berghammer / nick allen';
2-14058693-1
Manager of lyman lamb / marty berghammer is in what league?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "league" FROM "western_league" WHERE "manager"='lyman lamb / marty berghammer';
2-14058693-1
Manager of marty berghammer, and a Finish of 1st involved what lowest year?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT MIN("year") FROM "western_league" WHERE "manager"='marty berghammer' AND "finish"='1st';
2-14058693-1
Playoffs of league champs, and a Record of 77-63 is in what league?
CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text );
SELECT "league" FROM "western_league" WHERE "playoffs"='league champs' AND "record"='77-63';
2-14058693-1
Name the 2005 with 2007 of sf
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "2005" FROM "doubles" WHERE "2007"='sf';
2-1398079-6
Name the 2006 with 2008 of 1r and 2004 of 1r
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "2006" FROM "doubles" WHERE "2008"='1r' AND "2004"='1r';
2-1398079-6
Name the 2011 with 2002 of 1r and 2009 of a
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "2011" FROM "doubles" WHERE "2002"='1r' AND "2009"='a';
2-1398079-6
Name the 1999 with 2011 of 2r
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "1999" FROM "doubles" WHERE "2011"='2r';
2-1398079-6
Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "2008" FROM "doubles" WHERE "1998"='a' AND "2002"='1r' AND "2004"='2r';
2-1398079-6
Name the 2001 with 2007 of sf
CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text );
SELECT "2001" FROM "doubles" WHERE "2007"='sf';
2-1398079-6
Which AAA class has Fort Bend Dulles as a Class AAAAA?
CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text );
SELECT "class_aaa" FROM "individual" WHERE "class_aaaaa"='fort bend dulles';
2-14630796-1
Which school year was the Class AAA dalhart and the class AAAAA edinburg?
CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text );
SELECT "school_year" FROM "individual" WHERE "class_aaa"='dalhart' AND "class_aaaaa"='edinburg';
2-14630796-1
For what Class A is the school year 1987-88?
CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text );
SELECT "class_a" FROM "individual" WHERE "school_year"='1987-88';
2-14630796-1
What is the Class AAAAA when Class AA is Tuscola Jim Ned and Class AAA Snyder?
CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text );
SELECT "class_aaaaa" FROM "individual" WHERE "class_aa"='tuscola jim ned' AND "class_aaa"='snyder';
2-14630796-1
What is the Class AAAAA when the Class AAA is Gonzales?
CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text );
SELECT "class_aaaa" FROM "individual" WHERE "class_aaa"='gonzales';
2-14630796-1
Which team scored less than 35 points?
CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT "team" FROM "campeonato_brasileiro_s_rie_b" WHERE "points"<35;
2-15206839-2
Which Position has a Team of criciúma, and a Drawn larger than 8?
CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("position") FROM "campeonato_brasileiro_s_rie_b" WHERE "team"='criciúma' AND "drawn">8;
2-15206839-2
Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56?
CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT "drawn" FROM "campeonato_brasileiro_s_rie_b" WHERE "points"<46 AND "position"<20 AND "lost"<19 AND "against"=56;
2-15206839-2
Which Played has a Lost larger than 14, and a Drawn of 10, and Points larger than 46?
CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost">14 AND "drawn"=10 AND "points">46;
2-15206839-2
What's the name of a Rank 3 with a 1st (m) smaller than 199.5?
CREATE TABLE "harrachov" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_wc_points_rank" text );
SELECT "name" FROM "harrachov" WHERE "1st_m"<199.5 AND "rank"=3;
2-14407512-14
What's the Overall WC points (Rank) for Rank 2?
CREATE TABLE "harrachov" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_wc_points_rank" text );
SELECT "overall_wc_points_rank" FROM "harrachov" WHERE "rank"=2;
2-14407512-14
What score has devin brown (24) as the leading scorer?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "score" FROM "january" WHERE "leading_scorer"='devin brown (24)';
2-13759275-5
Which height, in meters, has 36 floors?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"=36;
2-14565330-3
Which Floors is the highest one that has a Name of one indiana square?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT MAX("floors") FROM "timeline_of_tallest_buildings" WHERE "name"='one indiana square';
2-14565330-3
How tall is the Street address of 07.0 200 east washington street?
CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real );
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "street_address"='07.0 200 east washington street';
2-14565330-3
What was the date of the game where the indians record was 37-44?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='37-44';
2-14546523-6
What city is Garfield County Museum located in?
CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text );
SELECT "town_city" FROM "museums_with_paleontology_holdings" WHERE "name"='garfield county museum';
2-15104400-2
Is the Rudyard Depot Museum on the Dinosaur Trail?
CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text );
SELECT "on_dinosaur_trail" FROM "museums_with_paleontology_holdings" WHERE "name"='rudyard depot museum';
2-15104400-2
What is the name of the museum located in Malta with no associated field digs?
CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text );
SELECT "name" FROM "museums_with_paleontology_holdings" WHERE "associated_field_digs"='no' AND "town_city"='malta';
2-15104400-2
What is the museum name located in Rudyard?
CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text );
SELECT "name" FROM "museums_with_paleontology_holdings" WHERE "town_city"='rudyard';
2-15104400-2
What is the region that the Blaine County Museum is located in?
CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text );
SELECT "region" FROM "museums_with_paleontology_holdings" WHERE "name"='blaine county museum';
2-15104400-2
What Tournament had a Score of 6–3, 2–6, 6–3?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_6_2_4" WHERE "score"='6–3, 2–6, 6–3';
2-14933765-5
What Partner had a Score of 6–3, 2–6, 6–3?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_6_2_4" WHERE "score"='6–3, 2–6, 6–3';
2-14933765-5
Who were the Opponents in the match on a Hard Surface with Catherine Suire as Partner and Outcome of runner-up?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "doubles_6_2_4" WHERE "outcome"='runner-up' AND "surface"='hard' AND "partner"='catherine suire';
2-14933765-5
Who was the visiting team when the record was 6–12–5–1?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "visitor" FROM "game_log" WHERE "record"='6–12–5–1';
2-14864532-2
Who was the home team when the record was 21–45–8–5?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "game_log" WHERE "record"='21–45–8–5';
2-14864532-2
Which of the attributes has is cancelable and an answer of yes for bubbles?
CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "attribute" FROM "pointer_events" WHERE "cancelable"='yes' AND "bubbles"='yes';
2-1507852-3
Which bubbles has an atribute of onlostpointercapture?
CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "bubbles" FROM "pointer_events" WHERE "attribute"='onlostpointercapture';
2-1507852-3
For the attribute of onpointerout, what is the cancelable?
CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "cancelable" FROM "pointer_events" WHERE "attribute"='onpointerout';
2-1507852-3
Which bubble have a cancelable of yes and an attribute of onpointerdown?
CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text );
SELECT "bubbles" FROM "pointer_events" WHERE "cancelable"='yes' AND "attribute"='onpointerdown';
2-1507852-3
What's the highest grid of Ronnie Bremer, who had more than 18 points?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT MAX("grid") FROM "race" WHERE "driver"='ronnie bremer' AND "points">18;
2-14198310-2
What are the most points Lap 70 had with a grid larger than 16?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT MAX("points") FROM "race" WHERE "laps"=70 AND "grid">16;
2-14198310-2
What is the name of the track in Holland?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "city"='holland';
2-14688681-4
What is the track in Washington state?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "state"='washington';
2-14688681-4
What is the city the track of manzanita speedway is in?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "city" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='manzanita speedway';
2-14688681-4
What is the surface of the track at the indianapolis speedrome?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "surface" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='indianapolis speedrome';
2-14688681-4
What is the surface for the riverhead raceway?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "surface" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='riverhead raceway';
2-14688681-4
What city is the indianapolis speedrome in?
CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text );
SELECT "city" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='indianapolis speedrome';
2-14688681-4
What is the IUPAC name for chloroform?
CREATE TABLE "common_trihalomethanes_ordered_by_molecu" ( "molecular_formula" text, "iupac_name" text, "cas_registry_number" text, "common_name" text, "other_names" text );
SELECT "iupac_name" FROM "common_trihalomethanes_ordered_by_molecu" WHERE "common_name"='chloroform';
2-1482837-1
What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "szdsz" FROM "opinion_polls" WHERE "mszp"='25%' AND "date"='25/2/2009';
2-15125074-1
What percentage of others have an SZDSZ of 4% and a Fidesz of 60%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "others" FROM "opinion_polls" WHERE "szdsz"='4%' AND "fidesz"='60%';
2-15125074-1
What is the percentage of others with a Fidesz of 62% and a Jobbik of 4%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "others" FROM "opinion_polls" WHERE "fidesz"='62%' AND "jobbik"='4%';
2-15125074-1
On what date do others have 5% with an SZDSZ of 5%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "date" FROM "opinion_polls" WHERE "others"='5%' AND "szdsz"='5%';
2-15125074-1
What is the SZDSZ percentage with a Jobbik of 5% and a Fidesz of 68%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "szdsz" FROM "opinion_polls" WHERE "jobbik"='5%' AND "fidesz"='68%';
2-15125074-1
What is the Jobbik percentage with a Fidesz of 61% and others of 2%?
CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text );
SELECT "jobbik" FROM "opinion_polls" WHERE "fidesz"='61%' AND "others"='2%';
2-15125074-1
What's listed for the Turnout % with a Ngilu of 3,429?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "turnout_pct" FROM "by_province" WHERE "ngilu"='3,429';
2-14653751-2
What's listed for the Turnout % with a Raila of 519,180?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "turnout_pct" FROM "by_province" WHERE "raila"='519,180';
2-14653751-2
What's listed for the Turnout % with a Ngilu of 30,535?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "turnout_pct" FROM "by_province" WHERE "ngilu"='30,535';
2-14653751-2
What's listed for the Registered Voters with a Ngilu of 3,429?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "registered_voters" FROM "by_province" WHERE "ngilu"='3,429';
2-14653751-2
What is listed for the Province with a Wamalwa of 4,431?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "province" FROM "by_province" WHERE "wamalwa"='4,431';
2-14653751-2
What's listed for the Wamalwa that has a Turnout % of 55.9%?
CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text );
SELECT "wamalwa" FROM "by_province" WHERE "turnout_pct"='55.9%';
2-14653751-2
What were the average partial failures when the rocket was Ariane 5?
CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT AVG("partial_failures") FROM "by_type" WHERE "rocket"='ariane 5';
2-13894411-7
What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes?
CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT AVG("launches") FROM "by_type" WHERE "failures"=0 AND "rocket"='soyuz' AND "successes"<12;
2-13894411-7
What is the sum of launches with Long March 3 and 0 failures?
CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT SUM("launches") FROM "by_type" WHERE "rocket"='long march 3' AND "failures">0;
2-13894411-7
What is the least amount of failures with 1 launch and 0 partial failures?
CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT MIN("failures") FROM "by_type" WHERE "launches"=1 AND "partial_failures"<0;
2-13894411-7
What were the average launches for Ariane 5 and 0 partial failures?
CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real );
SELECT AVG("launches") FROM "by_type" WHERE "rocket"='ariane 5' AND "partial_failures"<0;
2-13894411-7
What was the race of the jockey in na group in 4th place?
CREATE TABLE "2000_01_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );
SELECT "race" FROM "2000_01_season_as_a_four_year_old" WHERE "group"='na' AND "result"='4th';
2-1358608-2
How far did p. carbery run to get 2nd?
CREATE TABLE "2000_01_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );
SELECT "distance" FROM "2000_01_season_as_a_four_year_old" WHERE "jockey"='p. carbery' AND "result"='2nd';
2-1358608-2
What is the Removal that has a Trim of xe (2009)?
CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text );
SELECT "transmission" FROM "engines" WHERE "trim"='xe (2009)';
2-1373768-1
What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6
CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text );
SELECT "torque" FROM "engines" WHERE "power"='hp (kw)' AND "trim"='xr (2009)';
2-1373768-1
Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='oshawa generals (oha)' AND "player"='bob kelly';
2-14291300-14