question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Which vehicle failed at launch?
CREATE TABLE "program_details" ( "name" text, "launched" text, "vehicle" text, "ceased_operation" text, "notes" text );
SELECT "vehicle" FROM "program_details" WHERE "ceased_operation"='failed at launch';
2-17113304-1
What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?
CREATE TABLE "program_details" ( "name" text, "launched" text, "vehicle" text, "ceased_operation" text, "notes" text );
SELECT "notes" FROM "program_details" WHERE "vehicle"='scout x-4' AND "ceased_operation"='june 1971';
2-17113304-1
What was the ceased operation with a launch date of August 8, 1968?
CREATE TABLE "program_details" ( "name" text, "launched" text, "vehicle" text, "ceased_operation" text, "notes" text );
SELECT "ceased_operation" FROM "program_details" WHERE "launched"='august 8, 1968';
2-17113304-1
What was the ceased operation that launched June 29, 1961?
CREATE TABLE "program_details" ( "name" text, "launched" text, "vehicle" text, "ceased_operation" text, "notes" text );
SELECT "ceased_operation" FROM "program_details" WHERE "launched"='june 29, 1961';
2-17113304-1
What place in the United States having a score of 67-75-68=210?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "country"='united states' AND "score"='67-75-68=210';
2-17231086-5
What country is in T4 place having a score of 66-71-72=209?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "place"='t4' AND "score"='66-71-72=209';
2-17231086-5
What place is the United States in that has a score of 68-73-68=209?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "country"='united states' AND "score"='68-73-68=209';
2-17231086-5
Who is the player from the United States in T4 place with a score of 68-73-68=209?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "country"='united states' AND "place"='t4' AND "score"='68-73-68=209';
2-17231086-5
How many played when lost is more than 17, drawn is 15 and goals against is less than 75?
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" text );
SELECT AVG("played") FROM "final_table" WHERE "lost">17 AND "drawn"=15 AND "goals_against"<75;
2-17604661-1
what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15?
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" text );
SELECT SUM("position") FROM "final_table" WHERE "lost"<14 AND "goal_difference"='+1' AND "drawn">15;
2-17604661-1
How many lost when goals for is 43 and the position number is higher than 15?
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" text );
SELECT AVG("lost") FROM "final_table" WHERE "goals_for"=43 AND "position">15;
2-17604661-1
What was the score of the game against Charlotte?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "team"='charlotte';
2-17355716-8
Who had the high assists in the game against Memphis?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "game_log" WHERE "team"='memphis';
2-17355716-8
Who was the home team when Boston is the road team in game 4?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "home_team" FROM "nba_finals" WHERE "road_team"='boston' AND "game"='game 4';
2-17383484-3
What game had the result of 112-100?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "result"='112-100';
2-17383484-3
What game was played on May 29?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "date"='may 29';
2-17383484-3
What was the result of game 1?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "result" FROM "nba_finals" WHERE "game"='game 1';
2-17383484-3
What was the game when Houston was the home team and the result is 106-104?
CREATE TABLE "nba_finals" ( "game" text, "date" text, "home_team" text, "result" text, "road_team" text );
SELECT "game" FROM "nba_finals" WHERE "home_team"='houston' AND "result"='106-104';
2-17383484-3
What is the class of car that is earlier than 2005 and has a class position of 2nd?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"<2005 AND "class_pos"='2nd';
2-16514839-1
How many years was the number of laps 71?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );
SELECT COUNT("year") FROM "24_hours_of_le_mans_results" WHERE "laps"=71;
2-16514839-1
For a year that is later than 2002 what is the class position?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text );
SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "year">2002;
2-16514839-1
How many total rounds has lehigh as the college?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='lehigh';
2-17100961-28
What name has 5 as the pick, a round less than 25, ot as the position, at boston college?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "washington_redskins_draft_history" WHERE "pick"=5 AND "round"<25 AND "position"='ot' AND "college"='boston college';
2-17100961-28
How many overalls have E as the position, buddy payne as the name, and a pick less than 5?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='e' AND "name"='buddy payne' AND "pick"<5;
2-17100961-28
How many picks have charley sanders as the name, with a round greater than 22?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='charley sanders' AND "round">22;
2-17100961-28
Which 2011 has a 2012 larger than 9,998,000?
CREATE TABLE "north_america" ( "rank" real, "location" text, "2008" real, "2009" real, "2010" real, "2011" real, "2012" real );
SELECT MAX("2011") FROM "north_america" WHERE "2012">'9,998,000';
2-16578883-3
Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?
CREATE TABLE "north_america" ( "rank" real, "location" text, "2008" real, "2009" real, "2010" real, "2011" real, "2012" real );
SELECT AVG("2010") FROM "north_america" WHERE "rank"=1 AND "2009">'17,233,000';
2-16578883-3
Which 2012 has a 2011 of 17,142,000, and a 2010 smaller than 16,972,000?
CREATE TABLE "north_america" ( "rank" real, "location" text, "2008" real, "2009" real, "2010" real, "2011" real, "2012" real );
SELECT MIN("2012") FROM "north_america" WHERE "2011"='17,142,000' AND "2010"<'16,972,000';
2-16578883-3
Which 2009 has a 2012 of 17,536,000, and a 2010 smaller than 16,972,000?
CREATE TABLE "north_america" ( "rank" real, "location" text, "2008" real, "2009" real, "2010" real, "2011" real, "2012" real );
SELECT MAX("2009") FROM "north_america" WHERE "2012"='17,536,000' AND "2010"<'16,972,000';
2-16578883-3
What is the Attendance of the game against the Florida Panthers?
CREATE TABLE "game_log" ( "game" text, "date" text, "score" text, "opponent" text, "attendance" real, "record" text, "points" real );
SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='florida panthers';
2-17040191-4
What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?
CREATE TABLE "game_log" ( "game" text, "date" text, "score" text, "opponent" text, "attendance" real, "record" text, "points" real );
SELECT "opponent" FROM "game_log" WHERE "points">5 AND "attendance">'13,567';
2-17040191-4
When his record was 15–1–1 (1) where did he fight?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='15–1–1 (1)';
2-16389851-2
What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. 9"?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "date"='fri. nov. 9';
2-17344582-4
What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "opponent" FROM "game_log" WHERE "location"='boston garden' AND "game">1 AND "score"='115-105';
2-17344582-4
What is the sum of Game, when Date is "Wed. Nov. 14"?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT SUM("game") FROM "game_log" WHERE "date"='wed. nov. 14';
2-17344582-4
What is Score, when Player is "Bill Rogers"?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_round" WHERE "player"='bill rogers';
2-17231331-7
Which State has an Electorate of West Sydney?
CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text );
SELECT "state" FROM "see_also" WHERE "electorate"='west sydney';
2-1757633-1
Which State has an Electorate of Barton?
CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_of_office" text );
SELECT "state" FROM "see_also" WHERE "electorate"='barton';
2-1757633-1
What was the L2 Cache for the processor with a release price of $496?
CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );
SELECT "l2_cache" FROM "250_nm" WHERE "release_price_usd"='$496';
2-16400024-1
What is the model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)?
CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );
SELECT "model_number" FROM "250_nm" WHERE "s_spec_number"='sl3jm(kc0)sl3jt(kc0)';
2-16400024-1
What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?
CREATE TABLE "250_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );
SELECT "frequency" FROM "250_nm" WHERE "s_spec_number"='sl3bn(kc0)sl3e9(kc0)';
2-16400024-1
When did alfonse d'amore compete?
CREATE TABLE "amateur_boxing_record_roy_scheider" ( "result" text, "opponent" text, "method" text, "date" text, "round" real );
SELECT "date" FROM "amateur_boxing_record_roy_scheider" WHERE "opponent"='alfonse d''amore';
2-164370-1
Which Round has a Method of ko, and a Date of 1958?
CREATE TABLE "amateur_boxing_record_roy_scheider" ( "result" text, "opponent" text, "method" text, "date" text, "round" real );
SELECT MIN("round") FROM "amateur_boxing_record_roy_scheider" WHERE "method"='ko' AND "date"='1958';
2-164370-1
Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?
CREATE TABLE "amateur_boxing_record_roy_scheider" ( "result" text, "opponent" text, "method" text, "date" text, "round" real );
SELECT "date" FROM "amateur_boxing_record_roy_scheider" WHERE "result"='win' AND "round"<2 AND "opponent"='myron greenberg';
2-164370-1
Which Round has a Method of ko, and an Opponent of alfonse d'amore?
CREATE TABLE "amateur_boxing_record_roy_scheider" ( "result" text, "opponent" text, "method" text, "date" text, "round" real );
SELECT "round" FROM "amateur_boxing_record_roy_scheider" WHERE "method"='ko' AND "opponent"='alfonse d''amore';
2-164370-1
Which Player has a Date of sep. 2008?
CREATE TABLE "reserves_academy" ( "date" text, "pos" text, "player" text, "from_club" text, "transfer_fee" text );
SELECT "player" FROM "reserves_academy" WHERE "date"='sep. 2008';
2-17370522-15
Which Transfer fee has a From club of blackburn rovers?
CREATE TABLE "reserves_academy" ( "date" text, "pos" text, "player" text, "from_club" text, "transfer_fee" text );
SELECT "transfer_fee" FROM "reserves_academy" WHERE "from_club"='blackburn rovers';
2-17370522-15
Which From club has a Date of 20 oct. 2008?
CREATE TABLE "reserves_academy" ( "date" text, "pos" text, "player" text, "from_club" text, "transfer_fee" text );
SELECT "from_club" FROM "reserves_academy" WHERE "date"='20 oct. 2008';
2-17370522-15
Which Player has a Transfer fee of £750,000 [x]?
CREATE TABLE "reserves_academy" ( "date" text, "pos" text, "player" text, "from_club" text, "transfer_fee" text );
SELECT "player" FROM "reserves_academy" WHERE "transfer_fee"='£750,000 [x]';
2-17370522-15
What is Tournament, when Date is "6 April 1992"?
CREATE TABLE "doubles_24_11_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_24_11_13" WHERE "date"='6 april 1992';
2-1723516-9
What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?
CREATE TABLE "doubles_24_11_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_24_11_13" WHERE "opponents"='daniel nestor sandon stolle';
2-1723516-9
What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?
CREATE TABLE "doubles_24_11_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "date" FROM "doubles_24_11_13" WHERE "outcome"='winner' AND "opponents"='paul haarhuis sandon stolle';
2-1723516-9
What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?
CREATE TABLE "doubles_24_11_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "doubles_24_11_13" WHERE "partner"='byron black' AND "opponents"='goran ivanišević brian macphie';
2-1723516-9
What is Tournament, when Date is "9 August 1993"?
CREATE TABLE "doubles_24_11_13" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_24_11_13" WHERE "date"='9 august 1993';
2-1723516-9
What is Place, when Player is "Arnold Palmer"?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "player"='arnold palmer';
2-17277219-6
What is Player, when To Par is +1, and when Score is 72-70-72=214?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='+1' AND "score"='72-70-72=214';
2-17277219-6
What is Score, when Country is United States, and when Player is "Arnold Palmer"?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "third_round" WHERE "country"='united states' AND "player"='arnold palmer';
2-17277219-6
What is To Par, when Country is United States, and when Score is 71-68-73=212?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "score"='71-68-73=212';
2-17277219-6
What is Player, when Country is United States, and when Score is 70-72-70=212?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "country"='united states' AND "score"='70-72-70=212';
2-17277219-6
What is Country, when Player is "Billy Maxwell"?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "player"='billy maxwell';
2-17277219-6
Who has a react smaller than 0.149 and a lane smaller than 6?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT "name" FROM "final" WHERE "react"<0.149 AND "lane"<6;
2-16652101-4
What was the lowest lane with a mark of 7.26?
CREATE TABLE "final" ( "lane" real, "name" text, "country" text, "mark" text, "react" real );
SELECT MIN("lane") FROM "final" WHERE "mark"='7.26';
2-16652101-4
What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?
CREATE TABLE "season_averages" ( "season" real, "total_attendance" real, "games" real, "average" real, "high_avg" real, "team" text, "no_of_clubs" real );
SELECT MAX("games") FROM "season_averages" WHERE "season">2001 AND "average"<'10,838';
2-1741728-6
What is the number of clubs when the average is more than 18,571, there are fewer than 182 games and the total attendance is 3,140,280 in a year more recent than 1995?
CREATE TABLE "season_averages" ( "season" real, "total_attendance" real, "games" real, "average" real, "high_avg" real, "team" text, "no_of_clubs" real );
SELECT AVG("no_of_clubs") FROM "season_averages" WHERE "average">'18,571' AND "games"<182 AND "total_attendance"='3,140,280' AND "season">1995;
2-1741728-6
What is the number of clubs for Shenyang Ginde when there were more than 182 games?
CREATE TABLE "season_averages" ( "season" real, "total_attendance" real, "games" real, "average" real, "high_avg" real, "team" text, "no_of_clubs" real );
SELECT COUNT("no_of_clubs") FROM "season_averages" WHERE "team"='shenyang ginde' AND "games">182;
2-1741728-6
What is the smallest average for Beijing Guo'an when they played more than 240 games?
CREATE TABLE "season_averages" ( "season" real, "total_attendance" real, "games" real, "average" real, "high_avg" real, "team" text, "no_of_clubs" real );
SELECT MIN("average") FROM "season_averages" WHERE "team"='beijing guo''an' AND "games">240;
2-1741728-6
What is the average pick number for Washington State?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school" text );
SELECT AVG("pick") FROM "nfl_draft" WHERE "school"='washington state';
2-16710829-1
Which Comments has a Length Over All of 4.5m?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "comments" FROM "current_and_notable_past_models" WHERE "length_over_all"='4.5m';
2-17002889-1
Which Crew has Comments of daggerboards. design: roy seaman?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "crew" FROM "current_and_notable_past_models" WHERE "comments"='daggerboards. design: roy seaman';
2-17002889-1
Which Comments has a Model of 18sq?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "comments" FROM "current_and_notable_past_models" WHERE "model"='18sq';
2-17002889-1
Which Model has Comments of curved daggerboards. design: morelli und melvin?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "model" FROM "current_and_notable_past_models" WHERE "comments"='curved daggerboards. design: morelli und melvin';
2-17002889-1
Which Beam has a Model of 570?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "beam" FROM "current_and_notable_past_models" WHERE "model"='570';
2-17002889-1
Which Model has a Sail Area of 24.5 m²?
CREATE TABLE "current_and_notable_past_models" ( "model" text, "length_over_all" text, "beam" text, "sail_area" text, "crew" text, "comments" text );
SELECT "model" FROM "current_and_notable_past_models" WHERE "sail_area"='24.5 m²';
2-17002889-1
What is the sum of the game numbers for games with less than 30 points?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT SUM("game") FROM "game_log" WHERE "points"<30;
2-17360840-7
Where was the game against the buffalo sabres?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT "location" FROM "game_log" WHERE "opponent"='buffalo sabres';
2-17360840-7
What is the smallest area that has a Population Density of 3,216 and a Population larger than 16,650,000?
CREATE TABLE "largest_metropolitan_areas" ( "rank" real, "metropolitan_area" text, "country" text, "population" real, "area_km" real, "population_density_people_km" real );
SELECT MIN("area_km") FROM "largest_metropolitan_areas" WHERE "population_density_people_km"='3,216' AND "population">'16,650,000';
2-16478687-2
What is the highest BR number with a SECR number of 765?
CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text );
SELECT MAX("br_no") FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=765;
2-17607663-1
What is Beyer Peacock's SR number with a SECR number of 769?
CREATE TABLE "l_class_locomotive_fleet_summary" ( "secr_no" real, "sr_no" real, "br_no" real, "builder" text, "date_delivered" text, "date_withdrawn" text );
SELECT AVG("sr_no") FROM "l_class_locomotive_fleet_summary" WHERE "builder"='beyer peacock' AND "secr_no"=769;
2-17607663-1
What is the tyre of nismo team member satoshi motoyama when he has rounds of all?
CREATE TABLE "gt500" ( "team" text, "make" text, "drivers" text, "tyre" text, "rounds" text );
SELECT "tyre" FROM "gt500" WHERE "rounds"='all' AND "team"='nismo' AND "drivers"='satoshi motoyama';
2-16212690-1
What is the tyre of real racing with leon team member koudai tsukakoshi?
CREATE TABLE "gt500" ( "team" text, "make" text, "drivers" text, "tyre" text, "rounds" text );
SELECT "tyre" FROM "gt500" WHERE "team"='real racing with leon' AND "drivers"='koudai tsukakoshi';
2-16212690-1
Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?
CREATE TABLE "gt500" ( "team" text, "make" text, "drivers" text, "tyre" text, "rounds" text );
SELECT "drivers" FROM "gt500" WHERE "rounds"='all' AND "make"='lexus' AND "tyre"='b' AND "team"='petronas toyota team tom''s';
2-16212690-1
When driver yuji tachikawa had a make of lexus, what team did he represent?
CREATE TABLE "gt500" ( "team" text, "make" text, "drivers" text, "tyre" text, "rounds" text );
SELECT "team" FROM "gt500" WHERE "make"='lexus' AND "drivers"='yuji tachikawa';
2-16212690-1
What is the sum of Capacity, when Team is "Denizlispor"?
CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text );
SELECT SUM("capacity") FROM "overview" WHERE "team"='denizlispor';
2-17356873-1
What is the Team, when Team Captain is "Uğur Kavuk"?
CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text );
SELECT "team" FROM "overview" WHERE "team_captain"='uğur kavuk';
2-17356873-1
What is Team, when Venue is "Şükrü Saracoğlu Stadium"?
CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text );
SELECT "team" FROM "overview" WHERE "venue"='şükrü saracoğlu stadium';
2-17356873-1
What is Team, when Capacity is greater than 16,981, and when Venue is "Atatürk Olympic Stadium"?
CREATE TABLE "overview" ( "team" text, "head_coach" text, "team_captain" text, "venue" text, "capacity" real, "kitmaker" text, "shirt_sponsor" text, "club_chairman" text );
SELECT "team" FROM "overview" WHERE "capacity">'16,981' AND "venue"='atatürk olympic stadium';
2-17356873-1
Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?
CREATE TABLE "seasons_overview" ( "season" text, "duration" text, "gagarin_cup_winner" text, "gagarin_cup_finalist" text, "continental_cup_winner" text, "top_scorer" text );
SELECT "gagarin_cup_winner" FROM "seasons_overview" WHERE "gagarin_cup_finalist"='avangard omsk';
2-16666000-1
What was the resolution of the fight where andre roberts record was 9-1?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='9-1';
2-17446451-2
What is the 2nd leg of goiás team 2?
CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "first_stage" WHERE "team_num2"='goiás';
2-17282875-2
What is the 2nd leg of emelec team 2?
CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "first_stage" WHERE "team_num2"='emelec';
2-17282875-2
What is the 2nd leg with ldu quito as team 1?
CREATE TABLE "first_stage" ( "team_num1" text, "points" text, "team_num2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "first_stage" WHERE "team_num1"='ldu quito';
2-17282875-2
On what date was the bridge located in McClain listed?
CREATE TABLE "references" ( "name" text, "built" text, "listed" text, "location" text, "county" text );
SELECT "listed" FROM "references" WHERE "location"='mcclain';
2-17277228-1
What is the source on 6 September?
CREATE TABLE "calendar" ( "date" text, "place" text, "race_winners" text, "gp_winner" text, "source" text );
SELECT "source" FROM "calendar" WHERE "date"='6 september';
2-17176509-3
Which Week has a Result of l 21-19?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT COUNT("week") FROM "schedule" WHERE "result"='l 21-19';
2-16710848-3
Which Week has a Result of l 41-14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT MIN("week") FROM "schedule" WHERE "result"='l 41-14';
2-16710848-3
Which Result has a Date of september 3, 2000?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "date"='september 3, 2000';
2-16710848-3
Which Date has an Attendance of 54,626?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "attendance"='54,626';
2-16710848-3
Which Result has an Attendance of bye?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='bye';
2-16710848-3
What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?
CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT MIN("preliminary") FROM "final_competition_scores" WHERE "swimsuit"<8.822 AND "interview">8.744 AND "evening_gown">9.333;
2-17516967-1
What is the best preliminary for a contestant from New Mexico with interview less than 9.533?
CREATE TABLE "final_competition_scores" ( "state" text, "preliminary" real, "interview" real, "swimsuit" real, "evening_gown" real, "average" real );
SELECT MAX("preliminary") FROM "final_competition_scores" WHERE "state"='new mexico' AND "interview"<9.533;
2-17516967-1