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