output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("written_by") FROM "table1_20704243_3" WHERE "directed_by"='Peter Winther'; |
## Task
Generate a SQL query to answer the following question:
`How many were written by Peter Winther?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were written by Peter Winther?`:
```sql
|
SELECT COUNT("directed_by") FROM "table1_20704243_3" WHERE "season_num"=2; |
## Task
Generate a SQL query to answer the following question:
`How many directors were in Season 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_3" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many directors were in Season 2?`:
```sql
|
SELECT "directed_by" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director of the episode titled "The Reunion Job"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the episode titled "The Reunion Job"?`:
```sql
|
SELECT "original_air_date" FROM "table1_20704243_4" WHERE "written_by"='Albert Kim'; |
## Task
Generate a SQL query to answer the following question:
`When was the episode written by Albert Kim aired for the first time?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode written by Albert Kim aired for the first time?`:
```sql
|
SELECT "original_air_date" FROM "table1_20704243_4" WHERE "title"='\"The Boost Job\"'; |
## Task
Generate a SQL query to answer the following question:
`When was the episode titled "The Boost Job" originally aired?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode titled "The Boost Job" originally aired?`:
```sql
|
SELECT "u_s_viewers_in_millions" FROM "table1_20704243_4" WHERE "title"='\"The Reunion Job\"'; |
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US saw the episode titled "The Reunion Job"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "The Reunion Job"?`:
```sql
|
SELECT "written_by" FROM "table1_20704243_4" WHERE "title"='\"The Morning After Job\"'; |
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "The Morning After Job"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_4" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "The Morning After Job"?`:
```sql
|
SELECT "series_num" FROM "table1_20704243_5" WHERE "written_by"='M. Scott Veach & Rebecca Kirsch'; |
## Task
Generate a SQL query to answer the following question:
`Name the series number for m. scott veach & rebecca kirsch`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series number for m. scott veach & rebecca kirsch`:
```sql
|
SELECT "u_s_viewers_in_millions" FROM "table1_20704243_5" WHERE "series_num"=50; |
## Task
Generate a SQL query to answer the following question:
`Name the number of viewers for series number 50`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of viewers for series number 50`:
```sql
|
SELECT "directed_by" FROM "table1_20704243_5" WHERE "season_num"=1; |
## Task
Generate a SQL query to answer the following question:
`Name who directed season 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20704243_5" (
"series_num" real,
"season_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who directed season 1`:
```sql
|
SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "beam_height_mm"=120; |
## Task
Generate a SQL query to answer the following question:
`What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=`:
```sql
|
SELECT "cross_section_area_cm_2" FROM "indian_standard_beams_ismb" WHERE "moment_of_inertia_in_torsion_j_cm_4"='2.54'; |
## Task
Generate a SQL query to answer the following question:
`What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?`:
```sql
|
SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='6.0'; |
## Task
Generate a SQL query to answer the following question:
`What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg`:
```sql
|
SELECT COUNT("moment_of_inertia_in_torsion_j_cm_4") FROM "indian_standard_beams_ismb" WHERE "web_thickness_mm"='4.7'; |
## Task
Generate a SQL query to answer the following question:
`What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?`:
```sql
|
SELECT "flange_thickness_mm" FROM "indian_standard_beams_ismb" WHERE "weight_kg_m"='10.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the flange thickness (mm) for the weight (kg/m) 10.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange thickness (mm) for the weight (kg/m) 10.4?`:
```sql
|
SELECT COUNT("flange_width_mm") FROM "indian_standard_beams_ismb" WHERE "cross_section_area_cm_2"='16.4'; |
## Task
Generate a SQL query to answer the following question:
`What is the flange width (mm) for cross section area (cm 2) 16.4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "indian_standard_beams_ismb" (
"type" text,
"beam_height_mm" real,
"flange_width_mm" real,
"web_thickness_mm" text,
"flange_thickness_mm" text,
"weight_kg_m" text,
"cross_section_area_cm_2" text,
"moment_of_inertia_in_torsion_j_cm_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the flange width (mm) for cross section area (cm 2) 16.4?`:
```sql
|
SELECT "lyon_32" FROM "players" WHERE "seed"=5; |
## Task
Generate a SQL query to answer the following question:
`In what round was lyon (32) a 5 seed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what round was lyon (32) a 5 seed?`:
```sql
|
SELECT COUNT("marseille_32_draw") FROM "players" WHERE "seed"=2; |
## Task
Generate a SQL query to answer the following question:
`How many items were recorded marseille (32 draw) was a 2 seed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items were recorded marseille (32 draw) was a 2 seed?`:
```sql
|
SELECT MAX("seed") FROM "players" WHERE "lyon_32"='DNQ'; |
## Task
Generate a SQL query to answer the following question:
`What is the seed for lyon (32) was DNQ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the seed for lyon (32) was DNQ?`:
```sql
|
SELECT "paris_48_byes" FROM "players" WHERE "seed"=3; |
## Task
Generate a SQL query to answer the following question:
`What was the result for Paris(48-byes) for 3 seed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "players" (
"seed" real,
"player" text,
"marseille_32_draw" text,
"metz_32" text,
"lyon_32" text,
"paris_48_byes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Paris(48-byes) for 3 seed?`:
```sql
|
SELECT "mc_cainpct" FROM "by" WHERE "obamapct"='64.39%'; |
## Task
Generate a SQL query to answer the following question:
`What was McCain's percentage when Obama had 64.39% of the vote?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was McCain's percentage when Obama had 64.39% of the vote?`:
```sql
|
SELECT MIN("mc_cainnum") FROM "by" WHERE "obamapct"='48.35%'; |
## Task
Generate a SQL query to answer the following question:
`What was McCain's vote when Obama had 48.35%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was McCain's vote when Obama had 48.35%`:
```sql
|
SELECT MIN("obamanum") FROM "by" WHERE "obamapct"='32.12%'; |
## Task
Generate a SQL query to answer the following question:
`How many votes did Obama have at 32.12%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes did Obama have at 32.12%`:
```sql
|
SELECT "parish" FROM "by" WHERE "mc_cainpct"='45.37%'; |
## Task
Generate a SQL query to answer the following question:
`What parish did McCain have 45.37% of the votes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What parish did McCain have 45.37% of the votes?`:
```sql
|
SELECT MAX("mc_cainnum") FROM "by" WHERE "parish"='Webster'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of votes McCain had in Webster?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by" (
"parish" text,
"obamapct" text,
"obamanum" real,
"mc_cainpct" text,
"mc_cainnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of votes McCain had in Webster?`:
```sql
|
SELECT "originalairdate" FROM "table1_20726262_2" WHERE "production_code"='1WAB06'; |
## Task
Generate a SQL query to answer the following question:
`What was the original air date for the episode with production code 1wab06?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for the episode with production code 1wab06?`:
```sql
|
SELECT "title" FROM "table1_20726262_2" WHERE "directedby"='Paris Barclay'; |
## Task
Generate a SQL query to answer the following question:
`What title episode did Paris Barclay direct?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title episode did Paris Barclay direct?`:
```sql
|
SELECT "production_code" FROM "table1_20726262_2" WHERE "no_in_series"=1; |
## Task
Generate a SQL query to answer the following question:
`What was the production code for episode #1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for episode #1?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_20726262_2" WHERE "writtenby"='Kurt Sutter & Jack LoGiudice'; |
## Task
Generate a SQL query to answer the following question:
`What number episode was written by kurt sutter & jack logiudice?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_2" (
"no_in_series" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number episode was written by kurt sutter & jack logiudice?`:
```sql
|
SELECT "production_code" FROM "table1_20726262_3" WHERE "u_s_viewers_million"='3.38'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code for the episode with 3.38 million viewers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code for the episode with 3.38 million viewers?`:
```sql
|
SELECT "writtenby" FROM "table1_20726262_3" WHERE "title"='\"Balm\"'; |
## Task
Generate a SQL query to answer the following question:
`Who were the writers for "Balm"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the writers for "Balm"?`:
```sql
|
SELECT "no_in_season" FROM "table1_20726262_3" WHERE "production_code"='2WAB12'; |
## Task
Generate a SQL query to answer the following question:
`What season number did production code 2wab12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season number did production code 2wab12?`:
```sql
|
SELECT COUNT("no_in_season") FROM "table1_20726262_3" WHERE "writtenby"='Brett Conrad & Liz Sagal'; |
## Task
Generate a SQL query to answer the following question:
`How many numbers in the season were written by Brett Conrad & Liz Sagal?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers in the season were written by Brett Conrad & Liz Sagal?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_20726262_4" WHERE "production_code"='3WAB07'; |
## Task
Generate a SQL query to answer the following question:
`what i the maximum number in the series where the production code is 3wab07?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what i the maximum number in the series where the production code is 3wab07?`:
```sql
|
SELECT MAX("no_in_season") FROM "table1_20726262_4" WHERE "u_s_viewers_million"='2.59'; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum number in the season wher the us viewers is 2.59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum number in the season wher the us viewers is 2.59?`:
```sql
|
SELECT "writtenby" FROM "table1_20726262_4" WHERE "production_code"='3WAB03'; |
## Task
Generate a SQL query to answer the following question:
`what is the written by and production code is 3wab03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20726262_4" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directedby" text,
"writtenby" text,
"originalairdate" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the written by and production code is 3wab03?`:
```sql
|
SELECT "seats_won" FROM "table1_20728138_1" WHERE "seats_contested"=48; |
## Task
Generate a SQL query to answer the following question:
`How many seats were won, when the seats contested was 48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were won, when the seats contested was 48?`:
```sql
|
SELECT "seats_contested" FROM "table1_20728138_1" WHERE "party"='Independents'; |
## Task
Generate a SQL query to answer the following question:
`How many seats are contested for independents?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats are contested for independents?`:
```sql
|
SELECT "pct_in_seats_contested" FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party'; |
## Task
Generate a SQL query to answer the following question:
`What is the percentage seats contested for the revolutionary socialist party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage seats contested for the revolutionary socialist party?`:
```sql
|
SELECT MIN("2003_seats") FROM "table1_20728138_1" WHERE "pct_in_seats_contested"='38.23%'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2003 seat number, when seats contested was at 38.23%`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2003 seat number, when seats contested was at 38.23%`:
```sql
|
SELECT COUNT("seats_forfeited") FROM "table1_20728138_1" WHERE "party"='Revolutionary Socialist Party'; |
## Task
Generate a SQL query to answer the following question:
`How many seats were forfeited in the revolutionary socialist party?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20728138_1" (
"party" text,
"seats_contested" real,
"seats_won" real,
"no_of_votes" real,
"pct_of_votes" text,
"pct_in_seats_contested" text,
"seats_forfeited" real,
"2003_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were forfeited in the revolutionary socialist party?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "attendance"=16642; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the attendance was exactly 16642?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the attendance was exactly 16642?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "num"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the score for game #7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for game #7?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "date"='February 28, 1991'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on February 28, 1991`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on February 28, 1991`:
```sql
|
SELECT "date" FROM "schedule" WHERE "record"='1-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the date when the record was 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,
"tar_heels_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the record was 1-0?`:
```sql
|
SELECT COUNT("tar_heels_points") FROM "schedule" WHERE "result"='Loss'; |
## Task
Generate a SQL query to answer the following question:
`How many results finished in 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,
"tar_heels_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many results finished in a loss?`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "opponent"='Furman'; |
## Task
Generate a SQL query to answer the following question:
`How many games were against Furman?`
### 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,
"tar_heels_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were against Furman?`:
```sql
|
SELECT COUNT("opponents") FROM "schedule" WHERE "opponent"='Duke'; |
## Task
Generate a SQL query to answer the following question:
`How many times were Duke the opponents?`
### 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,
"tar_heels_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were Duke the opponents?`:
```sql
|
SELECT MAX("opponents") FROM "schedule" WHERE "record"='4-0'; |
## Task
Generate a SQL query to answer the following question:
`How many losses were there 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,
"tar_heels_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses were there when the record was 4-0?`:
```sql
|
SELECT "at_vs" FROM "game_log" WHERE "num"='7'; |
## Task
Generate a SQL query to answer the following question:
`What was the game #7, at or versus (home or at)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game #7, at or versus (home or at)?`:
```sql
|
SELECT "opponent" FROM "game_log" WHERE "num"='7'; |
## Task
Generate a SQL query to answer the following question:
`Who did they play against in game 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did they play against in game 7?`:
```sql
|
SELECT "num" FROM "game_log" WHERE "attendance"=2813; |
## Task
Generate a SQL query to answer the following question:
`What game number had an attendance of 2813?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" text,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game number had an attendance of 2813?`:
```sql
|
SELECT "date" FROM "table1_20746062_1" WHERE "game"=9; |
## Task
Generate a SQL query to answer the following question:
`What day did the play game number 9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20746062_1" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"thundering_herd_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did the play game number 9?`:
```sql
|
SELECT "result" FROM "table1_20746062_1" WHERE "record"='2-1'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the game when they were 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20746062_1" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"thundering_herd_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 when they were 2-1?`:
```sql
|
SELECT "record" FROM "schedule" WHERE "bruins_points"=41; |
## Task
Generate a SQL query to answer the following question:
`What was the record when the Bruins had 41 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,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record when the Bruins had 41 points?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "game"=9; |
## Task
Generate a SQL query to answer the following question:
`What was the date 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 date for game 9?`:
```sql
|
SELECT MAX("game") FROM "schedule" WHERE "bruins_points"=56; |
## Task
Generate a SQL query to answer the following question:
`What game did the Bruins have 56 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,
"bruins_points" real,
"opponents" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game did the Bruins have 56 points?`:
```sql
|
SELECT "played" FROM "table1_20760802_1" WHERE "lost"='4' AND "drawn"='1'; |
## Task
Generate a SQL query to answer the following question:
`What is the total of played where lost equals 4 and drawn equals 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of played where lost equals 4 and drawn equals 1?`:
```sql
|
SELECT "drawn" FROM "table1_20760802_1" WHERE "club"='New Ross'; |
## Task
Generate a SQL query to answer the following question:
`How many drawn are there where the Club is new ross?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many drawn are there where the Club is new ross?`:
```sql
|
SELECT "drawn" FROM "table1_20760802_1" WHERE "points_against"='129'; |
## Task
Generate a SQL query to answer the following question:
`How may drawn equal points against at 129?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How may drawn equal points against at 129?`:
```sql
|
SELECT "points_difference" FROM "table1_20760802_1" WHERE "points_for"='134'; |
## Task
Generate a SQL query to answer the following question:
`How many points differ from 134?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points differ from 134?`:
```sql
|
SELECT "points_difference" FROM "table1_20760802_1" WHERE "lost"='10'; |
## Task
Generate a SQL query to answer the following question:
`How many of the points difference lost equal 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many of the points difference lost equal 10?`:
```sql
|
SELECT "played" FROM "table1_20760802_1" WHERE "won"='0'; |
## Task
Generate a SQL query to answer the following question:
`How many teams that played won 0 games?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20760802_1" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"points_difference" text,
"bonus_points" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams that played won 0 games?`:
```sql
|
SELECT "location_s" FROM "institutions" WHERE "control"='Public' AND "type"='Master''s university'; |
## Task
Generate a SQL query to answer the following question:
`What are the public schools with a master's university?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the public schools with a master's university?`:
```sql
|
SELECT MIN("enrollment_2009") FROM "institutions" WHERE "location_s"='Plainfield'; |
## Task
Generate a SQL query to answer the following question:
`What is the minimum enrollment for Plainfield?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum enrollment for Plainfield?`:
```sql
|
SELECT "type" FROM "institutions" WHERE "enrollment_2009"=224; |
## Task
Generate a SQL query to answer the following question:
`What type of school had an enrollment in 2009 of 224?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What type of school had an enrollment in 2009 of 224?`:
```sql
|
SELECT MAX("founded") FROM "institutions" WHERE "school"='Southern Vermont College'; |
## Task
Generate a SQL query to answer the following question:
`When was Southern Vermont College founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Southern Vermont College founded?`:
```sql
|
SELECT "control" FROM "institutions" WHERE "type"='Art school'; |
## Task
Generate a SQL query to answer the following question:
`Is art school public or private?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `Is art school public or private?`:
```sql
|
SELECT "school" FROM "institutions" WHERE "founded"=1791; |
## Task
Generate a SQL query to answer the following question:
`What school was founded in 1791?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_2009" real,
"founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What school was founded in 1791?`:
```sql
|
SELECT COUNT("enrollment_spring_2012") FROM "active_institutions" WHERE "school"='Sioux Falls Seminary'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of spring enrollment for sioux falls seminary`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of spring enrollment for sioux falls seminary`:
```sql
|
SELECT "accreditation" FROM "active_institutions" WHERE "school"='Southeast Technical Institute'; |
## Task
Generate a SQL query to answer the following question:
`Name the accrediatation for southeast technical institute`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the accrediatation for southeast technical institute`:
```sql
|
SELECT COUNT("founded") FROM "active_institutions" WHERE "location_s"='Yankton'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of founded for yankton`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "active_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"enrollment_spring_2012" real,
"founded" real,
"accreditation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of founded for yankton`:
```sql
|
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='otter'; |
## Task
Generate a SQL query to answer the following question:
`What is the Italian word for the English word "otter"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Italian word for the English word "otter"?`:
```sql
|
SELECT COUNT("french") FROM "central_and_southern_calabrian" WHERE "central_southern_calabrian"='zinnapòtamu'; |
## Task
Generate a SQL query to answer the following question:
`How many French words does zinnapòtamu in Central-Southern Calabrian translate to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many French words does zinnapòtamu in Central-Southern Calabrian translate to?`:
```sql
|
SELECT "french" FROM "central_and_southern_calabrian" WHERE "english"='orange'; |
## Task
Generate a SQL query to answer the following question:
`What is the French translation for the English word "orange"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the French translation for the English word "orange"?`:
```sql
|
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='orange'; |
## Task
Generate a SQL query to answer the following question:
`What is the Italian word for "orange" in English?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Italian word for "orange" in English?`:
```sql
|
SELECT COUNT("phonetic_greek") FROM "central_and_southern_calabrian" WHERE "french"='grenouille'; |
## Task
Generate a SQL query to answer the following question:
`How many Phonetic Greek words translate to grenouille in French?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Phonetic Greek words translate to grenouille in French?`:
```sql
|
SELECT "italian" FROM "central_and_southern_calabrian" WHERE "english"='frog'; |
## Task
Generate a SQL query to answer the following question:
`What does the word "frog"in English translate to in Italian?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "central_and_southern_calabrian" (
"central_southern_calabrian" text,
"phonetic_greek" text,
"italian" text,
"french" text,
"english" text
);
### SQL
Given the database schema, here is the SQL query that answers `What does the word "frog"in English translate to in Italian?`:
```sql
|
SELECT "enrollment" FROM "primarily_religious_institutions" WHERE "location_s"='Alexandria'; |
## Task
Generate a SQL query to answer the following question:
`Where are the Alexandria enrollment locations?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where are the Alexandria enrollment locations?`:
```sql
|
SELECT "control" FROM "primarily_religious_institutions" WHERE "founded"='1991'; |
## Task
Generate a SQL query to answer the following question:
`What is the control type which was founded in 1991?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the control type which was founded in 1991?`:
```sql
|
SELECT "control" FROM "primarily_religious_institutions" WHERE "founded"='1818'; |
## Task
Generate a SQL query to answer the following question:
`What is the control type which was founded in 1818?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the control type which was founded in 1818?`:
```sql
|
SELECT "founded" FROM "primarily_religious_institutions" WHERE "school"='Hartland College'; |
## Task
Generate a SQL query to answer the following question:
`What year was Hartland College founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Hartland College founded?`:
```sql
|
SELECT "type" FROM "primarily_religious_institutions" WHERE "school"='Cordoba University'; |
## Task
Generate a SQL query to answer the following question:
`What type of school is Cordoba University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of school is Cordoba University?`:
```sql
|
SELECT "school" FROM "primarily_religious_institutions" WHERE "location_s"='Richmond'; |
## Task
Generate a SQL query to answer the following question:
`What school is in Richmond?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "primarily_religious_institutions" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" text,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school is in Richmond?`:
```sql
|
SELECT "accreditation" FROM "public_and_established_private_instituti" WHERE "school"='Hollins University'; |
## Task
Generate a SQL query to answer the following question:
`What accreditation does Hollins University have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What accreditation does Hollins University have?`:
```sql
|
SELECT MAX("founded") FROM "public_and_established_private_instituti" WHERE "enrollment"='696'; |
## Task
Generate a SQL query to answer the following question:
`What was the largest founded year for schools having enrollment of exactly 696?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest founded year for schools having enrollment of exactly 696?`:
```sql
|
SELECT "control" FROM "public_and_established_private_instituti" WHERE "school"='Christopher Newport University'; |
## Task
Generate a SQL query to answer the following question:
`What is the control for Christopher Newport University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the control for Christopher Newport University?`:
```sql
|
SELECT COUNT("founded") FROM "public_and_established_private_instituti" WHERE "enrollment"='5634'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of schools founded that have an enrollment of 5634?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of schools founded that have an enrollment of 5634?`:
```sql
|
SELECT "type" FROM "public_and_established_private_instituti" WHERE "school"='Stratford University'; |
## Task
Generate a SQL query to answer the following question:
`What type of school is Stratford University?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of school is Stratford University?`:
```sql
|
SELECT "type" FROM "public_and_established_private_instituti" WHERE "school"='Jefferson College of Health Sciences'; |
## Task
Generate a SQL query to answer the following question:
`What type of school is Jefferson College of Health Sciences?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "public_and_established_private_instituti" (
"school" text,
"location_s" text,
"control" text,
"type" text,
"accreditation" text,
"founded" real,
"enrollment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of school is Jefferson College of Health Sciences?`:
```sql
|
SELECT "nec_record" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='11th'; |
## Task
Generate a SQL query to answer the following question:
`Name the nec record for 11th standing`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nec record for 11th standing`:
```sql
|
SELECT "year" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='9th'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for standing 9th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for standing 9th`:
```sql
|
SELECT "year" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='T-10th'; |
## Task
Generate a SQL query to answer the following question:
`Name the year for t-10th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year for t-10th`:
```sql
|
SELECT "regular_season_record_w_l" FROM "st_francis_college_lady_terriers_northea" WHERE "standing"='11th'; |
## Task
Generate a SQL query to answer the following question:
`Name the regular season record for standing 11th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "st_francis_college_lady_terriers_northea" (
"year" text,
"head_coach" text,
"regular_season_record_w_l" text,
"nec_record" text,
"standing" text,
"nec_tournament_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the regular season record for standing 11th`:
```sql
|
SELECT MAX("previous_br_no") FROM "departmental_service"; |
## Task
Generate a SQL query to answer the following question:
`Name the most previous br number`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "departmental_service" (
"number" text,
"previous_br_no" real,
"taken_into_deptal_stock" real,
"withdrawn" real,
"disposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most previous br number`:
```sql
|
SELECT COUNT("previous_br_no") FROM "departmental_service" WHERE "number"='21'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of previous br number for number 21`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "departmental_service" (
"number" text,
"previous_br_no" real,
"taken_into_deptal_stock" real,
"withdrawn" real,
"disposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of previous br number for number 21`:
```sql
|
SELECT "country_region" FROM "table1_20780285_1" WHERE "title"='Marele câștigător The Big Winner'; |
## Task
Generate a SQL query to answer the following question:
`What country uses the title Marele Câștigător The Big Winner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20780285_1" (
"country_region" text,
"title" text,
"television_network" text,
"winners" text,
"presenters" text,
"trainers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country uses the title Marele Câștigător The Big Winner?`:
```sql
|
SELECT "country_region" FROM "table1_20780285_1" WHERE "presenters"='Silvio Santos'; |
## Task
Generate a SQL query to answer the following question:
`Silvio Santos is the presenter in what country?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_20780285_1" (
"country_region" text,
"title" text,
"television_network" text,
"winners" text,
"presenters" text,
"trainers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Silvio Santos is the presenter in what country?`:
```sql
|
SELECT "home_town" FROM "roster" WHERE "name"='David Noel'; |
## Task
Generate a SQL query to answer the following question:
`What is the home town of David Noel?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home town of David Noel?`:
```sql
|
SELECT "high_school" FROM "roster" WHERE "home_town"='Blue Island, IL'; |
## Task
Generate a SQL query to answer the following question:
`What is the high school for the player who's hometown is Blue Island, Il?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "roster" (
"name" text,
"num" real,
"height" text,
"weight" real,
"position" text,
"year" text,
"home_town" text,
"high_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high school for the player who's hometown is Blue Island, Il?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.