output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("scripted_show_ranking") FROM "new_zealand_tv2" WHERE "title"='Epiphany'; |
## Task
Generate a SQL query to answer the following question:
`The episode titled "Epiphany" received what scripted show ranking?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_zealand_tv2" (
"episode_number" real,
"title" text,
"original_airing" text,
"timeslot" text,
"viewers" real,
"top_50_ranking" real,
"scripted_show_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `The episode titled "Epiphany" received what scripted show ranking?`:
```sql
|
SELECT COUNT("top_50_ranking") FROM "new_zealand_tv2" WHERE "original_airing"='June 28, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many of the episodes in the top 50 rankings were originally aired on June 28, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "new_zealand_tv2" (
"episode_number" real,
"title" text,
"original_airing" text,
"timeslot" text,
"viewers" real,
"top_50_ranking" real,
"scripted_show_ranking" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the episodes in the top 50 rankings were originally aired on June 28, 2010?`:
```sql
|
SELECT "athletic_nickname" FROM "tertiary_institutions" WHERE "location"='Quezon City , Metro Manila'; |
## Task
Generate a SQL query to answer the following question:
`For the location of quezon city , metro manila what is the athletic nickname?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the location of quezon city , metro manila what is the athletic nickname?`:
```sql
|
SELECT COUNT("location") FROM "tertiary_institutions" WHERE "athletic_nickname"='Blue Crusaders'; |
## Task
Generate a SQL query to answer the following question:
`How many locations are there for the athletic nickname is blue crusaders?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many locations are there for the athletic nickname is blue crusaders?`:
```sql
|
SELECT COUNT("school_colors") FROM "tertiary_institutions" WHERE "location"='Naga , Camarines Sur'; |
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for school colors for the location of naga , camarines sur?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are shown for school colors for the location of naga , camarines sur?`:
```sql
|
SELECT COUNT("enrollment") FROM "tertiary_institutions" WHERE "athletic_nickname"='Golden Knights'; |
## Task
Generate a SQL query to answer the following question:
`For the athletic nickname of golden knights how many entries are shown for enrollment?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the athletic nickname of golden knights how many entries are shown for enrollment?`:
```sql
|
SELECT "founded" FROM "tertiary_institutions" WHERE "institution"='Ateneo de Manila University'; |
## Task
Generate a SQL query to answer the following question:
`What year was the ateneo de manila university founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the ateneo de manila university founded?`:
```sql
|
SELECT "founded" FROM "tertiary_institutions" WHERE "athletic_nickname"='Blue Crusaders'; |
## Task
Generate a SQL query to answer the following question:
`What year was the athletic nickname blue crusaders founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tertiary_institutions" (
"institution" text,
"location" text,
"enrollment" text,
"athletic_nickname" text,
"school_colors" text,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the athletic nickname blue crusaders founded?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_22181917_2" WHERE "season_num"=20; |
## Task
Generate a SQL query to answer the following question:
`How many original airdates did season 20 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22181917_2" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original airdates did season 20 have?`:
```sql
|
SELECT "directed_by" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='6.62'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that was watched by 6.62 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22181917_2" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that was watched by 6.62 million U.S. viewers?`:
```sql
|
SELECT "production_code" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='8.56'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code for the episode with 8.56 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22181917_2" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for the episode with 8.56 million U.S. viewers?`:
```sql
|
SELECT "title" FROM "table1_22181917_2" WHERE "u_s_viewers_millions"='9.76'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that had 9.76 million U.S. viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22181917_2" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that had 9.76 million U.S. viewers?`:
```sql
|
SELECT "title" FROM "united_kingdom_channel_4" WHERE "original_airing_on_e4"='May 2, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the original airing on e4 May 2, 2010?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom_channel_4" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"original_airing_on_e4" text,
"time_of_airing_on_e4" text,
"position_in_channel_4s_ratings_a" text,
"position_in_e4s_ratings_b" text,
"total_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the original airing on e4 May 2, 2010?`:
```sql
|
SELECT COUNT("total_viewers") FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='April 21, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many total viewers have April 21, 2010 as the original airing on channel 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom_channel_4" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"original_airing_on_e4" text,
"time_of_airing_on_e4" text,
"position_in_channel_4s_ratings_a" text,
"position_in_e4s_ratings_b" text,
"total_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total viewers have April 21, 2010 as the original airing on channel 4?`:
```sql
|
SELECT "position_in_e4s_ratings_b" FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='June 30, 2010'; |
## Task
Generate a SQL query to answer the following question:
`What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom_channel_4" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"original_airing_on_e4" text,
"time_of_airing_on_e4" text,
"position_in_channel_4s_ratings_a" text,
"position_in_e4s_ratings_b" text,
"total_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position in e4s ratings b when June 30, 2010 is the original airing on channel 4?`:
```sql
|
SELECT "original_airing_on_channel_4" FROM "united_kingdom_channel_4" WHERE "title"='Being Alive'; |
## Task
Generate a SQL query to answer the following question:
`When is the original airing on channel 4 with being alive as the title?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom_channel_4" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"original_airing_on_e4" text,
"time_of_airing_on_e4" text,
"position_in_channel_4s_ratings_a" text,
"position_in_e4s_ratings_b" text,
"total_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the original airing on channel 4 with being alive as the title?`:
```sql
|
SELECT COUNT("position_in_channel_4s_ratings_a") FROM "united_kingdom_channel_4" WHERE "original_airing_on_channel_4"='February 24, 2010'; |
## Task
Generate a SQL query to answer the following question:
`How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_kingdom_channel_4" (
"episode_number" real,
"title" text,
"original_airing_on_channel_4" text,
"time_of_airing_on_channel_4" text,
"original_airing_on_e4" text,
"time_of_airing_on_e4" text,
"position_in_channel_4s_ratings_a" text,
"position_in_e4s_ratings_b" text,
"total_viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many position in channel 4s ratings a have February 24, 2010 as the original airing on channel 4?`:
```sql
|
SELECT "type" FROM "references" WHERE "registration"='HB-OPU'; |
## Task
Generate a SQL query to answer the following question:
`What are all types where registration is HB-OPU?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"type" text,
"registration" text,
"design" text,
"construction" text,
"service" text,
"construction_date" text,
"conformity_to_original_design" text,
"interest" text,
"number_existing_in_switzerland" text,
"number_existing_worldwide" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all types where registration is HB-OPU?`:
```sql
|
SELECT "registration" FROM "references" WHERE "type"='T 6 G'; |
## Task
Generate a SQL query to answer the following question:
`What is every registration for the type of T 6 G?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"type" text,
"registration" text,
"design" text,
"construction" text,
"service" text,
"construction_date" text,
"conformity_to_original_design" text,
"interest" text,
"number_existing_in_switzerland" text,
"number_existing_worldwide" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every registration for the type of T 6 G?`:
```sql
|
SELECT "construction_date" FROM "references" WHERE "registration"='HB-HOS'; |
## Task
Generate a SQL query to answer the following question:
`What is every construction date for the registration of HB-HOS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"type" text,
"registration" text,
"design" text,
"construction" text,
"service" text,
"construction_date" text,
"conformity_to_original_design" text,
"interest" text,
"number_existing_in_switzerland" text,
"number_existing_worldwide" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every construction date for the registration of HB-HOS?`:
```sql
|
SELECT "conformity_to_original_design" FROM "references" WHERE "construction_date"='After 1945' AND "registration"='HB-SAE'; |
## Task
Generate a SQL query to answer the following question:
`What is every conformity to original design if the construction date is after 1945 and registration is HB-SAE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"type" text,
"registration" text,
"design" text,
"construction" text,
"service" text,
"construction_date" text,
"conformity_to_original_design" text,
"interest" text,
"number_existing_in_switzerland" text,
"number_existing_worldwide" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every conformity to original design if the construction date is after 1945 and registration is HB-SAE?`:
```sql
|
SELECT "conformity_to_original_design" FROM "references" WHERE "registration"='HB-DAI'; |
## Task
Generate a SQL query to answer the following question:
`What is every conformity to original design if registration is HB-DAI?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "references" (
"type" text,
"registration" text,
"design" text,
"construction" text,
"service" text,
"construction_date" text,
"conformity_to_original_design" text,
"interest" text,
"number_existing_in_switzerland" text,
"number_existing_worldwide" text,
"status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every conformity to original design if registration is HB-DAI?`:
```sql
|
SELECT MAX("season_num") FROM "episode_list" WHERE "director"='Eric Tuchman'; |
## Task
Generate a SQL query to answer the following question:
`What is the latest season number that Eric Tuchman directed? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_list" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"nbc_airdate" text,
"code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest season number that Eric Tuchman directed? `:
```sql
|
SELECT COUNT("season_num") FROM "episode_list" WHERE "nbc_airdate"='October 2, 2001'; |
## Task
Generate a SQL query to answer the following question:
`How man seasons have the air date of October 2, 2001? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_list" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"nbc_airdate" text,
"code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How man seasons have the air date of October 2, 2001? `:
```sql
|
SELECT "writer_s" FROM "episode_list" WHERE "title"='\"The Last Dance\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote, "The Last Dance"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "episode_list" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"nbc_airdate" text,
"code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote, "The Last Dance"?`:
```sql
|
SELECT "report" FROM "table1_2220432_1" WHERE "team"='Roush Fenway Racing'; |
## Task
Generate a SQL query to answer the following question:
`What was the report in the race where the winning team was Roush Fenway Racing? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2220432_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the report in the race where the winning team was Roush Fenway Racing? `:
```sql
|
SELECT "miles_km" FROM "table1_2220432_1" WHERE "average_speed_mph"='136.117'; |
## Task
Generate a SQL query to answer the following question:
`What was the miles (km) for the race that had an average speed of 136.117 MPH?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2220432_1" (
"year" real,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the miles (km) for the race that had an average speed of 136.117 MPH?`:
```sql
|
SELECT "miles_km" FROM "table1_2226343_1" WHERE "date"='February 25'; |
## Task
Generate a SQL query to answer the following question:
`What are the miles when February 25 is the date?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the miles when February 25 is the date?`:
```sql
|
SELECT "laps" FROM "table1_2226343_1" WHERE "average_speed_mph"='141.911'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have an average speed of 141.911?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have an average speed of 141.911?`:
```sql
|
SELECT "manufacturer" FROM "table1_2226343_1" WHERE "average_speed_mph"='150.088'; |
## Task
Generate a SQL query to answer the following question:
`Who is the manufacturer when 150.088 is the average speed (mph)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manufacturer when 150.088 is the average speed (mph)?`:
```sql
|
SELECT "manufacturer" FROM "table1_2226343_1" WHERE "date"='June 22'; |
## Task
Generate a SQL query to answer the following question:
`Who is the manufacturer for the date of June 22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manufacturer for the date of June 22?`:
```sql
|
SELECT "laps" FROM "table1_2226343_1" WHERE "race_time"='3:31:24'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have a race time of 3:31:24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have a race time of 3:31:24?`:
```sql
|
SELECT "laps" FROM "table1_2226343_1" WHERE "average_speed_mph"='140.22'; |
## Task
Generate a SQL query to answer the following question:
`How many laps have an average speed (mph) of 140.22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226343_1" (
"year" text,
"date" text,
"driver" text,
"team" text,
"manufacturer" text,
"laps" text,
"miles_km" text,
"race_time" text,
"average_speed_mph" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps have an average speed (mph) of 140.22?`:
```sql
|
SELECT "director" FROM "fr_yugoslavia" WHERE "original_title"='Три летња дана'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the film with the original title of три летња дана?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fr_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the film with the original title of три летња дана?`:
```sql
|
SELECT "director" FROM "fr_yugoslavia" WHERE "film_title_used_in_nomination"='Three Summer Days'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the film with the title three summer days?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fr_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the film with the title three summer days?`:
```sql
|
SELECT "director" FROM "fr_yugoslavia" WHERE "original_title"='Лепа села лепо горе'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the film with the title лепа села лепо горе?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fr_yugoslavia" (
"year_ceremony" text,
"film_title_used_in_nomination" text,
"original_title" text,
"director" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the film with the title лепа села лепо горе?`:
```sql
|
SELECT "u_s_viewers_million" FROM "table1_22261877_1" WHERE "production_code"='6ACX16'; |
## Task
Generate a SQL query to answer the following question:
`How many viewers in millions watched the episode with the production code 6acx16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22261877_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers in millions watched the episode with the production code 6acx16?`:
```sql
|
SELECT "original_air_date" FROM "table1_22261877_1" WHERE "production_code"='6ACX19'; |
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode with the production code 6acx19? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22261877_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date of the episode with the production code 6acx19? `:
```sql
|
SELECT "original_air_date" FROM "table1_2226817_2" WHERE "production_code"='1.12'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the production code of 1.12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the production code of 1.12?`:
```sql
|
SELECT "no_in_series" FROM "table1_2226817_2" WHERE "production_code"='1.11'; |
## Task
Generate a SQL query to answer the following question:
`How many number of series have a production code of 1.11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of series have a production code of 1.11?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_2226817_2" WHERE "production_code"='1.11'; |
## Task
Generate a SQL query to answer the following question:
`How many number of series have the production code of 1.11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many number of series have the production code of 1.11?`:
```sql
|
SELECT "written_by" FROM "table1_2226817_2" WHERE "original_air_date"='April 5, 1987'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote when the original airdate is April 5, 1987?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote when the original airdate is April 5, 1987?`:
```sql
|
SELECT "directed_by" FROM "table1_2226817_2" WHERE "title"='\"Peggy Sue Got Work\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the title "peggy sue got work"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title "peggy sue got work"?`:
```sql
|
SELECT "directed_by" FROM "table1_2226817_2" WHERE "production_code"='1.02'; |
## Task
Generate a SQL query to answer the following question:
`Who directed when the production code is 1.02?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_2" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed when the production code is 1.02?`:
```sql
|
SELECT "production_code" FROM "table1_2226817_4" WHERE "original_air_date"='November 27, 1988'; |
## Task
Generate a SQL query to answer the following question:
`Name the production code for november 27, 1988`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code for november 27, 1988`:
```sql
|
SELECT "original_air_date" FROM "table1_2226817_4" WHERE "production_code"='3.04'; |
## Task
Generate a SQL query to answer the following question:
`Name the original air date for 3.04 production code`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the original air date for 3.04 production code`:
```sql
|
SELECT "written_by" FROM "table1_2226817_4" WHERE "original_air_date"='April 9, 1989'; |
## Task
Generate a SQL query to answer the following question:
`Name who wrote the episode that aired april 9, 1989`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who wrote the episode that aired april 9, 1989`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_2226817_4" WHERE "production_code"='3.09'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of number in season for 3.09`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of number in season for 3.09`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_2226817_12" WHERE "production_code"='11.19'; |
## Task
Generate a SQL query to answer the following question:
`when was the episode premiere if the production code is 11.19? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode premiere if the production code is 11.19? `:
```sql
|
SELECT "title" FROM "table1_2226817_12" WHERE "original_air_date"='March 2, 1997'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode whose premiere was in march 2, 1997?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the episode whose premiere was in march 2, 1997?`:
```sql
|
SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.01'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode when the production code is 11.01?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the episode when the production code is 11.01?`:
```sql
|
SELECT "title" FROM "table1_2226817_12" WHERE "production_code"='11.12'; |
## Task
Generate a SQL query to answer the following question:
`what is the name of the episode if the production code is 11.12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the episode if the production code is 11.12?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_2226817_12" WHERE "directed_by"='Mark K. Samuels'; |
## Task
Generate a SQL query to answer the following question:
`how many episodes has been directed by Mark K. Samuels ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many episodes has been directed by Mark K. Samuels ?`:
```sql
|
SELECT "no_in_series" FROM "table1_2226817_12" WHERE "title"='\"Breaking Up Is Easy to Do (Part 1)\"'; |
## Task
Generate a SQL query to answer the following question:
`what is the number of the episode in series that is called "breaking up is easy to do (part 1)"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_12" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of the episode in series that is called "breaking up is easy to do (part 1)"?`:
```sql
|
SELECT "directed_by" FROM "table1_2226817_3" WHERE "title"='\"The Razor''s Edge\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the title "the razor's edge"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title "the razor's edge"?`:
```sql
|
SELECT "directed_by" FROM "table1_2226817_3" WHERE "written_by"='Michael G. Moye & Ron Leavitt & J. Stanford Parker'; |
## Task
Generate a SQL query to answer the following question:
`Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?`:
```sql
|
SELECT "production_code" FROM "table1_2226817_8" WHERE "written_by"='Michael G. Moye'; |
## Task
Generate a SQL query to answer the following question:
`What are all the production codes of episodes written by Michael G. Moye?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the production codes of episodes written by Michael G. Moye?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_2226817_8" WHERE "no_in_season"=13; |
## Task
Generate a SQL query to answer the following question:
`Who is the writer of episode 13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer of episode 13?`:
```sql
|
SELECT COUNT("no_in_series") FROM "table1_2226817_8" WHERE "production_code"='7.07'; |
## Task
Generate a SQL query to answer the following question:
`Which series number has the production code 7.07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which series number has the production code 7.07?`:
```sql
|
SELECT MAX("no_in_season") FROM "table1_2226817_8" WHERE "production_code"='7.01'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons have the production code 7.01 for an episode? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons have the production code 7.01 for an episode? `:
```sql
|
SELECT "no_in_series" FROM "table1_2226817_8" WHERE "no_in_season"=12; |
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series are from season 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_8" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series are from season 12?`:
```sql
|
SELECT MIN("no_in_season") FROM "table1_2226817_9" WHERE "no_in_series"=158; |
## Task
Generate a SQL query to answer the following question:
`How many seasons had episode 158?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons had episode 158?`:
```sql
|
SELECT "production_code" FROM "table1_2226817_9" WHERE "written_by"='Stacie Lipp'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode directed by Stacie Lipp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode directed by Stacie Lipp?`:
```sql
|
SELECT "title" FROM "table1_2226817_9" WHERE "no_in_series"=165; |
## Task
Generate a SQL query to answer the following question:
`What is the name of episode 165?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode 165?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_2226817_9" WHERE "production_code"='8.04'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have the production code 8.04`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2226817_9" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes have the production code 8.04`:
```sql
|
SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='TCA'; |
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 2 code for the area also known as TCA?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 2 code for the area also known as TCA?`:
```sql
|
SELECT "alpha_3_code" FROM "officially_assigned_code_elements" WHERE "alpha_2_code"='FO'; |
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 3 code for the area also known as FO?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 3 code for the area also known as FO?`:
```sql
|
SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='NZL'; |
## Task
Generate a SQL query to answer the following question:
`What is the alpha 2 code for the area also known as NZL?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the alpha 2 code for the area also known as NZL?`:
```sql
|
SELECT "iso_3166_2_codes" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='South Sudan'; |
## Task
Generate a SQL query to answer the following question:
`What is the ISO for South Sudan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ISO for South Sudan?`:
```sql
|
SELECT "alpha_2_code" FROM "officially_assigned_code_elements" WHERE "english_short_name_upper_lower_case"='Papua New Guinea'; |
## Task
Generate a SQL query to answer the following question:
`What is the Alpha 2 code for Papua New Guinea?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Alpha 2 code for Papua New Guinea?`:
```sql
|
SELECT "numeric_code" FROM "officially_assigned_code_elements" WHERE "alpha_3_code"='LIE'; |
## Task
Generate a SQL query to answer the following question:
`What is the number reference for LIE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "officially_assigned_code_elements" (
"english_short_name_upper_lower_case" text,
"alpha_2_code" text,
"alpha_3_code" text,
"numeric_code" real,
"iso_3166_2_codes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number reference for LIE?`:
```sql
|
SELECT COUNT("launch_date") FROM "free_to_air_television" WHERE "transmission"='Digital'; |
## Task
Generate a SQL query to answer the following question:
`How many launch dates are there for digital transmission?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "free_to_air_television" (
"ch" text,
"channel" text,
"channel_content" text,
"transmission" text,
"format" text,
"launch_date" text,
"licence" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many launch dates are there for digital transmission?`:
```sql
|
SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX14'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the title with production code 7acx14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22269839_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title with production code 7acx14?`:
```sql
|
SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Cherry Chevapravatdumrong'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the title written by cherry chevapravatdumrong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22269839_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title written by cherry chevapravatdumrong?`:
```sql
|
SELECT "written_by" FROM "table1_22269839_1" WHERE "production_code"='7ACX08'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the title with the production code is 7acx08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22269839_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title with the production code is 7acx08?`:
```sql
|
SELECT "directed_by" FROM "table1_22269839_1" WHERE "written_by"='Patrick Meighan'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by patrick meighan?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22269839_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by patrick meighan?`:
```sql
|
SELECT "dates" FROM "wisconsin" WHERE "control_site_condition_owner"='machine shop on Martin Dr.'; |
## Task
Generate a SQL query to answer the following question:
`When is every date that control site condition or owner is machine shop on Martin Dr.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wisconsin" (
"code_location" text,
"missile_type" text,
"defense_area" text,
"dates" text,
"control_site_condition_owner" text,
"launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is every date that control site condition or owner is machine shop on Martin Dr.?`:
```sql
|
SELECT "missile_type" FROM "wisconsin" WHERE "code_location"='M-20 Harbor Drive'; |
## Task
Generate a SQL query to answer the following question:
`What is every missile type with a code and location of M-20 Harbor Drive?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wisconsin" (
"code_location" text,
"missile_type" text,
"defense_area" text,
"dates" text,
"control_site_condition_owner" text,
"launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every missile type with a code and location of M-20 Harbor Drive?`:
```sql
|
SELECT "code_location" FROM "wisconsin" WHERE "launch_site_condition_owner"='Obliterated'; |
## Task
Generate a SQL query to answer the following question:
`What is every code and location where the launch site condition and owner is obliterated?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wisconsin" (
"code_location" text,
"missile_type" text,
"defense_area" text,
"dates" text,
"control_site_condition_owner" text,
"launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every code and location where the launch site condition and owner is obliterated?`:
```sql
|
SELECT "control_site_condition_owner" FROM "wisconsin" WHERE "launch_site_condition_owner"='lakefront office buildings'; |
## Task
Generate a SQL query to answer the following question:
`What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wisconsin" (
"code_location" text,
"missile_type" text,
"defense_area" text,
"dates" text,
"control_site_condition_owner" text,
"launch_site_condition_owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every control site condition and owner if launch site condition and owner is Lakefront Office Buildings?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba'; |
## Task
Generate a SQL query to answer the following question:
`Which team had an outgoing manager of Behtash Fariba?`
### 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 `Which team had an outgoing manager of Behtash Fariba?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Faraz Kamalvand'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a manager who was replaced by Faraz Kamalvand?`
### 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 `Which team had a manager who was replaced by Faraz Kamalvand?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='Jafar Fatahi'; |
## Task
Generate a SQL query to answer the following question:
`Which outgoing manager was replaced by Jafar Fatahi?`
### 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 `Which outgoing manager was replaced by Jafar Fatahi?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "replaced_by"='Ebrahim Talebi'; |
## Task
Generate a SQL query to answer the following question:
`Which team had a manager replaced by Ebrahim Talebi?`
### 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 `Which team had a manager replaced by Ebrahim Talebi?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Behtash Fariba'; |
## Task
Generate a SQL query to answer the following question:
`What was the date in which Behtash Fariba left his team?`
### 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 was the date in which Behtash Fariba left his team?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Gostaresh Foolad'; |
## Task
Generate a SQL query to answer the following question:
`What was the manner of leaving the team for the manager of Gostaresh Foolad?`
### 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 was the manner of leaving the team for the manager of Gostaresh Foolad?`:
```sql
|
SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Gloucester'; |
## Task
Generate a SQL query to answer the following question:
`How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_county_community_colleges_" (
"college" text,
"2007_headcount" real,
"2007_2008_credit_hours" real,
"county_population_18_yrs" real,
"penetration_in_terms_of_enrollment_per_1000_adults" real,
"in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the cost of in-county tuition per credit hour at the Gloucester College by the fall of 2009?`:
```sql
|
SELECT "in_county_tuition_per_credit_hour_fall_2009" FROM "comparison_of_county_community_colleges_" WHERE "college"='Mercer'; |
## Task
Generate a SQL query to answer the following question:
`How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_county_community_colleges_" (
"college" text,
"2007_headcount" real,
"2007_2008_credit_hours" real,
"county_population_18_yrs" real,
"penetration_in_terms_of_enrollment_per_1000_adults" real,
"in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the in-county tuition per credit hour at the Mercer College by the fall of 2009?`:
```sql
|
SELECT MAX("county_population_18_yrs") FROM "comparison_of_county_community_colleges_"; |
## Task
Generate a SQL query to answer the following question:
`What is the biggest number for county population 18 years+?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "comparison_of_county_community_colleges_" (
"college" text,
"2007_headcount" real,
"2007_2008_credit_hours" real,
"county_population_18_yrs" real,
"penetration_in_terms_of_enrollment_per_1000_adults" real,
"in_county_tuition_per_credit_hour_fall_2009" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest number for county population 18 years+?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009'; |
## Task
Generate a SQL query to answer the following question:
`Who was the replacement manager for the vacancy of 12 Dec 2009?`
### 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 `Who was the replacement manager for the vacancy of 12 Dec 2009?`:
```sql
|
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009'; |
## Task
Generate a SQL query to answer the following question:
`Who was the replacement manager for the vacancy of 12 Dec 2009?`
### 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 `Who was the replacement manager for the vacancy of 12 Dec 2009?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Alireza Mansourian'; |
## Task
Generate a SQL query to answer the following question:
`What team did Alireza mansourian leave?`
### 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 team did Alireza mansourian leave?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='Majid Bagherinia'; |
## Task
Generate a SQL query to answer the following question:
`Why did Majid bagherinia leave?`
### 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 `Why did Majid bagherinia leave?`:
```sql
|
SELECT "team" FROM "managerial_changes" WHERE "date_of_vacancy"='12 Dec 2009'; |
## Task
Generate a SQL query to answer the following question:
`What team did a manager leave on 12 Dec 2009`
### 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 team did a manager leave on 12 Dec 2009`:
```sql
|
SELECT COUNT("team") FROM "managerial_changes" WHERE "outgoing_manager"='Farhad Kazemi'; |
## Task
Generate a SQL query to answer the following question:
`How many teams did Farhad Kazemi leave?`
### 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 `How many teams did Farhad Kazemi leave?`:
```sql
|
SELECT "team_name" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='Rend Lake College'; |
## Task
Generate a SQL query to answer the following question:
`If the school is Rend Lake College, what is the team name?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_schools_in_the_grac_and_general_" (
"school" text,
"location" text,
"team_name" text,
"colors" text,
"varsity_teams" real,
"njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the school is Rend Lake College, what is the team name?`:
```sql
|
SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_"; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum possible for the NJCAA championships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_schools_in_the_grac_and_general_" (
"school" text,
"location" text,
"team_name" text,
"colors" text,
"varsity_teams" real,
"njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum possible for the NJCAA championships?`:
```sql
|
SELECT "location" FROM "current_schools_in_the_grac_and_general_" WHERE "varsity_teams"=6; |
## Task
Generate a SQL query to answer the following question:
`If the varsity team is 6, what is the location?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_schools_in_the_grac_and_general_" (
"school" text,
"location" text,
"team_name" text,
"colors" text,
"varsity_teams" real,
"njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the varsity team is 6, what is the location?`:
```sql
|
SELECT "colors" FROM "current_schools_in_the_grac_and_general_" WHERE "school"='John A. Logan College'; |
## Task
Generate a SQL query to answer the following question:
`If the school is John A. Logan College, what are the colors?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_schools_in_the_grac_and_general_" (
"school" text,
"location" text,
"team_name" text,
"colors" text,
"varsity_teams" real,
"njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the school is John A. Logan College, what are the colors?`:
```sql
|
SELECT MIN("njcaa_championships") FROM "current_schools_in_the_grac_and_general_"; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum possible NJCAA championships?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "current_schools_in_the_grac_and_general_" (
"school" text,
"location" text,
"team_name" text,
"colors" text,
"varsity_teams" real,
"njcaa_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum possible NJCAA championships?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.