output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
---|---|
SELECT COUNT("director") FROM "table1_10470082_4" WHERE "num"=1; |
## Task
Generate a SQL query to answer the following question:
`Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director and what number is the episode for episode #1 of Are You Afraid of the Dark season 3?`:
```sql
|
SELECT "director" FROM "table1_10470082_4" WHERE "writer"='Scott Peters'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the episode whom Scott Peters is the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the episode whom Scott Peters is the writer?`:
```sql
|
SELECT "villains" FROM "table1_10470082_4" WHERE "num"=7; |
## Task
Generate a SQL query to answer the following question:
`Who is the villain in episode #7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10470082_4" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the villain in episode #7?`:
```sql
|
SELECT COUNT("writer") FROM "table1_10470082_8" WHERE "num"=1; |
## Task
Generate a SQL query to answer the following question:
`Who wrote episode #1 in season 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10470082_8" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode #1 in season 7?`:
```sql
|
SELECT "us_air_date" FROM "table1_10470082_8" WHERE "writer"='Jim Morris'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode written by Jim Morris air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10470082_8" (
"no" real,
"num" real,
"title" text,
"director" text,
"writer" text,
"us_air_date" text,
"storyteller" text,
"villains" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode written by Jim Morris air?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200'; |
## Task
Generate a SQL query to answer the following question:
`What was Datsun Twin 200's fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Datsun Twin 200's fastest lap?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "name"='Datsun Twin 200'; |
## Task
Generate a SQL query to answer the following question:
`In the Datsun Twin 200 race, what was the fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the Datsun Twin 200 race, what was the fastest lap?`:
```sql
|
SELECT "report" FROM "race_results" WHERE "name"='True Value 500'; |
## Task
Generate a SQL query to answer the following question:
`What's the report for the True Value 500?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the report for the True Value 500?`:
```sql
|
SELECT "fastest_lap" FROM "race_results" WHERE "winning_driver"='Johnny Rutherford' AND "pole_position"='Al Unser'; |
## Task
Generate a SQL query to answer the following question:
`What was Johnny Rutherford's fastest lap while Al Unser was the pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Johnny Rutherford's fastest lap while Al Unser was the pole position?`:
```sql
|
SELECT COUNT("report") FROM "race_results" WHERE "pole_position"='Al Unser' AND "winning_team"='Penske Racing'; |
## Task
Generate a SQL query to answer the following question:
`What's the report on Penske Racing winning while the pole position was Al Unser?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_results" (
"rd" real,
"name" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the report on Penske Racing winning while the pole position was Al Unser?`:
```sql
|
SELECT "country" FROM "table_of_world_organization_of_the_scout" WHERE "year_current_scouting_organization_joined_wosm"='1930' AND "year_member_organization_was_founded"='1926'; |
## Task
Generate a SQL query to answer the following question:
`Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which countries have a scouting organization that was founded in 1926, and joined WOSM in 1930?`:
```sql
|
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "country"='Venezuela'; |
## Task
Generate a SQL query to answer the following question:
`Does Venezuela admit only boys, only girls, or both?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does Venezuela admit only boys, only girls, or both?`:
```sql
|
SELECT "name_of_member_organization" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1972' AND "year_current_scouting_organization_joined_wosm"='1977'; |
## Task
Generate a SQL query to answer the following question:
`Which organizations were founded in 1972, but became WOSM members until 1977?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which organizations were founded in 1972, but became WOSM members until 1977?`:
```sql
|
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "name_of_member_organization"='The Scout Association of Hong Kong'; |
## Task
Generate a SQL query to answer the following question:
`Does the Scout Association of Hong Kong admit boys, girls, or both?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the Scout Association of Hong Kong admit boys, girls, or both?`:
```sql
|
SELECT "admits_boys_girls" FROM "table_of_world_organization_of_the_scout" WHERE "year_member_organization_was_founded"='1912' AND "name_of_member_organization"='The Ghana Scout Association'; |
## Task
Generate a SQL query to answer the following question:
`Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table_of_world_organization_of_the_scout" (
"country" text,
"membership_from_2010" real,
"name_of_member_organization" text,
"year_current_scouting_organization_joined_wosm" text,
"year_member_organization_was_founded" text,
"admits_boys_girls" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the Ghana Scout Association (founded in 1912) admit boys, girls, or both?`:
```sql
|
SELECT MAX("model") FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='May 1999'; |
## Task
Generate a SQL query to answer the following question:
`What is the model number introduced May 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the model number introduced May 1999?`:
```sql
|
SELECT "print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "introduction"='December 2002'; |
## Task
Generate a SQL query to answer the following question:
`What is the print resolution (FPI) for December 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the print resolution (FPI) for December 2002?`:
```sql
|
SELECT "maximum_memory" FROM "comparison_table_of_hp_laser_jet_4000_mo" WHERE "discontinued"='November 2001'; |
## Task
Generate a SQL query to answer the following question:
`What is the maximum memory for the model discontinued in November 2001?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_table_of_hp_laser_jet_4000_mo" (
"model" real,
"introduction" text,
"discontinued" text,
"cpu_speed" text,
"print_resolution_dpi_resolution_is_given_in_dots_per_inch_dpi" text,
"print_speed_ppm" text,
"standard_memory" text,
"maximum_memory" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum memory for the model discontinued in November 2001?`:
```sql
|
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "local_title"='La Granja'; |
## Task
Generate a SQL query to answer the following question:
`What is main presenters of La Granja?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is main presenters of La Granja?`:
```sql
|
SELECT "main_presenters" FROM "table1_1053802_1" WHERE "region_country"='Bulgaria'; |
## Task
Generate a SQL query to answer the following question:
`What is the main presenter of bulgaria?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the main presenter of bulgaria?`:
```sql
|
SELECT COUNT("winners") FROM "table1_1053802_1" WHERE "local_title"='Farma'; |
## Task
Generate a SQL query to answer the following question:
`How many winners are there of farma?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1053802_1" (
"region_country" text,
"local_title" text,
"network" text,
"winners" text,
"main_presenters" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners are there of farma?`:
```sql
|
SELECT MAX("cup_goals") FROM "swindon_town_career_details" WHERE "season"='1911-12'; |
## Task
Generate a SQL query to answer the following question:
`What is the most cup goals for seasson 1911-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most cup goals for seasson 1911-12?`:
```sql
|
SELECT "league_apps" FROM "swindon_town_career_details" WHERE "season"='1923-24'; |
## Task
Generate a SQL query to answer the following question:
`What is the league apps for season 1923-24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league apps for season 1923-24?`:
```sql
|
SELECT "team" FROM "swindon_town_career_details" WHERE "season"='1911-12'; |
## Task
Generate a SQL query to answer the following question:
`What is the team for season 1911-12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "swindon_town_career_details" (
"season" text,
"team" text,
"league_apps" real,
"league_goals" real,
"cup_apps" real,
"cup_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team for season 1911-12?`:
```sql
|
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='10.16 (76) – 9.22 (76)'; |
## Task
Generate a SQL query to answer the following question:
`what's the minimum attendance with score 10.16 (76) – 9.22 (76)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the minimum attendance with score 10.16 (76) – 9.22 (76)`:
```sql
|
SELECT "premier" FROM "trivia_and_statistics" WHERE "season"=1970; |
## Task
Generate a SQL query to answer the following question:
`who's the premier with in 1970`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `who's the premier with in 1970`:
```sql
|
SELECT "runner_up" FROM "trivia_and_statistics" WHERE "premier"='Richmond'; |
## Task
Generate a SQL query to answer the following question:
`who are all the runner-up for premier in richmond`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `who are all the runner-up for premier in richmond`:
```sql
|
SELECT MIN("attendance") FROM "trivia_and_statistics" WHERE "score"='8.16 (64) – 8.12 (60)'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum attendance with score 8.16 (64) – 8.12 (60)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "trivia_and_statistics" (
"season" real,
"premier" text,
"runner_up" text,
"score" text,
"margin" real,
"venue" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum attendance with score 8.16 (64) – 8.12 (60)`:
```sql
|
SELECT COUNT("milepost") FROM "table1_10568553_1" WHERE "street_names"='Anne Street'; |
## Task
Generate a SQL query to answer the following question:
`How many mileposts are there on Anne Street?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many mileposts are there on Anne Street?`:
```sql
|
SELECT "street_names" FROM "table1_10568553_1" WHERE "milepost"='12.2'; |
## Task
Generate a SQL query to answer the following question:
`Which street is 12.2 miles long?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which street is 12.2 miles long?`:
```sql
|
SELECT "location" FROM "table1_10568553_1" WHERE "roads_intersected"='Route 24'; |
## Task
Generate a SQL query to answer the following question:
`Where does Route 24 intersect?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where does Route 24 intersect?`:
```sql
|
SELECT "location" FROM "table1_10568553_1" WHERE "milepost"='12.8'; |
## Task
Generate a SQL query to answer the following question:
`Where is milepost 12.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10568553_1" (
"county" text,
"location" text,
"street_names" text,
"milepost" text,
"roads_intersected" text,
"notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is milepost 12.8?`:
```sql
|
SELECT MIN("2001_02") FROM "major_agricultural_products" WHERE "commodity"='Wool'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum amount for wool for 2001-02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "major_agricultural_products" (
"commodity" text,
"2001_02" real,
"2002_03" real,
"2003_04" real,
"2004_05" real,
"2005_06" real,
"2006_07" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum amount for wool for 2001-02?`:
```sql
|
SELECT "operational_owner_s" FROM "table1_1057316_1" WHERE "build_date"='April 1892'; |
## Task
Generate a SQL query to answer the following question:
`Who were the operational owners during the construction date of April 1892?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the operational owners during the construction date of April 1892?`:
```sql
|
SELECT "disposition" FROM "table1_1057316_1" WHERE "operational_owner_s"='Colorado and Southern Railway #9'; |
## Task
Generate a SQL query to answer the following question:
`Where can you find Colorado and Southern Railway #9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where can you find Colorado and Southern Railway #9?`:
```sql
|
SELECT "wheel_arrangement_whyte_notation" FROM "table1_1057316_1" WHERE "disposition"='Riverdale, Georgia'; |
## Task
Generate a SQL query to answer the following question:
`What is the wheel arrangement for the train in Riverdale, Georgia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the wheel arrangement for the train in Riverdale, Georgia?`:
```sql
|
SELECT "build_date" FROM "table1_1057316_1" WHERE "serial_number"='2053'; |
## Task
Generate a SQL query to answer the following question:
`When was the train 2053 built?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the train 2053 built?`:
```sql
|
SELECT COUNT("wheel_arrangement_whyte_notation") FROM "table1_1057316_1" WHERE "operational_owner_s"='Texas and New Orleans Railroad #319'; |
## Task
Generate a SQL query to answer the following question:
`How many wheels does the train owned by Texas and New Orleans Railroad #319 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1057316_1" (
"serial_number" text,
"wheel_arrangement_whyte_notation" text,
"build_date" text,
"operational_owner_s" text,
"disposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wheels does the train owned by Texas and New Orleans Railroad #319 have?`:
```sql
|
SELECT "institution" FROM "former_members" WHERE "men_s_nickname"='Blazers'; |
## Task
Generate a SQL query to answer the following question:
`Which college has the men's nickname of the blazers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college has the men's nickname of the blazers?`:
```sql
|
SELECT "joined" FROM "former_members" WHERE "women_s_nickname"='Wolfpack'; |
## Task
Generate a SQL query to answer the following question:
`Name the joined for the wolfpack women's nickname`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the joined for the wolfpack women's nickname`:
```sql
|
SELECT "left" FROM "former_members" WHERE "women_s_nickname"='Lady Pilots'; |
## Task
Generate a SQL query to answer the following question:
`Name the left of the Lady Pilots.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the left of the Lady Pilots.`:
```sql
|
SELECT "women_s_nickname" FROM "former_members" WHERE "enrollment"=1500 AND "location"='Mobile, Alabama'; |
## Task
Generate a SQL query to answer the following question:
`Name the women's nickname when the enrollment is 1500 in mobile, Alabama.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the women's nickname when the enrollment is 1500 in mobile, Alabama.`:
```sql
|
SELECT "current_conference" FROM "former_members" WHERE "location"='Jackson, Mississippi'; |
## Task
Generate a SQL query to answer the following question:
`Which conference is in Jackson, Mississippi?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which conference is in Jackson, Mississippi?`:
```sql
|
SELECT "men_s_nickname" FROM "former_members" WHERE "women_s_nickname"='Lady Wildcats'; |
## Task
Generate a SQL query to answer the following question:
`What is the men's nickname at the school that has the lady wildcats women's nickname?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_members" (
"institution" text,
"location" text,
"men_s_nickname" text,
"women_s_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text,
"left" text,
"current_conference" text,
"classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the men's nickname at the school that has the lady wildcats women's nickname?`:
```sql
|
SELECT "mens_nickname" FROM "current_members" WHERE "location"='Jacksonville, Florida'; |
## Task
Generate a SQL query to answer the following question:
`What is the Mens Nickname for the member location of Jacksonville, florida?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mens Nickname for the member location of Jacksonville, florida?`:
```sql
|
SELECT MAX("enrollment") FROM "current_members" WHERE "founded"=1866 AND "type"='Private/(African Methodist)'; |
## Task
Generate a SQL query to answer the following question:
`What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment for the institution that was founded in 1866 and is a private/(african methodist) type?`:
```sql
|
SELECT MIN("founded") FROM "current_members" WHERE "location"='Nashville, Tennessee'; |
## Task
Generate a SQL query to answer the following question:
`That is the year founded for the institution location of Nashville, Tennessee?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `That is the year founded for the institution location of Nashville, Tennessee?`:
```sql
|
SELECT "joined" FROM "current_members" WHERE "institution"='Tougaloo College'; |
## Task
Generate a SQL query to answer the following question:
`What is the year the institution Tougaloo College joined?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"location" text,
"mens_nickname" text,
"womens_nickname" text,
"founded" real,
"type" text,
"enrollment" real,
"joined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year the institution Tougaloo College joined?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "date_of_appointment"='28 November 2007' AND "replaced_by"='Alex McLeish'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='21 December 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment when the date of vacancy is 21 december 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment when the date of vacancy is 21 december 2007?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='Wigan Athletic'; |
## Task
Generate a SQL query to answer the following question:
`Who replaced when team is wigan athletic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced when team is wigan athletic?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Manchester City' AND "replaced_by"='Mark Hughes'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of vacancy when the team is manchester city and replaced by is mark hughes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of vacancy when the team is manchester city and replaced by is mark hughes?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Roy Hodgson'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment when replaced by is roy hodgson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment when replaced by is roy hodgson?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "position_in_table"='Pre-season'; |
## Task
Generate a SQL query to answer the following question:
`Who replaced when position in table is pre-season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced when position in table is pre-season?`:
```sql
|
SELECT COUNT("play_off") FROM "table1_1059743_1" WHERE "points"='813.5'; |
## Task
Generate a SQL query to answer the following question:
`How many games had a score value of 813.5 in post-season play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1059743_1" (
"rank" real,
"member_association" text,
"points" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games had a score value of 813.5 in post-season play?`:
```sql
|
SELECT "play_off" FROM "table1_1059743_1" WHERE "points"='860.5'; |
## Task
Generate a SQL query to answer the following question:
`Did any team score games that totaled up to 860.5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1059743_1" (
"rank" real,
"member_association" text,
"points" text,
"group_stage" real,
"play_off" real,
"afc_cup" real
);
### SQL
Given the database schema, here is the SQL query that answers `Did any team score games that totaled up to 860.5?`:
```sql
|
SELECT "score" FROM "2009_season_schedule" WHERE "record"='6-9'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the team reached a record of 6-9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_season_schedule" (
"date" text,
"opponent" text,
"home_away" 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 when the team reached a record of 6-9?`:
```sql
|
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University'; |
## Task
Generate a SQL query to answer the following question:
`What type institution is point park university`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type institution is point park university`:
```sql
|
SELECT MAX("founded") FROM "current_members" WHERE "type"='Private' AND "location"='Wilmore, Kentucky'; |
## Task
Generate a SQL query to answer the following question:
`How many institutions are located in wilmore, kentucky and private`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many institutions are located in wilmore, kentucky and private`:
```sql
|
SELECT "type" FROM "current_members" WHERE "institution"='Point Park University'; |
## Task
Generate a SQL query to answer the following question:
`point park university is what type of institution`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `point park university is what type of institution`:
```sql
|
SELECT COUNT("founded") FROM "current_members" WHERE "institution"='Carlow University 1'; |
## Task
Generate a SQL query to answer the following question:
`how many founded dates are listed for carlow university 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_members" (
"institution" text,
"nickname" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many founded dates are listed for carlow university 1`:
```sql
|
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Black\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "black"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10610087_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "black"?`:
```sql
|
SELECT "written_by" FROM "table1_10610087_6" WHERE "title"='\"Solo\"'; |
## Task
Generate a SQL query to answer the following question:
`Who are the writers for the episode "solo"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10610087_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the writers for the episode "solo"?`:
```sql
|
SELECT "original_air_date" FROM "table1_10610087_3" WHERE "no_in_season"=9; |
## Task
Generate a SQL query to answer the following question:
`what is the original air date of the episode no in season 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the original air date of the episode no in season 9?`:
```sql
|
SELECT "title" FROM "table1_10610087_3" WHERE "written_by"='Denis Leary, Peter Tolan and Evan Reilly'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode written by denis leary, peter tolan and evan reilly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode written by denis leary, peter tolan and evan reilly?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_10610087_3" WHERE "title"='\"Voicemail\"'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were titles "voicemail"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_10610087_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were titles "voicemail"?`:
```sql
|
SELECT "dates_active" FROM "season_effects" WHERE "name"='Kamba'; |
## Task
Generate a SQL query to answer the following question:
`When was Kamba active?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Kamba active?`:
```sql
|
SELECT "pressure" FROM "season_effects" WHERE "deaths"='95km/h (60mph)'; |
## Task
Generate a SQL query to answer the following question:
`What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the cyclone's pressure in the storm that death was equal to 95km/h (60mph)?`:
```sql
|
SELECT "dates_active" FROM "season_effects" WHERE "deaths"='185km/h (115mph)'; |
## Task
Generate a SQL query to answer the following question:
`What were the active dates for the storm that had 185km/h (115mph) deaths?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the active dates for the storm that had 185km/h (115mph) deaths?`:
```sql
|
SELECT "damage_usd" FROM "season_effects" WHERE "pressure"='1003hPa (29.62inHg)'; |
## Task
Generate a SQL query to answer the following question:
`What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_effects" (
"name" text,
"dates_active" text,
"peak_classification" text,
"windspeeds" text,
"pressure" text,
"areas_affected" text,
"damage_usd" text,
"deaths" text,
"refs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the damage (usd) from the cyclones that measured 1003hPa (29.62inHg) pressure?`:
```sql
|
SELECT "average" FROM "batting_averages" WHERE "high_score"=120; |
## Task
Generate a SQL query to answer the following question:
` what's the average where high score is 120`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the average where high score is 120`:
```sql
|
SELECT "player" FROM "batting_averages" WHERE "50"=2 AND "n_o"=0; |
## Task
Generate a SQL query to answer the following question:
` what's the player where 50 is 2 and n/o is 0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the player where 50 is 2 and n/o is 0`:
```sql
|
SELECT "player" FROM "batting_averages" WHERE "inns"=21; |
## Task
Generate a SQL query to answer the following question:
` what's the player where inns is 21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "batting_averages" (
"player" text,
"matches" real,
"inns" real,
"n_o" real,
"runs" real,
"high_score" real,
"average" text,
"100" real,
"50" real,
"catches" real,
"stump" real
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the player where inns is 21`:
```sql
|
SELECT "general_election" FROM "general_election_results" WHERE "result"='PQ majority' AND "pct_of_popular_vote"='44.75%'; |
## Task
Generate a SQL query to answer the following question:
`Which general election had a pq majority and a 44.75% of the popular vote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which general election had a pq majority and a 44.75% of the popular vote?`:
```sql
|
SELECT MIN("num_of_candidates") FROM "general_election_results" WHERE "num_of_seats_won"=80; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of candidates running were there when 80 seats were won?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of candidates running were there when 80 seats were won?`:
```sql
|
SELECT COUNT("num_of_seats_won") FROM "general_election_results" WHERE "num_of_candidates"=125; |
## Task
Generate a SQL query to answer the following question:
`How many seats were won in the election with 125 candidates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "general_election_results" (
"general_election" real,
"num_of_candidates" real,
"num_of_seats_won" real,
"pct_of_popular_vote" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were won in the election with 125 candidates?`:
```sql
|
SELECT MAX("week") FROM "regular_season"; |
## Task
Generate a SQL query to answer the following question:
`How many weeks are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are there?`:
```sql
|
SELECT COUNT("attendance") FROM "regular_season" WHERE "opponent"='Indianapolis Colts'; |
## Task
Generate a SQL query to answer the following question:
`How many people attended the game against the indianapolis colts?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game against the indianapolis colts?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "date"='December 16, 1985'; |
## Task
Generate a SQL query to answer the following question:
`On december 16, 1985, all the records were what?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On december 16, 1985, all the records were what?`:
```sql
|
SELECT COUNT("result") FROM "game_by_game_results" WHERE "record"='0-4'; |
## Task
Generate a SQL query to answer the following question:
`How many results are there for the 0-4 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many results are there for the 0-4 record?`:
```sql
|
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='October 11, 1969'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks are there that include the date October 11, 1969.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are there that include the date October 11, 1969.`:
```sql
|
SELECT COUNT("week") FROM "game_by_game_results" WHERE "date"='November 9, 1969'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks are there that include the date November 9, 1969.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks are there that include the date November 9, 1969.`:
```sql
|
SELECT COUNT("record") FROM "game_by_game_results" WHERE "stadium"='War Memorial Stadium'; |
## Task
Generate a SQL query to answer the following question:
`How many records are there at the War Memorial Stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many records are there at the War Memorial Stadium?`:
```sql
|
SELECT MIN("attendance") FROM "game_by_game_results" WHERE "date"='December 7, 1969'; |
## Task
Generate a SQL query to answer the following question:
`What was the minimum attendance on December 7, 1969?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_by_game_results" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum attendance on December 7, 1969?`:
```sql
|
SELECT MAX("week") FROM "schedule" WHERE "stadium"='Memorial Stadium'; |
## Task
Generate a SQL query to answer the following question:
`What week corresponds to the last one to be played at the memorial stadium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week corresponds to the last one to be played at the memorial stadium?`:
```sql
|
SELECT "stadium" FROM "schedule" WHERE "week"=5; |
## Task
Generate a SQL query to answer the following question:
`In which stadium is the week 5 game played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" real,
"opponent" text,
"result" text,
"stadium" text,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In which stadium is the week 5 game played?`:
```sql
|
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_of_a_draw"='8.28%' AND "2nd_players_choice"='B BR'; |
## Task
Generate a SQL query to answer the following question:
`In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Penney's game what is the probability where the 1st player wins if the probability of a draw is 8.28% and the 2nd player chooses B BR?`:
```sql
|
SELECT "2nd_players_choice" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='RB B'; |
## Task
Generate a SQL query to answer the following question:
`If the first player chooses RB B, what is the second player's choices?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the first player chooses RB B, what is the second player's choices?`:
```sql
|
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "2nd_players_choice"='R RB' AND "probability_1st_player_wins"='5.18%'; |
## Task
Generate a SQL query to answer the following question:
`What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the probability where the second player wins where their choice is R RB and the first player has a 5.18% chance of winning?`:
```sql
|
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='80.11%' AND "2nd_players_choice"='R RB'; |
## Task
Generate a SQL query to answer the following question:
`What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the chances the first player will win if the 2nd player has an 80.11% chance of winning with the choice of R RB?`:
```sql
|
SELECT "probability_2nd_player_wins" FROM "variation_with_playing_cards" WHERE "1st_players_choice"='BB R'; |
## Task
Generate a SQL query to answer the following question:
`What are the chances that player 2 wins if player 1's choice is BB R?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the chances that player 2 wins if player 1's choice is BB R?`:
```sql
|
SELECT "probability_1st_player_wins" FROM "variation_with_playing_cards" WHERE "probability_2nd_player_wins"='88.29%' AND "2nd_players_choice"='R RB'; |
## Task
Generate a SQL query to answer the following question:
`How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "variation_with_playing_cards" (
"1st_players_choice" text,
"2nd_players_choice" text,
"probability_1st_player_wins" text,
"probability_2nd_player_wins" text,
"probability_of_a_draw" text
);
### SQL
Given the database schema, here is the SQL query that answers `How high is the chance that player 1 wins if player 2 has an 88.29% chance of winning with the choice of R RB?`:
```sql
|
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Thane Gash'; |
## Task
Generate a SQL query to answer the following question:
` what is the nfl team where player is thane gash`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what is the nfl team where player is thane gash`:
```sql
|
SELECT MAX("pick_num") FROM "nfl_draft" WHERE "player"='Anthony Blaylock'; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum pick # where player is anthony blaylock`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum pick # where player is anthony blaylock`:
```sql
|
SELECT "nfl_team" FROM "nfl_draft" WHERE "player"='Clifford Charlton'; |
## Task
Generate a SQL query to answer the following question:
` what's the nfl team where player is clifford charlton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the nfl team where player is clifford charlton`:
```sql
|
SELECT "position" FROM "nfl_draft" WHERE "player"='Anthony Blaylock'; |
## Task
Generate a SQL query to answer the following question:
` what's the position where player is anthony blaylock`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the position where player is anthony blaylock`:
```sql
|
SELECT MIN("pick_num") FROM "nfl_draft" WHERE "position"='Defensive Tackle'; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum pick # where position is defensive tackle`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nfl_draft" (
"pick_num" real,
"nfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum pick # where position is defensive tackle`:
```sql
|
SELECT "province" FROM "population_area_and_density_sortable_on_" WHERE "density"='971.4'; |
## Task
Generate a SQL query to answer the following question:
`Which province has a density of 971.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has a density of 971.4?`:
```sql
|
SELECT MIN("gdp_per_cap_2003_in") FROM "population_area_and_density_sortable_on_" WHERE "province"='Friesland'; |
## Task
Generate a SQL query to answer the following question:
`What is Friesland's gdp per capita?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Friesland's gdp per capita?`:
```sql
|
SELECT MAX("area_km") FROM "population_area_and_density_sortable_on_" WHERE "density"='331.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the area of the place that has a population density of 331.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_area_and_density_sortable_on_" (
"province" text,
"population_2004_estimate" real,
"area_km" real,
"density" text,
"gdp_2003_pps_in_mil" real,
"gdp_per_cap_2003_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area of the place that has a population density of 331.4?`:
```sql
|