question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the highest Rank, when U-17 Goals is "7", and when Player is "Cesc Fàbregas"?
CREATE TABLE "top_goalscorers" ( "rank" real, "player" text, "club_s" text, "year_s" text, "u_17_goals" real );
SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=7 AND "player"='cesc fàbregas';
2-17277486-6
What is the highest Rank, when U-17 Goals is "9"?
CREATE TABLE "top_goalscorers" ( "rank" real, "player" text, "club_s" text, "year_s" text, "u_17_goals" real );
SELECT MAX("rank") FROM "top_goalscorers" WHERE "u_17_goals"=9;
2-17277486-6
What Competition has a Result of Draw?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "result"='draw';
2-17004178-1
What is the Date of the Competition with a Score of 1–2?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "date" FROM "international_goals" WHERE "score"='1–2';
2-17004178-1
What New Delhi Competition has a Result of Loss?
CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "venue"='new delhi' AND "result"='loss';
2-17004178-1
How many rounds in the event when record is 1-5?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "record"='1-5';
2-17446153-2
Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "location" text );
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "round">1 AND "record"='42-27-10';
2-17446153-2
Who is team E when Jason Manning is Team F?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_e" FROM "co_hort_teams" WHERE "team_f"='jason manning';
2-17093193-1
Who is Team A when wilma hofschneider-david is team C?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_a" FROM "co_hort_teams" WHERE "team_c"='wilma hofschneider-david';
2-17093193-1
Who is team f when Aida Gagaring is team A?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_f" FROM "co_hort_teams" WHERE "team_a"='aida gagaring';
2-17093193-1
Who is Team D when Carmen Ada is team C?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_d" FROM "co_hort_teams" WHERE "team_c"='carmen ada';
2-17093193-1
Who is team e when Aaron Solloway is team D?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_e" FROM "co_hort_teams" WHERE "team_d"='aaron solloway';
2-17093193-1
Who is team c when dhez javier is team e?
CREATE TABLE "co_hort_teams" ( "team_a" text, "team_c" text, "team_d" text, "team_e" text, "team_f" text );
SELECT "team_c" FROM "co_hort_teams" WHERE "team_e"='dhez javier';
2-17093193-1
What was the country of the player at +5?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "country" FROM "final_round" WHERE "to_par"='+5';
2-17245565-8
Which player finished at +4?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "player" FROM "final_round" WHERE "to_par"='+4';
2-17245565-8
What was Bert Yancey's finishing score to par?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "player"='bert yancey';
2-17245565-8
Who was the bachelorette of the season where ian mckee was the winner?
CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text );
SELECT "bachelorette" FROM "bachelorettes" WHERE "winner"='ian mckee';
2-174953-1
What is the earliest season with an advertising account manager profile?
CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text );
SELECT MIN("season") FROM "bachelorettes" WHERE "profile"='advertising account manager';
2-174953-1
Who is the bachelorette of the season that premiered on May 24, 2010?
CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text );
SELECT "bachelorette" FROM "bachelorettes" WHERE "premiered"='may 24, 2010';
2-174953-1
Who is the bachelorette after season 8?
CREATE TABLE "bachelorettes" ( "season" real, "premiered" text, "bachelorette" text, "profile" text, "winner" text, "runner_s_up" text, "proposal" text );
SELECT "bachelorette" FROM "bachelorettes" WHERE "season">8;
2-174953-1
When the conference is west coast and the number of bids are at 2, what's the percentage of games won?
CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text );
SELECT "win_pct" FROM "record_by_conference" WHERE "num_of_bids"=2 AND "conference"='west coast';
2-16655323-5
If a team had a percentage of games won recorded as .429, what Championship Game was played?
CREATE TABLE "record_by_conference" ( "conference" text, "num_of_bids" real, "record" text, "win_pct" text, "round_of_32" text, "sweet_sixteen" text, "elite_eight" text, "final_four" text, "championship_game" text );
SELECT "championship_game" FROM "record_by_conference" WHERE "win_pct"='.429';
2-16655323-5
What was the attendance for the game in Week 3?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "week"=3;
2-16712759-1
On what date was the opponent the Green Bay Packers?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "opponent"='green bay packers';
2-16712759-1
When did Ismail Qemali Bej's term start?
CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text );
SELECT "term_start" FROM "1912_1914" WHERE "name"='ismail qemali bej';
2-167225-1
When did Fejzi Bej Alizoti's term end?
CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text );
SELECT "term_end" FROM "1912_1914" WHERE "name"='fejzi bej alizoti';
2-167225-1
When did the term end for the person who started their term on 28 November 1912?
CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text );
SELECT "term_end" FROM "1912_1914" WHERE "term_start"='28 november 1912';
2-167225-1
When did Fejzi Bej Alizoti's term start?
CREATE TABLE "1912_1914" ( "name" text, "born_died" text, "term_start" text, "term_end" text, "political_party" text );
SELECT "term_start" FROM "1912_1914" WHERE "name"='fejzi bej alizoti';
2-167225-1
What is the sum of Points 1, when Team is "Gainsborough Trinity", and when Played is greater than 46?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT SUM("points_1") FROM "final_table" WHERE "team"='gainsborough trinity' AND "played">46;
2-17367788-1
What is the total number of Points 1, when Lost is less than 20, and when Goals For is greater than 92?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT COUNT("points_1") FROM "final_table" WHERE "lost"<20 AND "goals_for">92;
2-17367788-1
What is the total number of Position, when Played is less than 46?
CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT COUNT("position") FROM "final_table" WHERE "played"<46;
2-17367788-1
Which Location has a Frequency of 102.5 fm?
CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text );
SELECT "location" FROM "radio" WHERE "frequency"='102.5 fm';
2-17059869-1
Which Call sign has a Frequency of 102.5 fm?
CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text );
SELECT "call_sign" FROM "radio" WHERE "frequency"='102.5 fm';
2-17059869-1
Which Owner has a Name / Format of 105.3 kool fm - hot adult contemporary?
CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text );
SELECT "owner" FROM "radio" WHERE "name_format"='105.3 kool fm - hot adult contemporary';
2-17059869-1
Which Location has a Call sign of cjtw-fm?
CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text );
SELECT "location" FROM "radio" WHERE "call_sign"='cjtw-fm';
2-17059869-1
Which Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm?
CREATE TABLE "radio" ( "frequency" text, "call_sign" text, "location" text, "name_format" text, "owner" text );
SELECT "frequency" FROM "radio" WHERE "owner"='rogers communications rogers radio' AND "call_sign"='cikz-fm';
2-17059869-1
What is the lowest laps that Vittorio Iannuzzo completed?
CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT MIN("laps") FROM "superbike_race_1_classification" WHERE "rider"='vittorio iannuzzo';
2-17564943-1
What is the total time that it took for the driver to finish 14 laps?
CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "time" FROM "superbike_race_1_classification" WHERE "laps"=14;
2-17564943-1
What is the Grid of Régis Laconi's bike that is a Kawasaki zx-10r?
CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "grid" FROM "superbike_race_1_classification" WHERE "bike"='kawasaki zx-10r' AND "rider"='régis laconi';
2-17564943-1
What is the name of the bike that has a grid number smaller than 9 with a time of +7.764?
CREATE TABLE "superbike_race_1_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real );
SELECT "bike" FROM "superbike_race_1_classification" WHERE "grid"<9 AND "time"='+7.764';
2-17564943-1
Who was the French Elector Elevated on 1288, May 16?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text );
SELECT "elector" FROM "cardinal_electors" WHERE "nationality"='french' AND "elevated"='1288, may 16';
2-16902811-1
What Elector has the Title of Titulus S. Cecilia?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text );
SELECT "elector" FROM "cardinal_electors" WHERE "title"='titulus s. cecilia';
2-16902811-1
What is the Nationality of the Deacon of S. Maria in Via Lata?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text );
SELECT "nationality" FROM "cardinal_electors" WHERE "title"='deacon of s. maria in via lata';
2-16902811-1
What is the Title of Elector Giovanni Boccamazza?
CREATE TABLE "cardinal_electors" ( "elector" text, "nationality" text, "order" text, "title" text, "elevated" text, "elevator" text );
SELECT "title" FROM "cardinal_electors" WHERE "elector"='giovanni boccamazza';
2-16902811-1
What was the record for the date above 27 and an opponent of the St. Louis Blues?
CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date">27 AND "opponent"='st. louis blues';
2-17360752-6
Who was the opponent for a game over 31 and a date over 30?
CREATE TABLE "game_log" ( "game" real, "date" real, "opponent" text, "score" text, "decision" text, "location_attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "game">31 AND "date">30;
2-17360752-6
What date did the song by jennifer lopez get issued?
CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text );
SELECT "issue_date_s" FROM "see_also" WHERE "artist"='jennifer lopez';
2-17481317-1
What song came from volume:issue 68:20-24?
CREATE TABLE "see_also" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" text, "song" text, "artist" text );
SELECT "song" FROM "see_also" WHERE "volume_issue"='68:20-24';
2-17481317-1
What is the total number of gold medals when there were 2 bronze medals, a total of more than 3 medals and ranked 61?
CREATE TABLE "2008_summer_olympics_medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("gold") FROM "2008_summer_olympics_medal_table" WHERE "bronze"=2 AND "rank"='61' AND "total">3;
2-17273204-1
What is the average total number of medals when there were 4 bronze, more than 2 silver, and less than 7 gold medals?
CREATE TABLE "2008_summer_olympics_medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("total") FROM "2008_summer_olympics_medal_table" WHERE "bronze"=4 AND "silver">2 AND "gold"<7;
2-17273204-1
What is the lowest episode number with an original airdate on 8 June 2008?
CREATE TABLE "series_1_2008_ratings" ( "episode" real, "original_airdate" text, "timeslot_approx" text, "viewers_millions" real, "nightly_rank" text );
SELECT MIN("episode") FROM "series_1_2008_ratings" WHERE "original_airdate"='8 june 2008';
2-17111841-1
Who was number 4 when Natalie was number 9?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_4" FROM "female_names" WHERE "no_9"='natalie';
2-16304563-4
Who was number 7 when Olivia was number 5 and Emma was number 2?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_7" FROM "female_names" WHERE "no_5"='olivia' AND "no_2"='emma';
2-16304563-4
When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was number 5?
CREATE TABLE "female_names" ( "region_year" text, "no_1" text, "no_2" text, "no_3" text, "no_4" text, "no_5" text, "no_6" text, "no_7" text, "no_8" text, "no_9" text, "no_10" text );
SELECT "no_5" FROM "female_names" WHERE "no_8"='chloe' AND "no_2"='olivia' AND "no_1"='emma' AND "no_4"='ava';
2-16304563-4
What platform is the company Surfstats Software?
CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text );
SELECT "platform" FROM "proprietary" WHERE "company"='surfstats software';
2-16651861-2
What is the USD price for Tealeaf?
CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text );
SELECT "price_in_usd" FROM "proprietary" WHERE "company"='tealeaf';
2-16651861-2
What is the platform for the latest release 5.0.3?
CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text );
SELECT "platform" FROM "proprietary" WHERE "latest_stable_release"='5.0.3';
2-16651861-2
What is the platform for the latest release 8.4?
CREATE TABLE "proprietary" ( "name" text, "company" text, "platform" text, "latest_stable_release" text, "price_in_usd" text );
SELECT "platform" FROM "proprietary" WHERE "latest_stable_release"='8.4';
2-16651861-2
What is the lowest amount of assists for more than 5 games?
CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real );
SELECT MIN("assists") FROM "hockey_canada" WHERE "games_played">5;
2-1689086-1
What is the highest amount of points with less than 5 assists and less than 2 goals?
CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real );
SELECT MAX("points") FROM "hockey_canada" WHERE "assists"<5 AND "goals"<2;
2-1689086-1
How many points on average are there for less than 5 games played?
CREATE TABLE "hockey_canada" ( "event" text, "games_played" real, "goals" real, "assists" real, "points" real );
SELECT AVG("points") FROM "hockey_canada" WHERE "games_played"<5;
2-1689086-1
Which opponent has w 17-0 as the result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "result"='w 17-0';
2-17183877-2
Which country has the Narita International Airport?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "destinations" WHERE "airport"='narita international airport';
2-17572829-2
What is the IATA when the ICAO is wipp?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "iata" FROM "destinations" WHERE "icao"='wipp';
2-17572829-2
Which airport's ICAO is rpvi?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "airport" FROM "destinations" WHERE "icao"='rpvi';
2-17572829-2
Which country's IATA is ika?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "country" FROM "destinations" WHERE "iata"='ika';
2-17572829-2
What is the ICAO for the Yangon International Airport?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "icao" FROM "destinations" WHERE "airport"='yangon international airport';
2-17572829-2
What is the ICAO when the IATA is tgg?
CREATE TABLE "destinations" ( "city" text, "country" text, "iata" text, "icao" text, "airport" text );
SELECT "icao" FROM "destinations" WHERE "iata"='tgg';
2-17572829-2
On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?
CREATE TABLE "torneo_descentralizado_1966_present" ( "season" real, "date" text, "score" text, "winner" text, "venue" text, "competition_round" text );
SELECT "date" FROM "torneo_descentralizado_1966_present" WHERE "venue"='estadio alejandro villanueva' AND "season">2003 AND "competition_round"='torneo apertura' AND "winner"='universitario';
2-17299309-5
What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "director" FROM "submissions" WHERE "primary_language_s"='azerbaijani' AND "original_title"='buta';
2-17155980-1
What is Film Title Used In Nomination, when Primary Language(s) is "Azerbaijani, Russian"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "primary_language_s"='azerbaijani, russian';
2-17155980-1
What is Result, when Original Title is "Qala"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "result" FROM "submissions" WHERE "original_title"='qala';
2-17155980-1
What is Primary Language(s), when Director is "Ilgar Safat Category:Articles With hCards"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "primary_language_s" FROM "submissions" WHERE "director"='ilgar safat category:articles with hcards';
2-17155980-1
What is Year (Ceremony), when Director is "Farid Gumbatov Category:Articles With hCards"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "year_ceremony" FROM "submissions" WHERE "director"='farid gumbatov category:articles with hcards';
2-17155980-1
What is Director, when Original Title is "Sahə"?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "primary_language_s" text, "director" text, "result" text );
SELECT "director" FROM "submissions" WHERE "original_title"='sahə';
2-17155980-1
Who was the Home team that had a decider of Conklin?
CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text );
SELECT "home" FROM "playoffs" WHERE "decision"='conklin';
2-17371135-13
Game 71 was played against what team?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "game"=71;
2-17342287-8
What is the maximum game that was played against the New York Knickerbockers?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT MAX("game") FROM "game_log" WHERE "opponent"='new york knickerbockers';
2-17342287-8
What was the number of game that was played on March 19?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "game" FROM "game_log" WHERE "date"='march 19';
2-17342287-8
What is the average rank for more than 12 points?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "losses" real, "points" real );
SELECT AVG("rank") FROM "tournament_summary" WHERE "points">12;
2-16729094-1
What is the rank for less than 6 plays?
CREATE TABLE "tournament_summary" ( "rank" real, "team" text, "played" real, "wins" real, "losses" real, "points" real );
SELECT SUM("rank") FROM "tournament_summary" WHERE "played"<6;
2-16729094-1
For the draft pick from round 3 out of Mercer College what is the nationality?
CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text );
SELECT "nationality" FROM "draft_picks" WHERE "round"=3 AND "college"='mercer';
2-17383484-1
Who was the draft pick that went to college at Oral Roberts?
CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "college" text );
SELECT "player" FROM "draft_picks" WHERE "college"='oral roberts';
2-17383484-1
What is the smallest point total when the grid is larger than 5 and the time/retired is fire?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT MIN("points") FROM "race" WHERE "grid">5 AND "time_retired"='fire';
2-16326318-2
When Nelson Philippe drove with a grid larger than 16, what was the timre/retired?
CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real );
SELECT "time_retired" FROM "race" WHERE "grid">16 AND "driver"='nelson philippe';
2-16326318-2
What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "moto_gp_classification" WHERE "grid"<9 AND "laps"=21 AND "rider"='jeremy mcwilliams';
2-17036702-1
What is the lowest grid number that a race took place doing more than 21 laps?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps">21;
2-17036702-1
What is the total number of grids where there were races that had a time of 34:22.335?
CREATE TABLE "moto_gp_classification" ( "rider" text, "manufacturer" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time_retired"='34:22.335';
2-17036702-1
Which rank has final with 5:18.85?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "rank" FROM "results" WHERE "final"='5:18.85';
2-16961428-2
Which final has rank of 10?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "final" FROM "results" WHERE "rank"='10';
2-16961428-2
Which final has a run of 1:19.49?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "final" FROM "results" WHERE "run_3"='1:19.49';
2-16961428-2
Which run 2 with final of 5:24.47?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "run_2" FROM "results" WHERE "final"='5:24.47';
2-16961428-2
Which team has run 1 of 1:17.44?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "team" FROM "results" WHERE "run_1"='1:17.44';
2-16961428-2
Which team has run 3 of 1:20.77?
CREATE TABLE "results" ( "rank" text, "team" text, "run_1" text, "run_2" text, "run_3" text, "final" text );
SELECT "team" FROM "results" WHERE "run_3"='1:20.77';
2-16961428-2
Who was the home team when Manchester City was the away team?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='manchester city';
2-17520911-4
What was the score when the home team was Stockport County?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "third_round_proper" WHERE "home_team"='stockport county';
2-17520911-4
What is the Tie Number when Barnsley was the away team?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='barnsley';
2-17520911-4
What was the score of the game that took place on october 22, 1976?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "october" WHERE "date"='october 22, 1976';
2-16386910-2
What was the score of the game where the record was 2-2?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "october" WHERE "record"='2-2';
2-16386910-2
Who was the home team in the game with a record of 2-4?
CREATE TABLE "october" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "october" WHERE "record"='2-4';
2-16386910-2