output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "institution" FROM "division_ii" WHERE "location"='Huntsville, Texas';
## Task Generate a SQL query to answer the following question: `What school is located in Huntsville, Texas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What school is located in Huntsville, Texas?`: ```sql
SELECT "enrollment" FROM "division_ii" WHERE "team_nickname"='Comets';
## Task Generate a SQL query to answer the following question: `How many students are enrolled in the team nicknamed Comets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_ii" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `How many students are enrolled in the team nicknamed Comets?`: ```sql
SELECT COUNT("tenant") FROM "currently_proposed" WHERE "country"='Russia' AND "stadium"='Saransk Stadium';
## Task Generate a SQL query to answer the following question: `Name the number of tenants for russia at the saransk stadium` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "currently_proposed" ( "stadium" text, "capacity" real, "city" text, "country" text, "tenant" text, "opening" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of tenants for russia at the saransk stadium`: ```sql
SELECT "country" FROM "currently_proposed" WHERE "stadium"='Lusail National Stadium';
## Task Generate a SQL query to answer the following question: `Name the country for lusail national stadium` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "currently_proposed" ( "stadium" text, "capacity" real, "city" text, "country" text, "tenant" text, "opening" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the country for lusail national stadium`: ```sql
SELECT "city" FROM "currently_proposed" WHERE "stadium"='Los Angeles Stadium';
## Task Generate a SQL query to answer the following question: `Name the city for los angeles stadium` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "currently_proposed" ( "stadium" text, "capacity" real, "city" text, "country" text, "tenant" text, "opening" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the city for los angeles stadium`: ```sql
SELECT "stadium" FROM "currently_proposed" WHERE "city"='Nizhny Novgorod';
## Task Generate a SQL query to answer the following question: `Name the stadium for nizhny novgorod` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "currently_proposed" ( "stadium" text, "capacity" real, "city" text, "country" text, "tenant" text, "opening" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the stadium for nizhny novgorod`: ```sql
SELECT COUNT("country") FROM "currently_proposed" WHERE "city"='Athens';
## Task Generate a SQL query to answer the following question: `Name the country for athens` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "currently_proposed" ( "stadium" text, "capacity" real, "city" text, "country" text, "tenant" text, "opening" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the country for athens`: ```sql
SELECT "date_aired" FROM "table1_28283535_4" WHERE "episode"='1.13';
## Task Generate a SQL query to answer the following question: `When did the episode 1.13 air for the first time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28283535_4" ( "episode" text, "date_aired" text, "timeslot" text, "rating" text, "nightly_rank" real, "weekly_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the episode 1.13 air for the first time?`: ```sql
SELECT "weekly_rank" FROM "table1_28283535_4" WHERE "episode"='1.03';
## Task Generate a SQL query to answer the following question: `What's the weekly rank of episode 1.03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28283535_4" ( "episode" text, "date_aired" text, "timeslot" text, "rating" text, "nightly_rank" real, "weekly_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the weekly rank of episode 1.03?`: ```sql
SELECT "rating" FROM "table1_28283535_4" WHERE "episode"='1.04';
## Task Generate a SQL query to answer the following question: `What is the rating of episode 1.04?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28283535_4" ( "episode" text, "date_aired" text, "timeslot" text, "rating" text, "nightly_rank" real, "weekly_rank" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the rating of episode 1.04?`: ```sql
SELECT COUNT("cap_s") FROM "canada" WHERE "club_s"='Burnley';
## Task Generate a SQL query to answer the following question: `How many items are listed under caps when burnley is the club team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "canada" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many items are listed under caps when burnley is the club team?`: ```sql
SELECT "club_s" FROM "canada" WHERE "goal_s"=10;
## Task Generate a SQL query to answer the following question: `What club did the championship player come from who had 10 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "canada" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What club did the championship player come from who had 10 goals?`: ```sql
SELECT MIN("goal_s") FROM "canada" WHERE "club_s"='Ipswich Town';
## Task Generate a SQL query to answer the following question: `How many goals did the player from Ipswich town score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "canada" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many goals did the player from Ipswich town score?`: ```sql
SELECT "player" FROM "new_zealand" WHERE "cap_s"=16;
## Task Generate a SQL query to answer the following question: `When 16 is the cap who is the player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When 16 is the cap who is the player?`: ```sql
SELECT "club_s" FROM "new_zealand" WHERE "international_debut"='2010 v Australia';
## Task Generate a SQL query to answer the following question: `When 2010 v australia is the interantional debut what is the club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When 2010 v australia is the interantional debut what is the club?`: ```sql
SELECT "club_s" FROM "new_zealand" WHERE "player"='Winston Reid Category:Articles with hCards';
## Task Generate a SQL query to answer the following question: `When winston reid category:articles with hcards is the player what is the club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When winston reid category:articles with hcards is the player what is the club?`: ```sql
SELECT COUNT("cap_s") FROM "new_zealand" WHERE "goal_s"=1 AND "player"='Tommy Smith Category:Articles with hCards';
## Task Generate a SQL query to answer the following question: `When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?`: ```sql
SELECT "international_debut" FROM "new_zealand" WHERE "player"='Rory Fallon Category:Articles with hCards';
## Task Generate a SQL query to answer the following question: `When rory fallon category:articles with hcards is the player when is the international debut?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "player" text, "cap_s" real, "goal_s" real, "international_debut" text, "club_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When rory fallon category:articles with hcards is the player when is the international debut?`: ```sql
SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';
## Task Generate a SQL query to answer the following question: `What is th title of the episode written by Nick Thiel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2828803_1" ( "series_num" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is th title of the episode written by Nick Thiel?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_2828803_1" WHERE "production_code"='2T7004';
## Task Generate a SQL query to answer the following question: `How many million u.s. viewers watched the episode with a production code of 2t7004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2828803_1" ( "series_num" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many million u.s. viewers watched the episode with a production code of 2t7004?`: ```sql
SELECT "title" FROM "table1_2828803_1" WHERE "directed_by"='Dennis Smith';
## Task Generate a SQL query to answer the following question: `What is the name of the episode that was directed by Dennis Smith?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2828803_1" ( "series_num" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode that was directed by Dennis Smith?`: ```sql
SELECT "original_air_date" FROM "table1_2828803_1" WHERE "title"='\"The Runner\"';
## Task Generate a SQL query to answer the following question: `What date did "The runner" originally air on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2828803_1" ( "series_num" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did "The runner" originally air on?`: ```sql
SELECT "title" FROM "table1_2828803_1" WHERE "written_by"='Nick Thiel';
## Task Generate a SQL query to answer the following question: `What is the name of the episode nick thiel wrote?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2828803_1" ( "series_num" real, "title" text, "written_by" text, "directed_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode nick thiel wrote?`: ```sql
SELECT COUNT("site") FROM "week_one" WHERE "time"='3:30pm' AND "visiting_team"='Coastal Carolina';
## Task Generate a SQL query to answer the following question: `How many site entries are there at 3:30pm and the visiting team is coastal carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many site entries are there at 3:30pm and the visiting team is coastal carolina?`: ```sql
SELECT "result" FROM "week_one" WHERE "visiting_team"='Syracuse';
## Task Generate a SQL query to answer the following question: `What is the result when the visiting team is syracuse?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_one" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the result when the visiting team is syracuse?`: ```sql
SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';
## Task Generate a SQL query to answer the following question: `When svein tuft is the winner what is the highest stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When svein tuft is the winner what is the highest stage?`: ```sql
SELECT COUNT("stage") FROM "classification_leadership" WHERE "winner"='Svein Tuft';
## Task Generate a SQL query to answer the following question: `when svein tuft is the winner how many stages are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `when svein tuft is the winner how many stages are there?`: ```sql
SELECT "team_classification" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';
## Task Generate a SQL query to answer the following question: `when hayden roulston is the winner what is the team classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `when hayden roulston is the winner what is the team classification?`: ```sql
SELECT "stage" FROM "classification_leadership" WHERE "mountains_classification"='Michael Reihs';
## Task Generate a SQL query to answer the following question: `When michael reihs is the mountains classification what is the stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When michael reihs is the mountains classification what is the stage?`: ```sql
SELECT "team_classification" FROM "classification_leadership" WHERE "points_classification"='Michael Van Stayen';
## Task Generate a SQL query to answer the following question: `When michael van stayen is the points classification what is the team classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When michael van stayen is the points classification what is the team classification?`: ```sql
SELECT "stage" FROM "classification_leadership" WHERE "winner"='Hayden Roulston';
## Task Generate a SQL query to answer the following question: `When hayden roulston is the winner what is the stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "points_classification" text, "mountains_classification" text, "young_rider_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When hayden roulston is the winner what is the stage?`: ```sql
SELECT "date" FROM "week_two" WHERE "visiting_team"='Texas Southern';
## Task Generate a SQL query to answer the following question: `What date was the game where Texas Southern was the visiting team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What date was the game where Texas Southern was the visiting team?`: ```sql
SELECT COUNT("broadcast") FROM "week_two" WHERE "home_team"='Connecticut';
## Task Generate a SQL query to answer the following question: `How many Connecticut home games were broadcast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Connecticut home games were broadcast?`: ```sql
SELECT "site" FROM "week_two" WHERE "home_team"='Pittsburgh';
## Task Generate a SQL query to answer the following question: `In what facility was Pittsburgh's home game played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `In what facility was Pittsburgh's home game played?`: ```sql
SELECT "result" FROM "week_two" WHERE "home_team"='Washington';
## Task Generate a SQL query to answer the following question: `What was the final score of Washington's home game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_two" ( "date" text, "time" text, "visiting_team" text, "home_team" text, "site" text, "broadcast" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the final score of Washington's home game?`: ```sql
SELECT "location" FROM "current_clubs" WHERE "capacity"='10,517 5,006';
## Task Generate a SQL query to answer the following question: `Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs" ( "club" text, "location" text, "home_venue" text, "capacity" text, "founded" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the team that has a stadium capable of a capacity of 10,517 5,006 located?`: ```sql
SELECT "home_venue" FROM "current_clubs" WHERE "founded"=1993;
## Task Generate a SQL query to answer the following question: `Where is the home venue of the team founded in 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs" ( "club" text, "location" text, "home_venue" text, "capacity" text, "founded" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the home venue of the team founded in 1993?`: ```sql
SELECT "years_active" FROM "current_clubs" WHERE "home_venue"='North Shore Events Centre Vector Arena';
## Task Generate a SQL query to answer the following question: `How long has the team who owns North Shore Events Centre Vector Arena been active?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs" ( "club" text, "location" text, "home_venue" text, "capacity" text, "founded" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `How long has the team who owns North Shore Events Centre Vector Arena been active?`: ```sql
SELECT "capacity" FROM "current_clubs" WHERE "club"='New Zealand Breakers';
## Task Generate a SQL query to answer the following question: `What is the capacity for the Home Venue of the New Zealand Breakers club?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs" ( "club" text, "location" text, "home_venue" text, "capacity" text, "founded" real, "years_active" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the capacity for the Home Venue of the New Zealand Breakers club?`: ```sql
SELECT "directed_by" FROM "table1_28334498_3" WHERE "title"='\"From Russia With Love\"';
## Task Generate a SQL query to answer the following question: `Who directed "From Russia With Love"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28334498_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed "From Russia With Love"?`: ```sql
SELECT MIN("no_in_season") FROM "table1_28334498_3" WHERE "directed_by"='Jeff Melman' AND "u_s_viewers_millions"='1.21';
## Task Generate a SQL query to answer the following question: `How many episodes were directed by Jeff Melman and 1.21million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28334498_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were directed by Jeff Melman and 1.21million viewers?`: ```sql
SELECT "original_air_date" FROM "table1_28334498_3" WHERE "u_s_viewers_millions"='1.01';
## Task Generate a SQL query to answer the following question: `What air date had 1.01 million U.S. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28334498_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What air date had 1.01 million U.S. viewers?`: ```sql
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "geschwader_base"='Furstenau/Vorden';
## Task Generate a SQL query to answer the following question: `Name the aircraft type for furstenau/vorden` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28342423_1" ( "parent_unit" text, "geschwader_base" text, "unit_gruppe_staffel" text, "aircraft_type" text, "commanding_officer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the aircraft type for furstenau/vorden`: ```sql
SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Ludwig Franzisket';
## Task Generate a SQL query to answer the following question: `Name the parent unit for ludwig franzisket` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28342423_1" ( "parent_unit" text, "geschwader_base" text, "unit_gruppe_staffel" text, "aircraft_type" text, "commanding_officer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the parent unit for ludwig franzisket`: ```sql
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 6';
## Task Generate a SQL query to answer the following question: `Name the aircraft type for jagdgeschwader 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28342423_1" ( "parent_unit" text, "geschwader_base" text, "unit_gruppe_staffel" text, "aircraft_type" text, "commanding_officer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the aircraft type for jagdgeschwader 6`: ```sql
SELECT "aircraft_type" FROM "table1_28342423_1" WHERE "parent_unit"='Jagdgeschwader 26';
## Task Generate a SQL query to answer the following question: `Name the aircraft type for jagdgeschwader 26` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28342423_1" ( "parent_unit" text, "geschwader_base" text, "unit_gruppe_staffel" text, "aircraft_type" text, "commanding_officer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the aircraft type for jagdgeschwader 26`: ```sql
SELECT "parent_unit" FROM "table1_28342423_1" WHERE "commanding_officer"='Josef Priller';
## Task Generate a SQL query to answer the following question: `Name the parent unit for josef priller` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28342423_1" ( "parent_unit" text, "geschwader_base" text, "unit_gruppe_staffel" text, "aircraft_type" text, "commanding_officer" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the parent unit for josef priller`: ```sql
SELECT "directed_by" FROM "table1_28348757_3" WHERE "title"='\"Bro-Lo El Cuñado\"';
## Task Generate a SQL query to answer the following question: `Name who directed the episode "bro-lo el cuñado"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28348757_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who directed the episode "bro-lo el cuñado"`: ```sql
SELECT "production_code" FROM "table1_28348757_3" WHERE "num"=8;
## Task Generate a SQL query to answer the following question: `Name the production code for number 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28348757_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the production code for number 8`: ```sql
SELECT MIN("no") FROM "table1_28348757_3" WHERE "production_code"='XLE02007';
## Task Generate a SQL query to answer the following question: `Name the least number for xle02007` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28348757_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least number for xle02007`: ```sql
SELECT "written_by" FROM "table1_28348757_6" WHERE "production_code"='XLE05012';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with the code xle05012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28348757_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with the code xle05012?`: ```sql
SELECT "num" FROM "table1_28348757_6" WHERE "u_s_viewers_million"='0.79';
## Task Generate a SQL query to answer the following question: `what are the numbers of episodes that had 0.79 million US views?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28348757_6" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `what are the numbers of episodes that had 0.79 million US views?`: ```sql
SELECT "female_saber" FROM "mixed_team_event" WHERE "average_fencers_rank"='3.5';
## Task Generate a SQL query to answer the following question: `What female fenced with a saber on the team that had an average fencer rank of 3.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_team_event" ( "team" text, "female_p_e" text, "male_p_e" text, "female_foil" text, "male_foil" text, "female_saber" text, "male_saber" text, "average_fencers_rank" text, "initial_team_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What female fenced with a saber on the team that had an average fencer rank of 3.5?`: ```sql
SELECT "team" FROM "mixed_team_event" WHERE "average_fencers_rank"='1.33';
## Task Generate a SQL query to answer the following question: `What team had an average fencer rank of 1.33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_team_event" ( "team" text, "female_p_e" text, "male_p_e" text, "female_foil" text, "male_foil" text, "female_saber" text, "male_saber" text, "average_fencers_rank" text, "initial_team_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What team had an average fencer rank of 1.33?`: ```sql
SELECT "corporate_name" FROM "list" WHERE "incorporation_date_city"='October 15, 1955';
## Task Generate a SQL query to answer the following question: `What is the name of the corporation that incorporated on october 15, 1955?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the corporation that incorporated on october 15, 1955?`: ```sql
SELECT "area_km" FROM "list" WHERE "corporate_name"='Powell River, The Corporation of the City of';
## Task Generate a SQL query to answer the following question: `What is the area of the corporation named the powell river, the corporation of the city of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the area of the corporation named the powell river, the corporation of the city of?`: ```sql
SELECT COUNT("area_km") FROM "list" WHERE "name"='Armstrong';
## Task Generate a SQL query to answer the following question: `How many Area's are there for Armstrong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Area's are there for Armstrong?`: ```sql
SELECT "name" FROM "list" WHERE "incorporation_date_city"='July 16, 1860';
## Task Generate a SQL query to answer the following question: `What is the name of the city which incorporated on july 16, 1860?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the city which incorporated on july 16, 1860?`: ```sql
SELECT "corporate_name" FROM "list" WHERE "area_km"='15.63';
## Task Generate a SQL query to answer the following question: `What is the name of the corporation with an area of 15.63 km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the corporation with an area of 15.63 km?`: ```sql
SELECT COUNT("area_km") FROM "list" WHERE "corporate_name"='Fort St. John, City of';
## Task Generate a SQL query to answer the following question: `How many areas are there for the corporation named fort st. john, city of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "corporate_name" text, "regional_district" text, "incorporation_date_city" text, "population_2011" real, "population_2006" real, "change_pct" text, "area_km" text, "population_density" text ); ### SQL Given the database schema, here is the SQL query that answers `How many areas are there for the corporation named fort st. john, city of?`: ```sql
SELECT "emma_bunton" FROM "table1_28352386_1" WHERE "total"='22';
## Task Generate a SQL query to answer the following question: `What was Emma Bunton's score for the performance with a total score of 22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28352386_1" ( "week" real, "portraying" text, "song" text, "julian_clary" text, "emma_bunton" text, "guest_judge" text, "bonus_points" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Emma Bunton's score for the performance with a total score of 22?`: ```sql
SELECT "total" FROM "table1_28352386_1" WHERE "guest_judge"='10';
## Task Generate a SQL query to answer the following question: `What was the total score when the guest judge gave a score of 10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28352386_1" ( "week" real, "portraying" text, "song" text, "julian_clary" text, "emma_bunton" text, "guest_judge" text, "bonus_points" text, "total" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the total score when the guest judge gave a score of 10?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_28358487_3" WHERE "title"='\"Smother\"';
## Task Generate a SQL query to answer the following question: `how many millions of north american viewers had the episode called "smother"? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28358487_3" ( "no" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `how many millions of north american viewers had the episode called "smother"? `: ```sql
SELECT COUNT("no") FROM "table1_28358487_3" WHERE "production_code"=101;
## Task Generate a SQL query to answer the following question: `what is the number of the episode in the season whose production code is 101? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28358487_3" ( "no" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_million" text, "original_air_date" text, "production_code" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of the episode in the season whose production code is 101? `: ```sql
SELECT "conference" FROM "conference_winners_and_tournaments" WHERE "tournament_winner"='North Carolina';
## Task Generate a SQL query to answer the following question: `During what conference is North Carolina listed as the tournament winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `During what conference is North Carolina listed as the tournament winner?`: ```sql
SELECT "regular_season_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Big Seven Conference';
## Task Generate a SQL query to answer the following question: `During the Big Seven Conference which team was the regular season winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `During the Big Seven Conference which team was the regular season winner?`: ```sql
SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "conference"='Missouri Valley Conference';
## Task Generate a SQL query to answer the following question: `What tournament venue is listed during the Missouri Valley Conference?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What tournament venue is listed during the Missouri Valley Conference?`: ```sql
SELECT "tournament_winner" FROM "conference_winners_and_tournaments" WHERE "conference"='Mid-American Conference';
## Task Generate a SQL query to answer the following question: `During the Mid-American Conference who is listed as the tournament winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `During the Mid-American Conference who is listed as the tournament winner?`: ```sql
SELECT "tournament_venue_city" FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Yale';
## Task Generate a SQL query to answer the following question: `When Yale is listed as the regular season winner, what tournament venue is given?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When Yale is listed as the regular season winner, what tournament venue is given?`: ```sql
SELECT COUNT("conference_tournament") FROM "conference_winners_and_tournaments" WHERE "regular_season_winner"='Texas Western';
## Task Generate a SQL query to answer the following question: `How many entries for conference tournament are listed when Texas Western is the regular season winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_winners_and_tournaments" ( "conference" text, "regular_season_winner" text, "conference_player_of_the_year" text, "conference_tournament" text, "tournament_venue_city" text, "tournament_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries for conference tournament are listed when Texas Western is the regular season winner?`: ```sql
SELECT "nhl_team" FROM "round_five" WHERE "college_junior_club_team"='HC Lada Togliatti (Russia)';
## Task Generate a SQL query to answer the following question: `Which team drafted the player from the HC Lada Togliatti (Russia)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team drafted the player from the HC Lada Togliatti (Russia)?`: ```sql
SELECT "player" FROM "round_three" WHERE "position"='Left Wing' AND "nationality"='Canada' AND "nhl_team"='St. Louis Blues';
## Task Generate a SQL query to answer the following question: `who is the person that plays left wing and is from canada that plays on the st. louis blues` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `who is the person that plays left wing and is from canada that plays on the st. louis blues`: ```sql
SELECT COUNT("pick") FROM "round_three" WHERE "player"='Scott Parker';
## Task Generate a SQL query to answer the following question: `what is the overall number of chosen ideas where the person is scott parker` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the overall number of chosen ideas where the person is scott parker`: ```sql
SELECT COUNT("pick") FROM "round_three" WHERE "college_junior_club_team"='HC Dukla Trenčín (Slovakia)';
## Task Generate a SQL query to answer the following question: `what is the number of the chosen club where the hc dukla trenčín (slovakia) is from` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_three" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of the chosen club where the hc dukla trenčín (slovakia) is from`: ```sql
SELECT COUNT("player") FROM "round_two" WHERE "nhl_team"='Edmonton Oilers';
## Task Generate a SQL query to answer the following question: `How many players were drafted by the Edmonton Oilers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `How many players were drafted by the Edmonton Oilers?`: ```sql
SELECT "player" FROM "round_two" WHERE "nhl_team"='Washington Capitals';
## Task Generate a SQL query to answer the following question: `Who was drafted by the Washington Capitals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was drafted by the Washington Capitals?`: ```sql
SELECT "nhl_team" FROM "round_two" WHERE "player"='Travis Brigley';
## Task Generate a SQL query to answer the following question: `Which team drafted Travis Brigley?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Which team drafted Travis Brigley?`: ```sql
SELECT MIN("pick") FROM "round_two" WHERE "position"='Centre' AND "nationality"='Czech Republic';
## Task Generate a SQL query to answer the following question: `What is the minimum pick of a centre from the Czech Republic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_two" ( "pick" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum pick of a centre from the Czech Republic?`: ```sql
SELECT "player" FROM "table1_28461589_2" WHERE "passes"=223;
## Task Generate a SQL query to answer the following question: `Which player made exactly 223 passes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28461589_2" ( "nr" real, "player" text, "games_played" real, "starting" real, "sub" real, "subbed" real, "mins_played" real, "goals" real, "pens_against" real, "pens_for" real, "fouls_suff" real, "fouls_comm" real, "yellow_c" real, "red_c" real, "assists" real, "passes" real, "good_passes" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player made exactly 223 passes?`: ```sql
SELECT MIN("mins_played") FROM "table1_28461589_2" WHERE "good_passes"=638;
## Task Generate a SQL query to answer the following question: `What is the fewest minutes played for the player with exactly 638 good passes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28461589_2" ( "nr" real, "player" text, "games_played" real, "starting" real, "sub" real, "subbed" real, "mins_played" real, "goals" real, "pens_against" real, "pens_for" real, "fouls_suff" real, "fouls_comm" real, "yellow_c" real, "red_c" real, "assists" real, "passes" real, "good_passes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest minutes played for the player with exactly 638 good passes?`: ```sql
SELECT MAX("assists") FROM "table1_28461589_2" WHERE "games_played"=25;
## Task Generate a SQL query to answer the following question: `What is the most number of assists for players with exactly 25 games played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28461589_2" ( "nr" real, "player" text, "games_played" real, "starting" real, "sub" real, "subbed" real, "mins_played" real, "goals" real, "pens_against" real, "pens_for" real, "fouls_suff" real, "fouls_comm" real, "yellow_c" real, "red_c" real, "assists" real, "passes" real, "good_passes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the most number of assists for players with exactly 25 games played?`: ```sql
SELECT MAX("passes") FROM "table1_28461589_2" WHERE "starting"=34;
## Task Generate a SQL query to answer the following question: `What is the largest number of passes for players starting exactly 34 games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28461589_2" ( "nr" real, "player" text, "games_played" real, "starting" real, "sub" real, "subbed" real, "mins_played" real, "goals" real, "pens_against" real, "pens_for" real, "fouls_suff" real, "fouls_comm" real, "yellow_c" real, "red_c" real, "assists" real, "passes" real, "good_passes" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number of passes for players starting exactly 34 games?`: ```sql
SELECT "nickname" FROM "national_panhellenic_conference_npc" WHERE "letters"='ΚΑΘ';
## Task Generate a SQL query to answer the following question: `When καθ are the letters what is the nickname?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_panhellenic_conference_npc" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text, "canadian_chapters" text ); ### SQL Given the database schema, here is the SQL query that answers `When καθ are the letters what is the nickname?`: ```sql
SELECT COUNT("organization") FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1873-12-25';
## Task Generate a SQL query to answer the following question: `When 1873-12-25 is the founding date how many organizations are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_panhellenic_conference_npc" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text, "canadian_chapters" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1873-12-25 is the founding date how many organizations are there?`: ```sql
SELECT "canadian_chapters" FROM "national_panhellenic_conference_npc" WHERE "founding_date"='1872-10-10';
## Task Generate a SQL query to answer the following question: `When 1872-10-10 is the founding date what are the canadian chapters?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_panhellenic_conference_npc" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text, "canadian_chapters" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1872-10-10 is the founding date what are the canadian chapters?`: ```sql
SELECT COUNT("founding_date") FROM "national_panhellenic_conference_npc" WHERE "canadian_chapters"='1 Active, 1 Inactive';
## Task Generate a SQL query to answer the following question: `When 1 active, 1 inactive is the canadian chapters how many founding dates are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "national_panhellenic_conference_npc" ( "letters" text, "organization" text, "nickname" text, "founding_date" text, "founding_university" text, "type" text, "canadian_chapters" text ); ### SQL Given the database schema, here is the SQL query that answers `When 1 active, 1 inactive is the canadian chapters how many founding dates are there?`: ```sql
SELECT "last_meeting" FROM "primary_auburn_football_rivalries_all_ti" WHERE "name_of_rivalry"='Iron Bowl';
## Task Generate a SQL query to answer the following question: `when was the ending time where the enemy met in the iron bowl` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primary_auburn_football_rivalries_all_ti" ( "name_of_rivalry" text, "rival" text, "games_played" real, "first_meeting" real, "last_meeting" real, "au_won" real, "au_lost" real, "ties" real, "streak" text, "latest_win" text ); ### SQL Given the database schema, here is the SQL query that answers `when was the ending time where the enemy met in the iron bowl`: ```sql
SELECT MIN("au_won") FROM "primary_auburn_football_rivalries_all_ti" WHERE "games_played"=92;
## Task Generate a SQL query to answer the following question: `what was the lowest number that auburn triumphed where the activities took part was 92` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primary_auburn_football_rivalries_all_ti" ( "name_of_rivalry" text, "rival" text, "games_played" real, "first_meeting" real, "last_meeting" real, "au_won" real, "au_lost" real, "ties" real, "streak" text, "latest_win" text ); ### SQL Given the database schema, here is the SQL query that answers `what was the lowest number that auburn triumphed where the activities took part was 92`: ```sql
SELECT "rival" FROM "primary_auburn_football_rivalries_all_ti" WHERE "first_meeting"=1899;
## Task Generate a SQL query to answer the following question: `what are all the adversary where the beginning is 1899` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primary_auburn_football_rivalries_all_ti" ( "name_of_rivalry" text, "rival" text, "games_played" real, "first_meeting" real, "last_meeting" real, "au_won" real, "au_lost" real, "ties" real, "streak" text, "latest_win" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the adversary where the beginning is 1899`: ```sql
SELECT "streak" FROM "primary_auburn_football_rivalries_all_ti" WHERE "last_meeting"=2009;
## Task Generate a SQL query to answer the following question: `what is the length where the time is 2009` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "primary_auburn_football_rivalries_all_ti" ( "name_of_rivalry" text, "rival" text, "games_played" real, "first_meeting" real, "last_meeting" real, "au_won" real, "au_lost" real, "ties" real, "streak" text, "latest_win" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the length where the time is 2009`: ```sql
SELECT "distance" FROM "table1_28490105_1" WHERE "supporting"='Champ Car World Series ( Grand Prix of Cleveland )' AND "tc_winning_car"='Pierre Kleinubing';
## Task Generate a SQL query to answer the following question: `What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28490105_1" ( "rnd" real, "date" text, "circuit" text, "supporting" text, "distance" text, "gt_winning_car" text, "tc_winning_car" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the distance in the round where the supporter was champ car world series ( grand prix of cleveland ) and the tc winning car was pierre kleinubing?`: ```sql
SELECT MIN("rnd") FROM "table1_28490105_1" WHERE "gt_winning_car"='Max Angelelli';
## Task Generate a SQL query to answer the following question: `What is the earliest round where the gt winning car is max angelelli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28490105_1" ( "rnd" real, "date" text, "circuit" text, "supporting" text, "distance" text, "gt_winning_car" text, "tc_winning_car" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest round where the gt winning car is max angelelli?`: ```sql
SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dodge Viper' AND "rnd"=1;
## Task Generate a SQL query to answer the following question: `Who was supporting in round 1 where the gt winning car was dodge viper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28490105_1" ( "rnd" real, "date" text, "circuit" text, "supporting" text, "distance" text, "gt_winning_car" text, "tc_winning_car" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was supporting in round 1 where the gt winning car was dodge viper?`: ```sql
SELECT "supporting" FROM "table1_28490105_1" WHERE "gt_winning_car"='Dino Crescentini';
## Task Generate a SQL query to answer the following question: `Who was supporting in the round when the gt winning car was dino crescentini?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28490105_1" ( "rnd" real, "date" text, "circuit" text, "supporting" text, "distance" text, "gt_winning_car" text, "tc_winning_car" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was supporting in the round when the gt winning car was dino crescentini?`: ```sql
SELECT COUNT("written_by") FROM "table1_28466323_2" WHERE "title"='\"Woke Up Dead\"';
## Task Generate a SQL query to answer the following question: `How many writers wrote the episode "Woke Up Dead"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28466323_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many writers wrote the episode "Woke Up Dead"?`: ```sql
SELECT "written_by" FROM "table1_28466323_2" WHERE "production_code"='2J5568';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with production code 2j5568?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28466323_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 2j5568?`: ```sql
SELECT "directed_by" FROM "table1_28466323_2" WHERE "u_s_viewers_million"='2.01';
## Task Generate a SQL query to answer the following question: `Who directed the episode watched by 2.01 million US viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28466323_2" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode watched by 2.01 million US viewers?`: ```sql
SELECT "num_of_divisions" FROM "boys" WHERE "sport"='Bowling';
## Task Generate a SQL query to answer the following question: `How many divisions in bowling ? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "boys" ( "season" text, "sport" text, "tournament_structure" text, "num_of_divisions" real, "1st_tournament" real, "2012_2013_state_tournament_location" text ); ### SQL Given the database schema, here is the SQL query that answers `How many divisions in bowling ? `: ```sql
SELECT COUNT("7th_season") FROM "viewing_figures" WHERE "2nd_season"='6 594 469';
## Task Generate a SQL query to answer the following question: `How many 7th season episodes had 2nd season viewerships of 6 594 469?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "viewing_figures" ( "episode" real, "1st_season" text, "2nd_season" text, "3rd_season" text, "4th_season" text, "5th_season" text, "6th_season" text, "7th_season" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 7th season episodes had 2nd season viewerships of 6 594 469?`: ```sql
SELECT COUNT("1st_tournament") FROM "girls" WHERE "season"='Winter' AND "num_of_divisions"=1;
## Task Generate a SQL query to answer the following question: `How many first tournaments were winter sports with exactly 1 division?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "girls" ( "season" text, "sport" text, "tournament_structure" text, "num_of_divisions" real, "1st_tournament" real, "2011_2012_state_tournament_location" text ); ### SQL Given the database schema, here is the SQL query that answers `How many first tournaments were winter sports with exactly 1 division?`: ```sql