output
stringlengths 27
479
| instruction
stringlengths 407
1.39k
|
---|---|
SELECT COUNT("no_in_series") FROM "table1_11058032_1" WHERE "u_s_viewers_millions"='16.03'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had 16.03 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11058032_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had 16.03 million viewers?`:
```sql
|
SELECT COUNT("interregnum_ended") FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of interregnum for duration 3 months, 6 days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_imperial_vicars_1437_1792" (
"interregnum_began" text,
"interregnum_ended" text,
"duration" text,
"count_palatine_of_saxony" text,
"count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of interregnum for duration 3 months, 6 days?`:
```sql
|
SELECT "directed_by" FROM "table1_11075747_4" WHERE "episode_num"=8; |
## Task
Generate a SQL query to answer the following question:
`Who directed Episode 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" 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 directed Episode 8?`:
```sql
|
SELECT "directed_by" FROM "table1_11075747_4" WHERE "title"='\"Tell-Tale Heart\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode called "Tell-tale Heart"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" 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 directed the episode called "Tell-tale Heart"?`:
```sql
|
SELECT "original_air_date" FROM "table1_11075747_4" WHERE "series_num"=36; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date for Series 36?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" 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 was the original air date for Series 36?`:
```sql
|
SELECT "written_by" FROM "table1_11075747_4" WHERE "series_num"=38; |
## Task
Generate a SQL query to answer the following question:
`Who wrote Series 38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11075747_4" (
"series_num" real,
"episode_num" 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 Series 38?`:
```sql
|
SELECT COUNT("pct") FROM "1973" WHERE "manhattan"='45,901'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage for manhattan 45,901?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage for manhattan 45,901?`:
```sql
|
SELECT "1973_democratic_initial_primary" FROM "1973" WHERE "queens"='19%'; |
## Task
Generate a SQL query to answer the following question:
`Who won the 1973 democratic initial primary for queens of 19%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the 1973 democratic initial primary for queens of 19%?`:
```sql
|
SELECT "manhattan" FROM "1973" WHERE "richmond_staten_is"='35%'; |
## Task
Generate a SQL query to answer the following question:
`What is the manhattan for richmond 35%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manhattan for richmond 35%?`:
```sql
|
SELECT "queens" FROM "1973" WHERE "richmond_staten_is"='42%'; |
## Task
Generate a SQL query to answer the following question:
`What is the queens where richmond staten is 42%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1973" (
"1973_democratic_initial_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the queens where richmond staten is 42%?`:
```sql
|
SELECT "party" FROM "1932" WHERE "brooklyn"='51.0%'; |
## Task
Generate a SQL query to answer the following question:
`what's the party with brooklyn value of 51.0%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the party with brooklyn value of 51.0%`:
```sql
|
SELECT "brooklyn" FROM "1932" WHERE "queens"='16.8%'; |
## Task
Generate a SQL query to answer the following question:
`what's the brooklyn with queens value of 16.8%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the brooklyn with queens value of 16.8%`:
```sql
|
SELECT MIN("total") FROM "1932"; |
## Task
Generate a SQL query to answer the following question:
`what is the minimum total`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum total`:
```sql
|
SELECT "pct" FROM "1932" WHERE "total"=249887 AND "queens"='6.8%'; |
## Task
Generate a SQL query to answer the following question:
`what's the % with total value of 249887 and queens value of 6.8%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1932" (
"1932_before_recount" text,
"party" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real,
"pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what's the % with total value of 249887 and queens value of 6.8%`:
```sql
|
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "division"='Central' AND "location"='Livonia'; |
## Task
Generate a SQL query to answer the following question:
`Which teams were in the central division and located in livonia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which teams were in the central division and located in livonia?`:
```sql
|
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "location"='Highland Township'; |
## Task
Generate a SQL query to answer the following question:
`Which teams are located in highland township?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which teams are located in highland township?`:
```sql
|
SELECT "conference" FROM "kensington_lakes_activities_association" WHERE "team"='Churchill Chargers'; |
## Task
Generate a SQL query to answer the following question:
`What conference was the churchill chargers team in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "kensington_lakes_activities_association" (
"team" text,
"location" text,
"joined" real,
"conference" text,
"division" text,
"previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What conference was the churchill chargers team in?`:
```sql
|
SELECT "title" FROM "table1_11111116_7" WHERE "written_by"='Ken LaZebnik'; |
## Task
Generate a SQL query to answer the following question:
`What was the titles of the episodes written by ken lazebnik?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the titles of the episodes written by ken lazebnik?`:
```sql
|
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.81'; |
## Task
Generate a SQL query to answer the following question:
`Who directed an episode that had 2.81 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed an episode that had 2.81 million U.S. viewers?`:
```sql
|
SELECT "title" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='3.02'; |
## Task
Generate a SQL query to answer the following question:
`What were the names of the episodes that had 3.02 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the names of the episodes that had 3.02 million U.S. viewers?`:
```sql
|
SELECT "original_air_date" FROM "table1_11111116_7" WHERE "title"='\"Winds of War\"'; |
## Task
Generate a SQL query to answer the following question:
`What were the original air dates of the episode named "winds of war"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the original air dates of the episode named "winds of war"?`:
```sql
|
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.61'; |
## Task
Generate a SQL query to answer the following question:
`Who directed episodes that had 2.61 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_7" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episodes that had 2.61 million U.S. viewers?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "title"='\"Brace for Impact\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched "Brace for Impact"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched "Brace for Impact"?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "original_air_date"='March 31, 2013'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?`:
```sql
|
SELECT "written_by" FROM "table1_11111116_8" WHERE "u_s_viewers_million"='2.12'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episodes that were viewed by 2.12 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_8" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episodes that were viewed by 2.12 million viewers?`:
```sql
|
SELECT "original_air_date" FROM "table1_11111116_6" WHERE "written_by"='Rebecca Dameron'; |
## Task
Generate a SQL query to answer the following question:
`The episode written by Rebecca Dameron aired on what date? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode written by Rebecca Dameron aired on what date? `:
```sql
|
SELECT MIN("no_in_series") FROM "table1_11111116_6" WHERE "u_s_viewers_million"='3.6'; |
## Task
Generate a SQL query to answer the following question:
`Which episode in the series drew 3.6 million U.S. viewers? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode in the series drew 3.6 million U.S. viewers? `:
```sql
|
SELECT "written_by" FROM "table1_11111116_6" WHERE "original_air_date"='April 17, 2011'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that aired on April 17, 2011? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that aired on April 17, 2011? `:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_11111116_6" WHERE "no_in_series"=79; |
## Task
Generate a SQL query to answer the following question:
`How many times did episode 79 originally air? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did episode 79 originally air? `:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_11111116_6" WHERE "title"='\"Line of Departure\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of views in the country watched "Line of Departure"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11111116_6" (
"no_in_season" real,
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of views in the country watched "Line of Departure"?`:
```sql
|
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_cup_runner_up"='Colorado Rapids'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?`:
```sql
|
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_supporters_shield_runner_up"='Chivas USA'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?`:
```sql
|
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "mls_cup_winner"='Real Salt Lake'; |
## Task
Generate a SQL query to answer the following question:
`who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?`:
```sql
|
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "season"=2000; |
## Task
Generate a SQL query to answer the following question:
`Which shield winner has the mls cup runner up and the season is 2000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11148572_1" (
"season" real,
"mls_cup_winner" text,
"mls_cup_runner_up" text,
"mls_supporters_shield_winner" text,
"mls_supporters_shield_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which shield winner has the mls cup runner up and the season is 2000?`:
```sql
|
SELECT MAX("league_apps_sub") FROM "sheffield_united_career"; |
## Task
Generate a SQL query to answer the following question:
`League apps (sub) maximum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" real,
"league_goals" real,
"fa_cup_apps_sub" text,
"fa_cup_goals" real,
"fl_cup_apps_sub" real,
"fl_cup_goals" real,
"other_apps" real,
"other_goals" real,
"total_apps_sub" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `League apps (sub) maximum?`:
```sql
|
SELECT MAX("league_apps_sub") FROM "sheffield_united_career" WHERE "total_goals"=11; |
## Task
Generate a SQL query to answer the following question:
`When total goals is 11 what was the league apps (sub)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "sheffield_united_career" (
"season" text,
"division" text,
"league_apps_sub" real,
"league_goals" real,
"fa_cup_apps_sub" text,
"fa_cup_goals" real,
"fl_cup_apps_sub" real,
"fl_cup_goals" real,
"other_apps" real,
"other_goals" real,
"total_apps_sub" text,
"total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `When total goals is 11 what was the league apps (sub)?`:
```sql
|
SELECT "audition_city" FROM "regional_auditions" WHERE "callback_venue"='Charleston Area Convention Center'; |
## Task
Generate a SQL query to answer the following question:
`Which city had the charleston area convention center as its callback location`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"first_audition_venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which city had the charleston area convention center as its callback location`:
```sql
|
SELECT "episode_air_date" FROM "regional_auditions" WHERE "callback_venue"='Rancho Bernardo Inn'; |
## Task
Generate a SQL query to answer the following question:
`When did the callbacks from rancho bernardo inn air`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regional_auditions" (
"episode_air_date" text,
"audition_city" text,
"date" text,
"first_audition_venue" text,
"callback_date" text,
"callback_venue" text,
"golden_tickets" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the callbacks from rancho bernardo inn air`:
```sql
|
SELECT "owned_since" FROM "table1_11147852_1" WHERE "city_of_license_market"='Albuquerque'; |
## Task
Generate a SQL query to answer the following question:
`The station located in Albuquerque has been owned since what year?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `The station located in Albuquerque has been owned since what year?`:
```sql
|
SELECT "channel_tv_dt" FROM "table1_11147852_1" WHERE "year_of_affiliation"='2002'; |
## Task
Generate a SQL query to answer the following question:
`What channels have stations that were affiliated in 2002?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `What channels have stations that were affiliated in 2002?`:
```sql
|
SELECT "city_of_license_market" FROM "table1_11147852_1" WHERE "station"='KTFK-DT'; |
## Task
Generate a SQL query to answer the following question:
`What market is KTFK-DT in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11147852_1" (
"city_of_license_market" text,
"station" text,
"channel_tv_dt" text,
"year_of_affiliation" text,
"owned_since" text
);
### SQL
Given the database schema, here is the SQL query that answers `What market is KTFK-DT in?`:
```sql
|
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 10.5s, VMax km/h (mph)'; |
## Task
Generate a SQL query to answer the following question:
` what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)`:
```sql
|
SELECT "turbo" FROM "volvo_850_quick_information_by_trim_leve" WHERE "trim"='2.0 20v'; |
## Task
Generate a SQL query to answer the following question:
` what's the turbo where trim is 2.0 20v`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the turbo where trim is 2.0 20v`:
```sql
|
SELECT "torque" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 7.5s auto, VMax: km/h (mph)'; |
## Task
Generate a SQL query to answer the following question:
` what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)`:
```sql
|
SELECT "transmission" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-16t )'; |
## Task
Generate a SQL query to answer the following question:
` what's the transmission where turbo is yes (mitsubishi td04-16t )`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the transmission where turbo is yes (mitsubishi td04-16t )`:
```sql
|
SELECT "fuel_delivery" FROM "volvo_850_quick_information_by_trim_leve" WHERE "power"='hp (kW) @6500 rpm'; |
## Task
Generate a SQL query to answer the following question:
` what's the fuel delivery where power is hp (kw) @6500 rpm`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the fuel delivery where power is hp (kw) @6500 rpm`:
```sql
|
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-15g )'; |
## Task
Generate a SQL query to answer the following question:
`" what's the engine with turbo being yes (mitsubishi td04-15g ) "`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "volvo_850_quick_information_by_trim_leve" (
"trim" text,
"engine" text,
"turbo" text,
"fuel_delivery" text,
"power" text,
"torque" text,
"transmission" text,
"performance" text
);
### SQL
Given the database schema, here is the SQL query that answers `" what's the engine with turbo being yes (mitsubishi td04-15g ) "`:
```sql
|
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "finale"=33 AND "peak"=42; |
## Task
Generate a SQL query to answer the following question:
`What is the english title that has finale as 33 and peak as 42?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the english title that has finale as 33 and peak as 42?`:
```sql
|
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "premiere"<30.0 AND "finale">36.0; |
## Task
Generate a SQL query to answer the following question:
`What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?`:
```sql
|
SELECT "rank" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='緣來自有機'; |
## Task
Generate a SQL query to answer the following question:
`What is the rank of the chinese title 緣來自有機?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the chinese title 緣來自有機?`:
```sql
|
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='十兄弟'; |
## Task
Generate a SQL query to answer the following question:
`What amount is the number of hk viewers where chinese title is 十兄弟?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_rating_drama_series_of_2007" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What amount is the number of hk viewers where chinese title is 十兄弟?`:
```sql
|
SELECT "weekly_rank" FROM "u_s_ratings" WHERE "air_date"='November 12, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the weekly rank with an air date is november 12, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the weekly rank with an air date is november 12, 2007?`:
```sql
|
SELECT "air_date" FROM "u_s_ratings" WHERE "episode"='\"Blowback\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode "blowback"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date of the episode "blowback"?`:
```sql
|
SELECT MIN("weekly_rank") FROM "u_s_ratings" WHERE "air_date"='November 26, 2007'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest weekly rank with an air date of november 26, 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest weekly rank with an air date of november 26, 2007?`:
```sql
|
SELECT "episode" FROM "u_s_ratings" WHERE "18_49_rating_share"='3.5/9'; |
## Task
Generate a SQL query to answer the following question:
`What is the episode where 18-49 has a rating/share of 3.5/9`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode where 18-49 has a rating/share of 3.5/9`:
```sql
|
SELECT "viewers_m" FROM "u_s_ratings" WHERE "rating"='5.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the viewers where the rating is 5.3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the viewers where the rating is 5.3?`:
```sql
|
SELECT "18_49_rating_share" FROM "u_s_ratings" WHERE "viewers_m"='5.61'; |
## Task
Generate a SQL query to answer the following question:
`What is the 18-49 rating/share where the viewers is 5.61?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_ratings" (
"num" real,
"episode" text,
"air_date" text,
"rating" text,
"share" real,
"18_49_rating_share" text,
"viewers_m" text,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 18-49 rating/share where the viewers is 5.61?`:
```sql
|
SELECT "highest" FROM "attendances" WHERE "stadium"='Balmoor'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest of balmoor/`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest of balmoor/`:
```sql
|
SELECT COUNT("capacity") FROM "attendances" WHERE "stadium"='Somerset Park'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of capacity at somerset park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of capacity at somerset park?`:
```sql
|
SELECT MIN("capacity") FROM "attendances" WHERE "team"='Airdrie United'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum capacity where airdrie united is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum capacity where airdrie united is?`:
```sql
|
SELECT "stadium" FROM "attendances" WHERE "team"='Alloa Athletic'; |
## Task
Generate a SQL query to answer the following question:
`What is the stadium for alloa athletic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the stadium for alloa athletic?`:
```sql
|
SELECT MIN("highest") FROM "attendances" WHERE "team"='Ayr United'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest of ayr united?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest of ayr united?`:
```sql
|
SELECT MIN("average") FROM "attendances"; |
## Task
Generate a SQL query to answer the following question:
`What is the average?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Galway'; |
## Task
Generate a SQL query to answer the following question:
`When are team Galway's dates of appointment?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When are team Galway's dates of appointment?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Damien Fox'; |
## Task
Generate a SQL query to answer the following question:
`When are the vacancy dates for outgoing manager Damien Fox?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When are the vacancy dates for outgoing manager Damien Fox?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='Davy FitzGerald'; |
## Task
Generate a SQL query to answer the following question:
`When is the date of vacancy of Davy Fitzgerald being a replacement?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the date of vacancy of Davy Fitzgerald being a replacement?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='John Meyler'; |
## Task
Generate a SQL query to answer the following question:
`Which team has the outgoing manager John Meyler?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has the outgoing manager John Meyler?`:
```sql
|
SELECT COUNT("1_credit") FROM "see_also" WHERE "3_credits"=180; |
## Task
Generate a SQL query to answer the following question:
`How many times is 3 credits 180?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is 3 credits 180?`:
```sql
|
SELECT "hand" FROM "see_also" WHERE "4_credits"=1600; |
## Task
Generate a SQL query to answer the following question:
`What is the hand for 4 credits is 1600?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hand for 4 credits is 1600?`:
```sql
|
SELECT COUNT("3_credits") FROM "see_also" WHERE "5_credits"='5'; |
## Task
Generate a SQL query to answer the following question:
`How many 3 credits are there with 5 credits of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 3 credits are there with 5 credits of 5?`:
```sql
|
SELECT COUNT("4_credits") FROM "see_also" WHERE "hand"='Two pair'; |
## Task
Generate a SQL query to answer the following question:
`How many 4 credits is the hand two pair?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "see_also" (
"hand" text,
"1_credit" real,
"2_credits" real,
"3_credits" real,
"4_credits" real,
"5_credits" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many 4 credits is the hand two pair?`:
```sql
|
SELECT "duration" FROM "law_enforcement" WHERE "actor"='Christian de la Fuente'; |
## Task
Generate a SQL query to answer the following question:
`What duration is listed for Christian de la Fuente?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
);
### SQL
Given the database schema, here is the SQL query that answers `What duration is listed for Christian de la Fuente?`:
```sql
|
SELECT "final_episode" FROM "law_enforcement" WHERE "position"='DEA Agent'; |
## Task
Generate a SQL query to answer the following question:
`What was the final episode for Dea Agent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "law_enforcement" (
"character" text,
"position" text,
"actor" text,
"first_episode" text,
"final_episode" text,
"duration" text,
"final_episode_count" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final episode for Dea Agent?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Greenock Morton'; |
## Task
Generate a SQL query to answer the following question:
`What days is greenock morton vacant?`
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What days is greenock morton vacant?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Colin Hendry'; |
## Task
Generate a SQL query to answer the following question:
`What are the dates of the outgoing manager colin hendry does appointments? `
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates of the outgoing manager colin hendry does appointments? `:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Jim McInally'; |
## Task
Generate a SQL query to answer the following question:
`What teams does jim mcinally manage?`
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What teams does jim mcinally manage?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='John Brown'; |
## Task
Generate a SQL query to answer the following question:
`What days are vacant that were replaced by john brown?`
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What days are vacant that were replaced by john brown?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='13 March 2008'; |
## Task
Generate a SQL query to answer the following question:
`What manner of departure is listed with an appointment date of 13 march 2008`
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What manner of departure is listed with an appointment date of 13 march 2008`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Campbell Money'; |
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment for outgoing manager Campbell Money`
### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment for outgoing manager Campbell Money`:
```sql
|
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='East End Park'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance that East End Park has ever had?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attendance that East End Park has ever had?`:
```sql
|
SELECT "team" FROM "attendances" WHERE "stadium"='Palmerston Park'; |
## Task
Generate a SQL query to answer the following question:
`What team plays at Palmerston Park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team plays at Palmerston Park?`:
```sql
|
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='Cappielow'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest attandance recorded at Cappielow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attandance recorded at Cappielow?`:
```sql
|
SELECT MAX("highest") FROM "attendances" WHERE "team"='St. Johnstone'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance at a game played by St. Johnstone?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance at a game played by St. Johnstone?`:
```sql
|
SELECT MIN("highest") FROM "attendances" WHERE "team"='Hamilton Academical'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest attandence at a Hamilton Academical game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "attendances" (
"team" text,
"stadium" text,
"capacity" real,
"highest" real,
"lowest" real,
"average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attandence at a Hamilton Academical game?`:
```sql
|
SELECT "champion" FROM "division_i" WHERE "semi_finalist_num2"='NA' AND "location"='Morrisville, NC'; |
## Task
Generate a SQL query to answer the following question:
` who is the champion where semi-finalist #2 is na and location is morrisville, nc`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the champion where semi-finalist #2 is na and location is morrisville, nc`:
```sql
|
SELECT "score" FROM "division_i" WHERE "year"='2007'; |
## Task
Generate a SQL query to answer the following question:
` what's the score where year is 2007`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the score where year is 2007`:
```sql
|
SELECT COUNT("semi_finalist_num2") FROM "division_i" WHERE "runner_up"='East Carolina'; |
## Task
Generate a SQL query to answer the following question:
`what is the total number of semi-finalist #2 where runner-up is east carolina`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of semi-finalist #2 where runner-up is east carolina`:
```sql
|
SELECT "semi_finalist_num1" FROM "division_i" WHERE "runner_up"='Elon University'; |
## Task
Generate a SQL query to answer the following question:
` who is the semi-finalist #1 where runner-up is elon university`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the semi-finalist #1 where runner-up is elon university`:
```sql
|
SELECT "runner_up" FROM "division_i" WHERE "year"='2004' AND "champion"='North Carolina State'; |
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where year is 2004 and champion is north carolina state`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the runner-up where year is 2004 and champion is north carolina state`:
```sql
|
SELECT "runner_up" FROM "division_i" WHERE "location"='Ellenton, FL' AND "year"='2004'; |
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where location is ellenton, fl and year is 2004`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_i" (
"year" text,
"champion" text,
"score" text,
"runner_up" text,
"location" text,
"semi_finalist_num1" text,
"semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the runner-up where location is ellenton, fl and year is 2004`:
```sql
|
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "numer_of_jamaicans_granted_british_citizenship"=3165; |
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165`:
```sql
|
SELECT COUNT("numer_of_jamaicans_granted_british_citizenship") FROM "population_and_distribution" WHERE "naturalisation_by_marriage"=1060; |
## Task
Generate a SQL query to answer the following question:
` how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060`:
```sql
|
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=114; |
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation by marriage with regbeingtration of a minor child being 114`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the naturalisation by marriage with regbeingtration of a minor child being 114`:
```sql
|
SELECT "numer_of_jamaicans_granted_british_citizenship" FROM "population_and_distribution" WHERE "naturalisation_by_residence"=927; |
## Task
Generate a SQL query to answer the following question:
`what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927`:
```sql
|
SELECT MAX("year") FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=281; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum year with registration of a minor child being 281`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "population_and_distribution" (
"year" real,
"numer_of_jamaicans_granted_british_citizenship" real,
"naturalisation_by_residence" real,
"naturalisation_by_marriage" real,
"registration_of_a_minor_child" real,
"registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum year with registration of a minor child being 281`:
```sql
|
SELECT COUNT("episode_titles") FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had their first air date on March 6, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date" text,
"reward" text,
"immunity" text,
"exiled" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had their first air date on March 6, 2008?`:
```sql
|
SELECT "finish" FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What were the results of episodes with the first air date of March 6, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11220799_2" (
"episode_titles" text,
"first_air_date" text,
"reward" text,
"immunity" text,
"exiled" text,
"eliminated" text,
"vote" text,
"finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of episodes with the first air date of March 6, 2008?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "no_in_season"=15; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched episode 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers watched episode 15?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "title"='\"Throwing Heat\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the "Throwing Heat" episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers watched the "Throwing Heat" episode?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "directed_by"='Anthony Hemingway'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the episode directed by Anthony Hemingway?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_11230937_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of viewers watched the episode directed by Anthony Hemingway?`:
```sql
|