output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "title" FROM "table1_20967430_4" WHERE "original_air_date"='March 11, 1988'; |
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode that aired originally on March 11, 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_4" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the episode that aired originally on March 11, 1988?`:
```sql
|
SELECT "prod_code" FROM "table1_20967430_4" WHERE "written_by"='Jack Carrerrow'; |
## Task
Generate a SQL query to answer the following question:
`What is the production code of the episode written by Jack Carrerrow?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_4" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code of the episode written by Jack Carrerrow?`:
```sql
|
SELECT COUNT("ep") FROM "table1_20967430_4" WHERE "prod_code"='5M13'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes had a production code of 5m13?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_4" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had a production code of 5m13?`:
```sql
|
SELECT "title" FROM "table1_20967430_2" WHERE "original_air_date"='November 08, 1985'; |
## Task
Generate a SQL query to answer the following question:
`Name the title that aired for november 08, 1985`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_2" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the title that aired for november 08, 1985`:
```sql
|
SELECT "prod_code" FROM "table1_20967430_2" WHERE "original_air_date"='November 08, 1985'; |
## Task
Generate a SQL query to answer the following question:
`Name the production code for november 08, 1985`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_2" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code for november 08, 1985`:
```sql
|
SELECT "written_by" FROM "table1_20967430_2" WHERE "prod_code"='4G07'; |
## Task
Generate a SQL query to answer the following question:
`Name the written by for production code 4g07`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_2" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the written by for production code 4g07`:
```sql
|
SELECT MIN("ep") FROM "table1_20967430_2" WHERE "original_air_date"='November 29, 1985'; |
## Task
Generate a SQL query to answer the following question:
`Name the least episode for november 29, 1985`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_2" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least episode for november 29, 1985`:
```sql
|
SELECT "score_in_final" FROM "singles" WHERE "runner_up"='Tracy Austin'; |
## Task
Generate a SQL query to answer the following question:
`What was the final score when tracy austin was runner up?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles" (
"series_year" real,
"series_ending_tournament" text,
"location" text,
"surface" text,
"champion" text,
"runner_up" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score when tracy austin was runner up?`:
```sql
|
SELECT "written_by" FROM "table1_20967430_3" WHERE "title"='\"Jobless\"'; |
## Task
Generate a SQL query to answer the following question:
`When "jobless" is the title who are the writers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_3" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When "jobless" is the title who are the writers?`:
```sql
|
SELECT MAX("ep") FROM "table1_20967430_3" WHERE "prod_code"='5A06'; |
## Task
Generate a SQL query to answer the following question:
`When 5a06 is the production code what is the highest episode?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_3" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 5a06 is the production code what is the highest episode?`:
```sql
|
SELECT "written_by" FROM "table1_20967430_3" WHERE "season"=10; |
## Task
Generate a SQL query to answer the following question:
`When it is season 10 who are the writers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20967430_3" (
"ep" real,
"season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `When it is season 10 who are the writers?`:
```sql
|
SELECT "mens_singles" FROM "winners" WHERE "womens_singles"='Wang Yihan' AND "tour"='French Super Series'; |
## Task
Generate a SQL query to answer the following question:
`when womens singles is wang yihan and tour is french super series, what were the men's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `when womens singles is wang yihan and tour is french super series, what were the men's singles?`:
```sql
|
SELECT "tour" FROM "winners" WHERE "mixed_doubles"='Zheng Bo Ma Jin' AND "womens_singles"='Wang Yihan'; |
## Task
Generate a SQL query to answer the following question:
`when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners" (
"tour" text,
"mens_singles" text,
"womens_singles" text,
"mens_doubles" text,
"womens_doubles" text,
"mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `when mixed doubles is zheng bo ma jin and womens singles is wang yihan, what was the tour?`:
```sql
|
SELECT COUNT("title") FROM "season_3" WHERE "director"='Alex Chapple'; |
## Task
Generate a SQL query to answer the following question:
`How many titles were directed by Alex Chapple?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_num" real,
"episode" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text,
"u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many titles were directed by Alex Chapple?`:
```sql
|
SELECT "director" FROM "season_3" WHERE "title"='\"Adam''s Family\"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the "Adam's Family"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_num" real,
"episode" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text,
"u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the "Adam's Family"?`:
```sql
|
SELECT "u_s_airdate" FROM "season_3" WHERE "title"='\"Bear Breasts\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the us airdate for "Bear Breasts"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_num" real,
"episode" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text,
"u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the us airdate for "Bear Breasts"?`:
```sql
|
SELECT "u_s_airdate" FROM "season_3" WHERE "title"='\"Jenny from the Block\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the USA airdate for "Jenny From the Block"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_3" (
"episode_num" real,
"episode" real,
"title" text,
"director" text,
"writer" text,
"original_airdate" text,
"u_s_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the USA airdate for "Jenny From the Block"?`:
```sql
|
SELECT MAX("num") FROM "season_2" WHERE "air_date_netherlands_yyyy_mm_dd"='2009/12/29'; |
## Task
Generate a SQL query to answer the following question:
`Name the most number for air date 2009/12/29`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_2" (
"num" real,
"episode" text,
"air_date_canada_yyyy_mm_dd" text,
"viewers_canada" real,
"air_date_netherlands_yyyy_mm_dd" text,
"viewers_netherlands" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most number for air date 2009/12/29`:
```sql
|
SELECT "viewers_in_millions" FROM "table1_2101431_1" WHERE "run_time"='23:25'; |
## Task
Generate a SQL query to answer the following question:
`How many millions viewers watched the episode that ran 23:25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2101431_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions viewers watched the episode that ran 23:25?`:
```sql
|
SELECT "broadcast_date" FROM "table1_2101431_1" WHERE "archive"='16mm t/r' AND "run_time"='23:25'; |
## Task
Generate a SQL query to answer the following question:
`What is the broadcast date of the episode on 16mm t/r that ran 23:25?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2101431_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the broadcast date of the episode on 16mm t/r that ran 23:25?`:
```sql
|
SELECT "episode" FROM "table1_2101431_1" WHERE "viewers_in_millions"='7.2'; |
## Task
Generate a SQL query to answer the following question:
`Which episode was watched by 7.2 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2101431_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was watched by 7.2 million viewers?`:
```sql
|
SELECT "episode" FROM "table1_2101431_1" WHERE "run_time"='24:18'; |
## Task
Generate a SQL query to answer the following question:
`What episode had a run time of 24:18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2101431_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had a run time of 24:18?`:
```sql
|
SELECT MIN("valves") FROM "technical_specifications"; |
## Task
Generate a SQL query to answer the following question:
`What is the greatest number of valves?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"displacement" text,
"bore" text,
"stroke" text,
"cylinders" text,
"valves" real,
"power" text,
"torque" text,
"applications" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest number of valves?`:
```sql
|
SELECT "stroke" FROM "technical_specifications" WHERE "applications"='1999 W210 E-Class , 2000 W203 C-Class'; |
## Task
Generate a SQL query to answer the following question:
`For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"displacement" text,
"bore" text,
"stroke" text,
"cylinders" text,
"valves" real,
"power" text,
"torque" text,
"applications" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the 1999 w210 e-class , 2000 w203 c-class, what is the stroke?`:
```sql
|
SELECT "displacement" FROM "technical_specifications" WHERE "torque"='N·m (lb·ft) @1500 rpm'; |
## Task
Generate a SQL query to answer the following question:
`What is the displacement for torque of n·m (lb·ft) @1500 rpm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"displacement" text,
"bore" text,
"stroke" text,
"cylinders" text,
"valves" real,
"power" text,
"torque" text,
"applications" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the displacement for torque of n·m (lb·ft) @1500 rpm?`:
```sql
|
SELECT "power" FROM "technical_specifications" WHERE "torque"='N·m (lb·ft) @1600–2400 rpm' AND "applications"='2000 W90x Sprinter'; |
## Task
Generate a SQL query to answer the following question:
`If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"displacement" text,
"bore" text,
"stroke" text,
"cylinders" text,
"valves" real,
"power" text,
"torque" text,
"applications" text
);
### SQL
Given the database schema, here is the SQL query that answers `If torque is n·m (lb·ft) @1600–2400 rpm and applications is 2000 w90x sprinter, what is the power?`:
```sql
|
SELECT "torque" FROM "technical_specifications" WHERE "stroke"='88.4mm'; |
## Task
Generate a SQL query to answer the following question:
`List the torque possible when the stroke is 88.4mm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "technical_specifications" (
"displacement" text,
"bore" text,
"stroke" text,
"cylinders" text,
"valves" real,
"power" text,
"torque" text,
"applications" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the torque possible when the stroke is 88.4mm?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='7-1-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 7-1-0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"sun_devils_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 7-1-0`:
```sql
|
SELECT "episode" FROM "table1_2102782_1" WHERE "run_time"='25:05'; |
## Task
Generate a SQL query to answer the following question:
`Name the episode for run time 25:05`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102782_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode for run time 25:05`:
```sql
|
SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "run_time"='25:04'; |
## Task
Generate a SQL query to answer the following question:
`Name the broadcast date for run timke of 25:04`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102782_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the broadcast date for run timke of 25:04`:
```sql
|
SELECT "archive" FROM "table1_2102782_1" WHERE "run_time"='23:55'; |
## Task
Generate a SQL query to answer the following question:
`Name the archive for run time of 23:55`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102782_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the archive for run time of 23:55`:
```sql
|
SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "viewers_in_millions"='7.4'; |
## Task
Generate a SQL query to answer the following question:
`Name the broadcast date for 7.4 viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102782_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the broadcast date for 7.4 viewers`:
```sql
|
SELECT "broadcast_date" FROM "table1_2102782_1" WHERE "viewers_in_millions"='6.0'; |
## Task
Generate a SQL query to answer the following question:
`Name the broadcast date for 6.0 viewers`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102782_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the broadcast date for 6.0 viewers`:
```sql
|
SELECT MAX("episode_no") FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"'; |
## Task
Generate a SQL query to answer the following question:
`What was the episode number for "Going Bodmin"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_2" (
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the episode number for "Going Bodmin"?`:
```sql
|
SELECT "original_airdate" FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"'; |
## Task
Generate a SQL query to answer the following question:
`When did "Going Bodmin" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_2" (
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did "Going Bodmin" originally air?`:
```sql
|
SELECT COUNT("episode_no") FROM "table1_21025437_2" WHERE "written_by"='Kirstie Falkous & John Regier'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were written by Kirstie Falkous & John Regier?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_2" (
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were written by Kirstie Falkous & John Regier?`:
```sql
|
SELECT "episode_no" FROM "table1_21025437_2" WHERE "title"='\"Going Bodmin\"'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes were titled "Going Bodmin"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_2" (
"episode_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were titled "Going Bodmin"?`:
```sql
|
SELECT "episode" FROM "table1_2102714_1" WHERE "viewers_in_millions"='9.7'; |
## Task
Generate a SQL query to answer the following question:
`What episode had 9.7 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102714_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had 9.7 million viewers?`:
```sql
|
SELECT "broadcast_date" FROM "table1_2102714_1" WHERE "run_time"='24:40'; |
## Task
Generate a SQL query to answer the following question:
`What date was an episode broadcasted on that had a run time of 24:40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102714_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was an episode broadcasted on that had a run time of 24:40?`:
```sql
|
SELECT "episode" FROM "table1_2102714_1" WHERE "run_time"='24:53'; |
## Task
Generate a SQL query to answer the following question:
`What episode had a run time of 24:53?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102714_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had a run time of 24:53?`:
```sql
|
SELECT "archive" FROM "table1_2102714_1" WHERE "run_time"='25:24'; |
## Task
Generate a SQL query to answer the following question:
`What was the archive for the episode with a run time of 25:24?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102714_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the archive for the episode with a run time of 25:24?`:
```sql
|
SELECT "archive" FROM "table1_2102714_1" WHERE "run_time"='24:05'; |
## Task
Generate a SQL query to answer the following question:
`What is he archive for the episode with a run time of 24:05?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102714_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is he archive for the episode with a run time of 24:05?`:
```sql
|
SELECT "directed_by" FROM "table1_21025437_6" WHERE "title"='\"The Departed\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode "the departed"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_6" (
"episode_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode "the departed"?`:
```sql
|
SELECT "directed_by" FROM "table1_21025437_6" WHERE "episode_no"=23; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 23?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21025437_6" (
"episode_no" real,
"series_no" real,
"title" text,
"directed_by" text,
"written_by" text,
"viewers_millions" text,
"original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 23?`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "record"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the numer of the game when the record was 4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"sun_devils_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the numer of the game when the record was 4-0?`:
```sql
|
SELECT COUNT("opponent") FROM "schedule" WHERE "record"='7-0'; |
## Task
Generate a SQL query to answer the following question:
`How many opponents led to an exactly 7-0 record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"sun_devils_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents led to an exactly 7-0 record?`:
```sql
|
SELECT "game" FROM "schedule" WHERE "opponent"='Kansas State'; |
## Task
Generate a SQL query to answer the following question:
`What number was the game against Kansas State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"sun_devils_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number was the game against Kansas State?`:
```sql
|
SELECT COUNT("episode") FROM "table1_2102898_1" WHERE "run_time"='24:33'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes ran 24:33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102898_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes ran 24:33?`:
```sql
|
SELECT "viewers_in_millions" FROM "table1_2102898_1" WHERE "broadcast_date"='25April1970'; |
## Task
Generate a SQL query to answer the following question:
`On broadcast date is 25april1970, how many people tuned in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102898_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `On broadcast date is 25april1970, how many people tuned in?`:
```sql
|
SELECT "viewers_in_millions" FROM "table1_2102898_1" WHERE "broadcast_date"='28March1970'; |
## Task
Generate a SQL query to answer the following question:
`On broadcast date is 28march1970, how many people tuned in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102898_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `On broadcast date is 28march1970, how many people tuned in?`:
```sql
|
SELECT COUNT("viewers_in_millions") FROM "table1_2102898_1" WHERE "broadcast_date"='21March1970'; |
## Task
Generate a SQL query to answer the following question:
`On broadcast date is 21march1970, how many people tuned in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102898_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `On broadcast date is 21march1970, how many people tuned in?`:
```sql
|
SELECT "archive" FROM "table1_2102898_1" WHERE "broadcast_date"='18April1970'; |
## Task
Generate a SQL query to answer the following question:
`What is the archive of the show that aired on 18april1970?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2102898_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the archive of the show that aired on 18april1970?`:
```sql
|
SELECT MIN("golden_bears_points") FROM "schedule" WHERE "opponents"=15; |
## Task
Generate a SQL query to answer the following question:
`What was the least amount of points scored by the golden bears when the opponent scored 15 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"golden_bears_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the least amount of points scored by the golden bears when the opponent scored 15 points?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of opponents played against the bears in game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"golden_bears_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of opponents played against the bears in game 4?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "golden_bears_points"=3; |
## Task
Generate a SQL query to answer the following question:
`What opponent was playing against the Golden Bears when they scored 3 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"golden_bears_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent was playing against the Golden Bears when they scored 3 points?`:
```sql
|
SELECT "medal_of_honor" FROM "table1_2104176_1" WHERE "air_force_cross"='Army Distinguished Service Medal'; |
## Task
Generate a SQL query to answer the following question:
`What is the Medal of Honor with Army Distinguished Service Medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2104176_1" (
"medal_of_honor" text,
"coast_guard_cross" text,
"navy_cross" text,
"distinguished_service_cross" text,
"air_force_cross" text,
"homeland_security_distinguished_service_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Medal of Honor with Army Distinguished Service Medal?`:
```sql
|
SELECT "homeland_security_distinguished_service_medal" FROM "table1_2104176_1" WHERE "medal_of_honor"='Coast Guard Medal'; |
## Task
Generate a SQL query to answer the following question:
`WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2104176_1" (
"medal_of_honor" text,
"coast_guard_cross" text,
"navy_cross" text,
"distinguished_service_cross" text,
"air_force_cross" text,
"homeland_security_distinguished_service_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHat is the Homeland security distinguished service medal when the medal of honor is Coast guard Medal?`:
```sql
|
SELECT "distinguished_service_cross" FROM "table1_2104176_1" WHERE "navy_cross"='Coast Guard Commendation Medal'; |
## Task
Generate a SQL query to answer the following question:
`What is the distinguished service cross when the navy cross is Coast Guard commendation medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2104176_1" (
"medal_of_honor" text,
"coast_guard_cross" text,
"navy_cross" text,
"distinguished_service_cross" text,
"air_force_cross" text,
"homeland_security_distinguished_service_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the distinguished service cross when the navy cross is Coast Guard commendation medal?`:
```sql
|
SELECT "air_force_cross" FROM "table1_2104176_1" WHERE "homeland_security_distinguished_service_medal"='Aerial Achievement Medal'; |
## Task
Generate a SQL query to answer the following question:
`What is the air force cross when you recieve the Aerial achievement medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2104176_1" (
"medal_of_honor" text,
"coast_guard_cross" text,
"navy_cross" text,
"distinguished_service_cross" text,
"air_force_cross" text,
"homeland_security_distinguished_service_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air force cross when you recieve the Aerial achievement medal?`:
```sql
|
SELECT "coast_guard_cross" FROM "table1_2104176_1" WHERE "distinguished_service_cross"='Navy Distinguished Service Medal'; |
## Task
Generate a SQL query to answer the following question:
`What is the coast guard cross when you recieve the navy distinguished service medal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2104176_1" (
"medal_of_honor" text,
"coast_guard_cross" text,
"navy_cross" text,
"distinguished_service_cross" text,
"air_force_cross" text,
"homeland_security_distinguished_service_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the coast guard cross when you recieve the navy distinguished service medal?`:
```sql
|
SELECT COUNT("walker_pct") FROM "county_results" WHERE "county"='Kenosha'; |
## Task
Generate a SQL query to answer the following question:
`How many figures are given for Walker's percentage in Kenosha county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "county_results" (
"county" text,
"won_by" text,
"walker_pct" real,
"walker_votes" real,
"barrett_pct" real,
"barrett_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures are given for Walker's percentage in Kenosha county?`:
```sql
|
SELECT "walker_pct" FROM "county_results" WHERE "county"='Calumet'; |
## Task
Generate a SQL query to answer the following question:
`What percentage did Walker win in Calumet county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "county_results" (
"county" text,
"won_by" text,
"walker_pct" real,
"walker_votes" real,
"barrett_pct" real,
"barrett_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What percentage did Walker win in Calumet county?`:
```sql
|
SELECT COUNT("won_by") FROM "county_results" WHERE "county"='Milwaukee'; |
## Task
Generate a SQL query to answer the following question:
`How many total figures are given for Milwaukee county?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "county_results" (
"county" text,
"won_by" text,
"walker_pct" real,
"walker_votes" real,
"barrett_pct" real,
"barrett_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total figures are given for Milwaukee county?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "record"='3-2-1'; |
## Task
Generate a SQL query to answer the following question:
`What did they do in the game when their record was 3-2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did they do in the game when their record was 3-2-1?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='Villanova'; |
## Task
Generate a SQL query to answer the following question:
`What did they do against Villanova?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did they do against Villanova?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='Memphis'; |
## Task
Generate a SQL query to answer the following question:
`What did they do against Memphis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did they do against Memphis?`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "record"='0-2-0'; |
## Task
Generate a SQL query to answer the following question:
`How many games did they play when their record 0-2-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play when their record 0-2-0?`:
```sql
|
SELECT "au_air_date" FROM "table1_21055055_2" WHERE "viewers_m"='2.267'; |
## Task
Generate a SQL query to answer the following question:
`When did the episode seen by is 2.267 million people get aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_21055055_2" (
"num" real,
"episode" text,
"au_air_date" text,
"timeslot" text,
"viewers_m" text,
"nightly_rank_num" real,
"weekly_rank_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode seen by is 2.267 million people get aired?`:
```sql
|
SELECT "episode" FROM "table1_2105721_1" WHERE "run_time"='24:44'; |
## Task
Generate a SQL query to answer the following question:
`Name the episode for run time in 24:44`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2105721_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the episode for run time in 24:44`:
```sql
|
SELECT COUNT("episode") FROM "table1_2105721_1" WHERE "run_time"='24:11'; |
## Task
Generate a SQL query to answer the following question:
`Name the total episode for runtime of 24:11`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2105721_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total episode for runtime of 24:11`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='3-1, #16'; |
## Task
Generate a SQL query to answer the following question:
`Who did the team play against when a record of 3-1, #16 was achieved?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the team play against when a record of 3-1, #16 was achieved?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponent"='Mississippi State'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game against Mississippi State?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game against Mississippi State?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "result"='Loss'; |
## Task
Generate a SQL query to answer the following question:
`Who did the team play against in the game that resulted with a loss?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the team play against in the game that resulted with a loss?`:
```sql
|
SELECT "game" FROM "schedule" WHERE "opponent"='Santa Clara'; |
## Task
Generate a SQL query to answer the following question:
`What game did the Bruins play Santa Clara?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game did the Bruins play Santa Clara?`:
```sql
|
SELECT "opponents" FROM "schedule" WHERE "opponent"='Santa Clara'; |
## Task
Generate a SQL query to answer the following question:
`Santa Clara was played how many times?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Santa Clara was played how many times?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "opponents"=26; |
## Task
Generate a SQL query to answer the following question:
`The game the Bruins scored 26 ,what was the result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `The game the Bruins scored 26 ,what was the result?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "game"=9; |
## Task
Generate a SQL query to answer the following question:
`What was the record for game 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for game 9?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "game"=4; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents of the Wildcats in game 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents of the Wildcats in game 4?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "game"=8; |
## Task
Generate a SQL query to answer the following question:
`Who were the the opponents of the Wildcats for game 8 of the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the the opponents of the Wildcats for game 8 of the season?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='Florida'; |
## Task
Generate a SQL query to answer the following question:
`What was the record of the Wildcats after playing Florida?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the Wildcats after playing Florida?`:
```sql
|
SELECT COUNT("wildcats_points") FROM "schedule" WHERE "game"=11; |
## Task
Generate a SQL query to answer the following question:
`How many times did the Wildcats play a game 11 regardless of points scored?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"wildcats_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the Wildcats play a game 11 regardless of points scored?`:
```sql
|
SELECT COUNT("black_knights_points") FROM "schedule" WHERE "game"=3; |
## Task
Generate a SQL query to answer the following question:
`Name the number of black knights points for 3 game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of black knights points for 3 game`:
```sql
|
SELECT "opponents" FROM "schedule" WHERE "game"=5; |
## Task
Generate a SQL query to answer the following question:
`Name the opponents for game 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for game 5`:
```sql
|
SELECT "result" FROM "schedule" WHERE "black_knights_points"=19; |
## Task
Generate a SQL query to answer the following question:
`Name the result for 19 black knights points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for 19 black knights points`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "black_knights_points"=27; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for black knights points 27`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for black knights points 27`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game"=8; |
## Task
Generate a SQL query to answer the following question:
`Name the date for game 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for game 8`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "record"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of date for 1-0 record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of date for 1-0 record`:
```sql
|
SELECT "game" FROM "schedule" WHERE "record"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`Name the game for record 1-0`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game for record 1-0`:
```sql
|
SELECT MAX("game") FROM "schedule"; |
## Task
Generate a SQL query to answer the following question:
`Name the most game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most game`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "record"='3-4-0'; |
## Task
Generate a SQL query to answer the following question:
`How many games have a record of 3-4-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a record of 3-4-0?`:
```sql
|
SELECT COUNT("date") FROM "schedule" WHERE "opponent"='Boston College'; |
## Task
Generate a SQL query to answer the following question:
`How many dates have boston college as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates have boston college as the opponent?`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "opponent"='Air Force'; |
## Task
Generate a SQL query to answer the following question:
`How many games have Air Force as the opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have Air Force as the opponent?`:
```sql
|
SELECT COUNT("record") FROM "schedule" WHERE "black_knights_points"=17; |
## Task
Generate a SQL query to answer the following question:
`How many records have black knights points as 17?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many records have black knights points as 17?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='6-2'; |
## Task
Generate a SQL query to answer the following question:
`Which opponent has a record of 6-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"orangemen_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a record of 6-2?`:
```sql
|
SELECT COUNT("result") FROM "schedule" WHERE "game"=5; |
## Task
Generate a SQL query to answer the following question:
`How many results have a game of 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"orangemen_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results have a game of 5?`:
```sql
|
SELECT "run_time" FROM "table1_2108684_1" WHERE "viewers_in_millions"='7.9'; |
## Task
Generate a SQL query to answer the following question:
`What is the run time for the episode with 7.9 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2108684_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the run time for the episode with 7.9 million viewers?`:
```sql
|
SELECT "episode" FROM "table1_2108684_1" WHERE "run_time"='23:38'; |
## Task
Generate a SQL query to answer the following question:
`What episode had a run time of 23:38?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2108684_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had a run time of 23:38?`:
```sql
|
SELECT "viewers_in_millions" FROM "table1_2108684_1" WHERE "run_time"='25:22'; |
## Task
Generate a SQL query to answer the following question:
`How many million viewers watched the episode with a run time of 25:22?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_2108684_1" (
"episode" text,
"broadcast_date" text,
"run_time" text,
"viewers_in_millions" text,
"archive" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million viewers watched the episode with a run time of 25:22?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "result"='Loss' AND "opponent"='Duke'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for result loss for duke`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for result loss for duke`:
```sql
|
SELECT "opponents" FROM "schedule" WHERE "record"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponents for record of 2-1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"black_knights_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for record of 2-1`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.