output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "death_2012" FROM "table1_25703_1" WHERE "death_2013"=140 AND "january_september_2013"='Moscow Oblast'; |
## Task
Generate a SQL query to answer the following question:
`What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25703_1" (
"january_september_2013" text,
"birth_2013" real,
"birth_2012" real,
"death_2013" real,
"death_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the death/2012 number when death/2013 is 140 and January–September 2013 is Moscow Oblast?`:
```sql
|
SELECT COUNT("birth_2013") FROM "table1_25703_1" WHERE "january_september_2013"='Oryol Oblast'; |
## Task
Generate a SQL query to answer the following question:
`How many figures for birth/2013 when January-September is Oryol Oblast?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25703_1" (
"january_september_2013" text,
"birth_2013" real,
"birth_2012" real,
"death_2013" real,
"death_2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures for birth/2013 when January-September is Oryol Oblast?`:
```sql
|
SELECT "touchdowns" FROM "michigan_65_ohio_wesleyan_0" WHERE "points"=25; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did the player took which gained 25 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_wesleyan_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did the player took which gained 25 points?`:
```sql
|
SELECT MAX("points") FROM "michigan_65_ohio_wesleyan_0" WHERE "player"='Curtis'; |
## Task
Generate a SQL query to answer the following question:
`How many maximum points did Curtis scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_wesleyan_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many maximum points did Curtis scored?`:
```sql
|
SELECT MAX("touchdowns") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Left guard'; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did the left guard took?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_wesleyan_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did the left guard took?`:
```sql
|
SELECT COUNT("field_goals") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Left end'; |
## Task
Generate a SQL query to answer the following question:
`How many numbers were recorded on the fields goals of the Left End player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_wesleyan_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers were recorded on the fields goals of the Left End player?`:
```sql
|
SELECT MIN("touchdowns") FROM "michigan_65_ohio_wesleyan_0" WHERE "position"='Fullback'; |
## Task
Generate a SQL query to answer the following question:
`What was the minimum touchdowns of the Fullback player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_65_ohio_wesleyan_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum touchdowns of the Fullback player?`:
```sql
|
SELECT MIN("touchdowns") FROM "michigan_70_albion_0" WHERE "position"='Fullback'; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did the fullback score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_70_albion_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did the fullback score?`:
```sql
|
SELECT COUNT("field_goals") FROM "michigan_70_albion_0" WHERE "player"='Weeks'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are provided for Weeks' field goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_70_albion_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are provided for Weeks' field goals?`:
```sql
|
SELECT MAX("points") FROM "michigan_70_albion_0" WHERE "position"='Right halfback'; |
## Task
Generate a SQL query to answer the following question:
`What is the most points recorded for a right halfback?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_70_albion_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most points recorded for a right halfback?`:
```sql
|
SELECT "starter" FROM "michigan_70_albion_0" WHERE "player"='Magoffin'; |
## Task
Generate a SQL query to answer the following question:
`Was Magoffin a starting player?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_70_albion_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Was Magoffin a starting player?`:
```sql
|
SELECT "player" FROM "michigan_70_albion_0" WHERE "position"='Left tackle'; |
## Task
Generate a SQL query to answer the following question:
`Which player was at position left tackle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "michigan_70_albion_0" (
"player" text,
"position" text,
"starter" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was at position left tackle?`:
```sql
|
SELECT "original_air_date" FROM "table1_25716399_1" WHERE "written_by"='Daniel Dratch'; |
## Task
Generate a SQL query to answer the following question:
`What is the original air date for the episode written by daniel dratch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date for the episode written by daniel dratch?`:
```sql
|
SELECT MAX("no_in_season") FROM "table1_25716399_1" WHERE "directed_by"='Wendey Stanzler'; |
## Task
Generate a SQL query to answer the following question:
`What season was an episode directed by wendey stanzler?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was an episode directed by wendey stanzler?`:
```sql
|
SELECT "original_air_date" FROM "table1_25716399_1" WHERE "u_s_viewers_millions"='5.60'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date where there were u.s. viewers (millions) is 5.60?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date where there were u.s. viewers (millions) is 5.60?`:
```sql
|
SELECT "written_by" FROM "table1_25716399_1" WHERE "no_in_season"=14; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer for season 14?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for season 14?`:
```sql
|
SELECT "written_by" FROM "table1_25716399_1" WHERE "original_air_date"='July20,2007'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode where the original air date is july20,2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode where the original air date is july20,2007?`:
```sql
|
SELECT MAX("no_in_season") FROM "table1_25716399_1" WHERE "written_by"='Jonathan Collier'; |
## Task
Generate a SQL query to answer the following question:
`what season was written by jonathan collier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716399_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what season was written by jonathan collier?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_25716397_1" WHERE "written_by"='Tom Scharpling and Daniel Dratch'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Tom Scharpling and Daniel Dratch?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716397_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Tom Scharpling and Daniel Dratch?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_25716397_1" WHERE "written_by"='Joe Toplyn'; |
## Task
Generate a SQL query to answer the following question:
`How many people directed the episode that Joe Toplyn wrote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716397_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people directed the episode that Joe Toplyn wrote?`:
```sql
|
SELECT COUNT("title") FROM "table1_25716397_1" WHERE "written_by"='Joe Toplyn'; |
## Task
Generate a SQL query to answer the following question:
`How many titles does the episode written by Joe Toplyn have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716397_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles does the episode written by Joe Toplyn have?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_25716397_1" WHERE "series_no"=55; |
## Task
Generate a SQL query to answer the following question:
`How many directors of episode 55?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716397_1" (
"series_no" real,
"no_in_season" real,
"title" text,
"written_by" text,
"directed_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors of episode 55?`:
```sql
|
SELECT COUNT("title") FROM "table1_25716401_1" WHERE "written_by"='Tom Scharpling'; |
## Task
Generate a SQL query to answer the following question:
`How many titles are there for the episode written by Tom Scharpling? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25716401_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 titles are there for the episode written by Tom Scharpling? `:
```sql
|
SELECT MIN("episode_no") FROM "red_dwarf_x" WHERE "airdate"='18 October 2012'; |
## Task
Generate a SQL query to answer the following question:
`Which episode number aired on 18 october 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "red_dwarf_x" (
"episode_no" real,
"airdate" text,
"dave_viewers" real,
"dave_rank" real,
"rank_cable" real,
"dave_ja_vu_viewers" real,
"total_viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode number aired on 18 october 2012?`:
```sql
|
SELECT MIN("rank_cable") FROM "red_dwarf_x" WHERE "total_viewers"=1464000; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest cable rank of an episode with 1464000 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "red_dwarf_x" (
"episode_no" real,
"airdate" text,
"dave_viewers" real,
"dave_rank" real,
"rank_cable" real,
"dave_ja_vu_viewers" real,
"total_viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest cable rank of an episode with 1464000 viewers?`:
```sql
|
SELECT MAX("dave_viewers") FROM "red_dwarf_x" WHERE "dave_ja_vu_viewers"=119000; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "red_dwarf_x" (
"episode_no" real,
"airdate" text,
"dave_viewers" real,
"dave_rank" real,
"rank_cable" real,
"dave_ja_vu_viewers" real,
"total_viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of dave viewers of an episode with 119000 dave ja vu viewers?`:
```sql
|
SELECT COUNT("total_viewers") FROM "red_dwarf_x" WHERE "airdate"='25 October 2012'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes aired on 25 october 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "red_dwarf_x" (
"episode_no" real,
"airdate" text,
"dave_viewers" real,
"dave_rank" real,
"rank_cable" real,
"dave_ja_vu_viewers" real,
"total_viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes aired on 25 october 2012?`:
```sql
|
SELECT "airdate" FROM "red_dwarf_x" WHERE "dave_ja_vu_viewers"=106000; |
## Task
Generate a SQL query to answer the following question:
`What was the airdate of the episode with 106000 dave ja vu viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "red_dwarf_x" (
"episode_no" real,
"airdate" text,
"dave_viewers" real,
"dave_rank" real,
"rank_cable" real,
"dave_ja_vu_viewers" real,
"total_viewers" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the airdate of the episode with 106000 dave ja vu viewers?`:
```sql
|
SELECT "num_of_discs" FROM "table1_25721_4" WHERE "release"='The Complete Collection Series 1-8 with extras'; |
## Task
Generate a SQL query to answer the following question:
`How many DVDs where were in the complete collection series 1-8 with extras?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25721_4" (
"release" text,
"num_of_discs" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many DVDs where were in the complete collection series 1-8 with extras?`:
```sql
|
SELECT "release" FROM "table1_25721_4" WHERE "num_of_discs"=6; |
## Task
Generate a SQL query to answer the following question:
`Which release had 6 DVDs?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25721_4" (
"release" text,
"num_of_discs" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which release had 6 DVDs?`:
```sql
|
SELECT COUNT("region_1") FROM "table1_25721_4" WHERE "release"='Back to Earth'; |
## Task
Generate a SQL query to answer the following question:
`How many region 1's did back to earth have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25721_4" (
"release" text,
"num_of_discs" real,
"region_1" text,
"region_2" text,
"region_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many region 1's did back to earth have?`:
```sql
|
SELECT MAX("field_goals") FROM "scoring_leaders" WHERE "player"='Walter Rheinschild'; |
## Task
Generate a SQL query to answer the following question:
`How many field goals did Walter Rheinschild have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals did Walter Rheinschild have? `:
```sql
|
SELECT "extra_points" FROM "scoring_leaders" WHERE "player"='Jack Loell'; |
## Task
Generate a SQL query to answer the following question:
`Jack Loell had how many extra points? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Jack Loell had how many extra points? `:
```sql
|
SELECT COUNT("points") FROM "scoring_leaders" WHERE "player"='Donald Green'; |
## Task
Generate a SQL query to answer the following question:
`How many points did Donald Green score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did Donald Green score?`:
```sql
|
SELECT COUNT("field_goals") FROM "scoring_leaders" WHERE "player"='Donald Green'; |
## Task
Generate a SQL query to answer the following question:
`How many field goals did Donald Green score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals did Donald Green score?`:
```sql
|
SELECT MIN("extra_points") FROM "scoring_leaders"; |
## Task
Generate a SQL query to answer the following question:
`What was the least amount of points scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least amount of points scored?`:
```sql
|
SELECT COUNT("extra_points") FROM "scoring_leaders" WHERE "player"='Stanfield Wells'; |
## Task
Generate a SQL query to answer the following question:
`How many extra points did Stanfield Wells make?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many extra points did Stanfield Wells make?`:
```sql
|
SELECT MAX("points") FROM "scoring_leaders"; |
## Task
Generate a SQL query to answer the following question:
`What are the most points listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the most points listed?`:
```sql
|
SELECT "touchdowns" FROM "scoring_leaders" WHERE "extra_points">1.0; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns were the when there was more than 1.0 extra point?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns were the when there was more than 1.0 extra point?`:
```sql
|
SELECT "player" FROM "scoring_leaders" WHERE "extra_points"<1.0 AND "points"=20; |
## Task
Generate a SQL query to answer the following question:
`Name the player/s when there were 20 points with less than 1.0 extra point .`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player/s when there were 20 points with less than 1.0 extra point .`:
```sql
|
SELECT MIN("field_goals") FROM "scoring_leaders" WHERE "player"='Frederick L. Conklin'; |
## Task
Generate a SQL query to answer the following question:
`What were the least amount of field goals when Frederick L. Conklin played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the least amount of field goals when Frederick L. Conklin played?`:
```sql
|
SELECT MIN("extra_points") FROM "scoring_leaders"; |
## Task
Generate a SQL query to answer the following question:
`What is the least number of extra points? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of extra points? `:
```sql
|
SELECT "points" FROM "scoring_leaders" WHERE "player"='William Wasmund'; |
## Task
Generate a SQL query to answer the following question:
`How many points did William Wasmund have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did William Wasmund have?`:
```sql
|
SELECT MIN("touchdowns") FROM "scoring_leaders" WHERE "points"=10; |
## Task
Generate a SQL query to answer the following question:
`How many touchdowns did the player with 10 points have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many touchdowns did the player with 10 points have?`:
```sql
|
SELECT MAX("points") FROM "scoring_leaders" WHERE "player"='George M. Lawton'; |
## Task
Generate a SQL query to answer the following question:
`How many points does George M. Lawton have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does George M. Lawton have?`:
```sql
|
SELECT "player" FROM "scoring_leaders" WHERE "touchdowns"=1; |
## Task
Generate a SQL query to answer the following question:
`Name the player for 1 touchdowns`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the player for 1 touchdowns`:
```sql
|
SELECT MIN("extra_points") FROM "scoring_leaders"; |
## Task
Generate a SQL query to answer the following question:
`Name the least extra points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least extra points`:
```sql
|
SELECT MIN("extra_points") FROM "scoring_leaders"; |
## Task
Generate a SQL query to answer the following question:
`Name the least extra points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scoring_leaders" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least extra points`:
```sql
|
SELECT "director" FROM "series_1_2009" WHERE "no"=2; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2009" (
"no" real,
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 2?`:
```sql
|
SELECT "no" FROM "series_1_2009" WHERE "viewing_figure"=797000; |
## Task
Generate a SQL query to answer the following question:
`What was the episode number that had 797000 viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2009" (
"no" real,
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the episode number that had 797000 viewers?`:
```sql
|
SELECT "writer" FROM "series_1_2009" WHERE "director"='Colin Teague'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode directed by colin teague?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1_2009" (
"no" real,
"num" real,
"episode" text,
"writer" text,
"director" text,
"original_air_date" text,
"viewing_figure" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode directed by colin teague?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_25740548_2" WHERE "production_code"='CA106'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes with the production code CA106 are there?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes with the production code CA106 are there?`:
```sql
|
SELECT "directed_by" FROM "table1_25740548_2" WHERE "written_by"='Matthew Lau'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director for episodes that were written be Matthew Lau?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for episodes that were written be Matthew Lau?`:
```sql
|
SELECT COUNT("title") FROM "table1_25740548_2" WHERE "written_by"='Brett Conrad'; |
## Task
Generate a SQL query to answer the following question:
`How many episode were written by Brett Conrad?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode were written by Brett Conrad?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Tim Matheson'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were directed by Tim Matheson?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were directed by Tim Matheson?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_25740548_2" WHERE "directed_by"='Rod Hardy'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were directed by Rod Hardy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_2" (
"series_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were directed by Rod Hardy?`:
```sql
|
SELECT "written_by" FROM "table1_25740548_3" WHERE "u_s_viewers_million"='3.92'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with 3.92 million US viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with 3.92 million US viewers?`:
```sql
|
SELECT COUNT("original_air_date") FROM "table1_25740548_3" WHERE "production_code"='CA210'; |
## Task
Generate a SQL query to answer the following question:
`How many original air dates are there for the episode with code CA210?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates are there for the episode with code CA210?`:
```sql
|
SELECT "directed_by" FROM "table1_25740548_3" WHERE "title"='\"The Outsiders\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode "The Outsiders"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25740548_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode "The Outsiders"?`:
```sql
|
SELECT COUNT("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='0.7/2' AND "rating"='2.1'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekly_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had rating/share (18-49) of 0.7/2 and a rating of 2.1?`:
```sql
|
SELECT MIN("episode_number") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.1/3'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekly_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?`:
```sql
|
SELECT "rating" FROM "weekly_ratings" WHERE "share"=4 AND "rating_share_18_49"='0.7/2'; |
## Task
Generate a SQL query to answer the following question:
`What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekly_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rating of the episode with a share of 4 and a rating/share (18-49) of 0.7/2?`:
```sql
|
SELECT MIN("rank_night") FROM "weekly_ratings" WHERE "rating_share_18_49"='1.3/4'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "weekly_ratings" (
"episode_number" real,
"episode" text,
"rating" text,
"share" real,
"rating_share_18_49" text,
"viewers_millions" text,
"rank_timeslot" real,
"rank_night" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of an episode with a rating/share (18-49) of 1.3/4?`:
```sql
|
SELECT "single" FROM "top_10_singles" WHERE "artist"='Travis'; |
## Task
Generate a SQL query to answer the following question:
`What is the song released by Travis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_singles" (
"entered_a" text,
"weeks_in_top_10" real,
"single" text,
"artist" text,
"peak" real,
"peak_reached_a" text,
"weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song released by Travis?`:
```sql
|
SELECT MIN("weeks_at_number_1") FROM "top_10_singles"; |
## Task
Generate a SQL query to answer the following question:
`error (see notes)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_singles" (
"entered_a" text,
"weeks_in_top_10" real,
"single" text,
"artist" text,
"peak" real,
"peak_reached_a" text,
"weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `error (see notes)`:
```sql
|
SELECT "single" FROM "top_10_singles" WHERE "artist"='Panjabi MC'; |
## Task
Generate a SQL query to answer the following question:
`What is the song by the musician panjabi mc?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "top_10_singles" (
"entered_a" text,
"weeks_in_top_10" real,
"single" text,
"artist" text,
"peak" real,
"peak_reached_a" text,
"weeks_at_number_1" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the song by the musician panjabi mc?`:
```sql
|
SELECT "location" FROM "race_calendar_and_results" WHERE "round"=1; |
## Task
Generate a SQL query to answer the following question:
`Where was the round 1 race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the round 1 race?`:
```sql
|
SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "date"='April 11'; |
## Task
Generate a SQL query to answer the following question:
`Who won the April 11 race?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the April 11 race?`:
```sql
|
SELECT "location" FROM "race_calendar_and_results" WHERE "pole_position"='Daniel Erickson' AND "fastest_lap"='Cole Morgan'; |
## Task
Generate a SQL query to answer the following question:
`Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the race where Cole Morgan had the fastest lap and Daniel Erickson had pole position?`:
```sql
|
SELECT COUNT("round") FROM "race_calendar_and_results" WHERE "date"='May 8'; |
## Task
Generate a SQL query to answer the following question:
`How many rounds were played on May 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were played on May 8?`:
```sql
|
SELECT "pole_position" FROM "race_calendar_and_results" WHERE "fastest_lap"='Victor Carbone' AND "location"='Braselton, Georgia'; |
## Task
Generate a SQL query to answer the following question:
`Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had pole position for the races in Braselton, Georgia where Victor Carbone had fastest lap?`:
```sql
|
SELECT "location" FROM "race_calendar_and_results" WHERE "winning_team"='Audette Racing'; |
## Task
Generate a SQL query to answer the following question:
`Where did Audette Racing win?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "race_calendar_and_results" (
"round" real,
"circuit" text,
"location" text,
"date" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Audette Racing win?`:
```sql
|
SELECT "director_s" FROM "table1_25764073_3" WHERE "writer_s"='Peter Gawler'; |
## Task
Generate a SQL query to answer the following question:
`Name the directors for peter gawler`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25764073_3" (
"season_num" real,
"episode_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the directors for peter gawler`:
```sql
|
SELECT MIN("episode_num") FROM "table1_25764073_3" WHERE "writer_s"='Anne Brooksbank and Vicki Madden'; |
## Task
Generate a SQL query to answer the following question:
`Name the least episode number for anne brooksbank and vicki madden`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25764073_3" (
"season_num" real,
"episode_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least episode number for anne brooksbank and vicki madden`:
```sql
|
SELECT "title" FROM "table1_25764073_3" WHERE "season_num"=35; |
## Task
Generate a SQL query to answer the following question:
`Name the title for season number 35`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25764073_3" (
"season_num" real,
"episode_num" real,
"title" text,
"director_s" text,
"writer_s" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title for season number 35`:
```sql
|
SELECT "points_per_game" FROM "conference_player_of_the_month_selection" WHERE "rebounds_per_game"='15.0'; |
## Task
Generate a SQL query to answer the following question:
`What were the points per game in the selection where the rebounds per game were 15.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_player_of_the_month_selection" (
"selection" real,
"month" text,
"season" text,
"team_record" text,
"points_per_game" text,
"field_goal_percentage" text,
"rebounds_per_game" text,
"blocks_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the points per game in the selection where the rebounds per game were 15.0?`:
```sql
|
SELECT "blocks_per_game" FROM "conference_player_of_the_month_selection" WHERE "field_goal_percentage"='.594 (2nd)'; |
## Task
Generate a SQL query to answer the following question:
`What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "conference_player_of_the_month_selection" (
"selection" real,
"month" text,
"season" text,
"team_record" text,
"points_per_game" text,
"field_goal_percentage" text,
"rebounds_per_game" text,
"blocks_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the blocks per game in the selection where the field goal percentage was .594 (2nd)?`:
```sql
|
SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "company"='Company D'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for company d`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
"company" text,
"name" text,
"county" text,
"militia_regiment" text,
"commander" text,
"organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for company d`:
```sql
|
SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "organization_date"='Unknown'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for organization date being unknown`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
"company" text,
"name" text,
"county" text,
"militia_regiment" text,
"commander" text,
"organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for organization date being unknown`:
```sql
|
SELECT "name" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha'; |
## Task
Generate a SQL query to answer the following question:
`Name the name for desha`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
"company" text,
"name" text,
"county" text,
"militia_regiment" text,
"commander" text,
"organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name for desha`:
```sql
|
SELECT "company" FROM "formation_of_the_1st_arkansas_state_troo" WHERE "county"='Desha'; |
## Task
Generate a SQL query to answer the following question:
`Name the company for desha county`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "formation_of_the_1st_arkansas_state_troo" (
"company" text,
"name" text,
"county" text,
"militia_regiment" text,
"commander" text,
"organization_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the company for desha county`:
```sql
|
SELECT "writer_s" FROM "season_2_1956_57" WHERE "series_num"=56; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with series number 56?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1956_57" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with series number 56?`:
```sql
|
SELECT MAX("series_num") FROM "season_2_1956_57" WHERE "airdate"='February 16, 1957'; |
## Task
Generate a SQL query to answer the following question:
`What is largest series number for the episode that aired February 16, 1957?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1956_57" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is largest series number for the episode that aired February 16, 1957?`:
```sql
|
SELECT "director" FROM "season_2_1956_57" WHERE "airdate"='December 15, 1956'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episodes that aired December 15, 1956? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1956_57" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episodes that aired December 15, 1956? `:
```sql
|
SELECT "writer_s" FROM "season_2_1956_57" WHERE "airdate"='December 1, 1956'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that aired December 1, 1956? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2_1956_57" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that aired December 1, 1956? `:
```sql
|
SELECT "writer_s" FROM "season_14_1968_69" WHERE "airdate"='October 14, 1968'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer of the episode that originally aired on October 14, 1968?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_14_1968_69" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of the episode that originally aired on October 14, 1968?`:
```sql
|
SELECT MAX("season_num") FROM "season_15_1969_70" WHERE "airdate"='February 2, 1970'; |
## Task
Generate a SQL query to answer the following question:
`What is the season # for the episode with air date february 2, 1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_15_1969_70" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season # for the episode with air date february 2, 1970?`:
```sql
|
SELECT "writer_s" FROM "season_18_1972_73" WHERE "airdate"='September 11, 1972'; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer who wrote the episode that was aired on September 11, 1972?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_18_1972_73" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer who wrote the episode that was aired on September 11, 1972?`:
```sql
|
SELECT "director" FROM "season_20_1974_75" WHERE "series_num"=626; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 626 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_20_1974_75" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 626 in the series?`:
```sql
|
SELECT "writer_s" FROM "season_3_1957_58" WHERE "season_num"=24; |
## Task
Generate a SQL query to answer the following question:
`Who are all the writers of episodes in season 24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_1957_58" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all the writers of episodes in season 24?`:
```sql
|
SELECT "title" FROM "season_3_1957_58" WHERE "airdate"='May 10, 1958'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode that aired on May 10, 1958?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3_1957_58" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode that aired on May 10, 1958?`:
```sql
|
SELECT "writer_s" FROM "season_5_1959_60" WHERE "season_num"=15; |
## Task
Generate a SQL query to answer the following question:
`Who was the writer of episode 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_5_1959_60" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of episode 15?`:
```sql
|
SELECT "title" FROM "season_5_1959_60" WHERE "season_num"=33; |
## Task
Generate a SQL query to answer the following question:
`What is the title of #33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_5_1959_60" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of #33?`:
```sql
|
SELECT COUNT("director") FROM "season_5_1959_60" WHERE "series_num"=158; |
## Task
Generate a SQL query to answer the following question:
`How many directors worked on #158?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_5_1959_60" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors worked on #158?`:
```sql
|
SELECT COUNT("writer_s") FROM "season_4_1958_59" WHERE "season_num"=1; |
## Task
Generate a SQL query to answer the following question:
`How many writers were for season #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1958_59" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many writers were for season #1?`:
```sql
|
SELECT "director" FROM "season_4_1958_59" WHERE "airdate"='May 2, 1959'; |
## Task
Generate a SQL query to answer the following question:
`Who was the director for the episode on May 2, 1959?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_4_1958_59" (
"series_num" real,
"season_num" real,
"title" text,
"director" text,
"writer_s" text,
"airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director for the episode on May 2, 1959?`:
```sql
|
SELECT "no_in_series" FROM "table1_25810656_3" WHERE "production_code"=204; |
## Task
Generate a SQL query to answer the following question:
`Name the number in series for production code being 204`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25810656_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number in series for production code being 204`:
```sql
|
SELECT COUNT("title") FROM "table1_25810656_3" WHERE "no_in_series"=25; |
## Task
Generate a SQL query to answer the following question:
`Name the number of title for number in series being 25`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25810656_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of title for number in series being 25`:
```sql
|
SELECT MAX("stage") FROM "classification_leadership" WHERE "winner"='Mikhail Ignatiev'; |
## Task
Generate a SQL query to answer the following question:
`What was the latest stage won by Mikhail Ignatiev? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification_leadership" (
"stage" real,
"winner" text,
"general_classification" text,
"points_classification" text,
"mountains_classification" text,
"young_riders_classification" text,
"team_classification" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest stage won by Mikhail Ignatiev? `:
```sql
|
SELECT "summary_hearing" FROM "table1_25815180_1" WHERE "definition_example_or_notes"='Flying an aircraft so as to annoy any person'; |
## Task
Generate a SQL query to answer the following question:
`What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_25815180_1" (
"sec" real,
"offence" text,
"definition_example_or_notes" text,
"civilian" text,
"summary_hearing" text,
"max_sentence_at_court_martial" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the summmary hearing when the definiton is listed at flying an aircraft so as to annoy any person?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.