cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the game 2 sum attendance of the team with a total attendance of 759,997?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "attendance" (
  "team" text,
  "game_1" real,
  "game_2" real,
  "game_3" real,
  "game_4" real,
  "game_5" real,
  "game_6" text,
  "total" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game 2 sum attendance of the team with a total attendance of 759,997?`:
```sql
                SELECT SUM("game_2") FROM "attendance" WHERE "total"='759,997';
```
## Task
Generate a SQL query to answer the following question:
`What position does Barry Rose play?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Barry Rose play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "player"='barry rose';
```
## Task
Generate a SQL query to answer the following question:
`Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "2006_2007_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?`:
```sql
                SELECT COUNT("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=183 AND "name"='paul stastny' AND "weight_kg"<93;
```
## Task
Generate a SQL query to answer the following question:
`When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "premierships" (
  "year" real,
  "coach" text,
  "captain" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?`:
```sql
                SELECT "captain" FROM "premierships" WHERE "year"<1927 AND "runner_up"='angaston';
```
## Task
Generate a SQL query to answer the following question:
`When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "premierships" (
  "year" real,
  "coach" text,
  "captain" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?`:
```sql
                SELECT "runner_up" FROM "premierships" WHERE "score"='kapunda 7-7-49 angaston 6-8-44';
```
## Task
Generate a SQL query to answer the following question:
`Which year had a Score of kapunda 14-13-97 tanunda 5-14-44?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "premierships" (
  "year" real,
  "coach" text,
  "captain" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year had a Score of kapunda 14-13-97 tanunda 5-14-44?`:
```sql
                SELECT SUM("year") FROM "premierships" WHERE "score"='kapunda 14-13-97 tanunda 5-14-44';
```
## Task
Generate a SQL query to answer the following question:
`When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "premierships" (
  "year" real,
  "coach" text,
  "captain" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?`:
```sql
                SELECT "captain" FROM "premierships" WHERE "runner_up"='tanunda' AND "year">1939;
```
## Task
Generate a SQL query to answer the following question:
`What's the tournamnet name that has a 2001 of 1r and 2011?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tournamnet name that has a 2001 of 1r and 2011?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2001"='1r' AND "2011"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2001 tournament with a 2005 4r?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2001 tournament with a 2005 4r?`:
```sql
                SELECT "2001" FROM "singles_performance_timeline" WHERE "2005"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What french open tournament happened in 2010 and has a 2004 1r?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What french open tournament happened in 2010 and has a 2004 1r?`:
```sql
                SELECT "2010" FROM "singles_performance_timeline" WHERE "2004"='1r' AND "tournament"='french open';
```
## Task
Generate a SQL query to answer the following question:
`What 2002 tournament has 2008 career statistics?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2002 tournament has 2008 career statistics?`:
```sql
                SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics';
```
## Task
Generate a SQL query to answer the following question:
`Which season has a Staffel E of Stahl Riesa?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1971_1984" (
  "season" text,
  "staffel_a" text,
  "staffel_b" text,
  "staffel_c" text,
  "staffel_d" text,
  "staffel_e" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season has a Staffel E of Stahl Riesa?`:
```sql
                SELECT "season" FROM "1971_1984" WHERE "staffel_e"='stahl riesa';
```
## Task
Generate a SQL query to answer the following question:
`What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1971_1984" (
  "season" text,
  "staffel_a" text,
  "staffel_b" text,
  "staffel_c" text,
  "staffel_d" text,
  "staffel_e" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?`:
```sql
                SELECT "staffel_d" FROM "1971_1984" WHERE "staffel_e"='motor suhl' AND "season"='1983-84';
```
## Task
Generate a SQL query to answer the following question:
`What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1971_1984" (
  "season" text,
  "staffel_a" text,
  "staffel_b" text,
  "staffel_c" text,
  "staffel_d" text,
  "staffel_e" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?`:
```sql
                SELECT "staffel_a" FROM "1971_1984" WHERE "staffel_d"='energie cottbus' AND "staffel_c"='chemie leipzig' AND "staffel_b"='1. fc union berlin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Staffel B that has Hallescher Fc Chemie as Staffel C?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "1971_1984" (
  "season" text,
  "staffel_a" text,
  "staffel_b" text,
  "staffel_c" text,
  "staffel_d" text,
  "staffel_e" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Staffel B that has Hallescher Fc Chemie as Staffel C?`:
```sql
                SELECT "staffel_b" FROM "1971_1984" WHERE "staffel_c"='hallescher fc chemie';
```
## Task
Generate a SQL query to answer the following question:
`Which week's date was September 27, 1953?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which week's date was September 27, 1953?`:
```sql
                SELECT "week" FROM "schedule" WHERE "date"='september 27, 1953';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='chicago cardinals' AND "week"<4;
```
## Task
Generate a SQL query to answer the following question:
`When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "july" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?`:
```sql
                SELECT "runner_up" FROM "july" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 6–2, 6–1';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "july" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?`:
```sql
                SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexia dechaume-balleret sandrine testud';
```
## Task
Generate a SQL query to answer the following question:
`What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "july" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?`:
```sql
                SELECT "tier" FROM "july" WHERE "semi_finalists"='sandrine testud mary pierce' AND "runner_up"='lisa raymond';
```
## Task
Generate a SQL query to answer the following question:
`Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "july" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?`:
```sql
                SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexandra fusai wiltrud probst';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label that shows on april 7, 1967?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Label that shows on april 7, 1967?`:
```sql
                SELECT "label" FROM "release_history" WHERE "date"='april 7, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?`:
```sql
                SELECT "date" FROM "release_history" WHERE "country"='uk' AND "format"='cd' AND "catalog"='edcd 227';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date for Catalog of lp 5060?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date for Catalog of lp 5060?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='lp 5060';
```
## Task
Generate a SQL query to answer the following question:
`What Date was the Country of japan, and a Label of sony?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Date was the Country of japan, and a Label of sony?`:
```sql
                SELECT "date" FROM "release_history" WHERE "country"='japan' AND "label"='sony';
```
## Task
Generate a SQL query to answer the following question:
`What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "format"='lp' AND "country"='us' AND "label"='sundazed' AND "date"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the Label name that has a Country of uk and the Catalog is bpg 62988?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "format" text,
  "country" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Label name that has a Country of uk and the Catalog is bpg 62988?`:
```sql
                SELECT "label" FROM "release_history" WHERE "country"='uk' AND "catalog"='bpg 62988';
```
## Task
Generate a SQL query to answer the following question:
`What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "the_final" (
  "position" real,
  "artist" text,
  "song" text,
  "lyrics_l_music_m" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place?`:
```sql
                SELECT "lyrics_l_music_m" FROM "the_final" WHERE "position">3 AND "place"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Position for the Song, "If I Can't Find My Love"?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "the_final" (
  "position" real,
  "artist" text,
  "song" text,
  "lyrics_l_music_m" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Position for the Song, "If I Can't Find My Love"?`:
```sql
                SELECT MIN("position") FROM "the_final" WHERE "song"='\"if i can''t find my love\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Rank of the Nation with 0 Silver and more than 1 Bronze?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "men" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Rank of the Nation with 0 Silver and more than 1 Bronze?`:
```sql
                SELECT MAX("rank") FROM "men" WHERE "silver"<1 AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Total medals for the Nation with 1 Silver and 0 Golds?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "men" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total medals for the Nation with 1 Silver and 0 Golds?`:
```sql
                SELECT COUNT("total") FROM "men" WHERE "silver"=1 AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which potential's period 5 is 4 and has an element of antimony?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "electrochemistry" (
  "element" text,
  "group" real,
  "period" real,
  "reaction" text,
  "potential" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which potential's period 5 is 4 and has an element of antimony?`:
```sql
                SELECT "potential" FROM "electrochemistry" WHERE "period"=5 AND "element"='antimony';
```
## Task
Generate a SQL query to answer the following question:
`Which lowest period's element is ruthenium?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "electrochemistry" (
  "element" text,
  "group" real,
  "period" real,
  "reaction" text,
  "potential" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lowest period's element is ruthenium?`:
```sql
                SELECT MIN("period") FROM "electrochemistry" WHERE "element"='ruthenium';
```
## Task
Generate a SQL query to answer the following question:
`Which highest period's element is platinum?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "electrochemistry" (
  "element" text,
  "group" real,
  "period" real,
  "reaction" text,
  "potential" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest period's element is platinum?`:
```sql
                SELECT MAX("period") FROM "electrochemistry" WHERE "element"='platinum';
```
## Task
Generate a SQL query to answer the following question:
`What is the Venue with a Result that is lost?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Venue with a Result that is lost?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "result"='lost';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?`:
```sql
                SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"=2 AND "industrial_and_commercial_panel">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?`:
```sql
                SELECT COUNT("national_university_of_ireland") FROM "composition_of_the_17th_seanad" WHERE "industrial_and_commercial_panel"<1 AND "cultural_and_educational_panel">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?`:
```sql
                SELECT AVG("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel">1 AND "industrial_and_commercial_panel"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?`:
```sql
                SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach">3 AND "agricultural_panel"=5 AND "cultural_and_educational_panel">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?`:
```sql
                SELECT MIN("cultural_and_educational_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach"<5 AND "total">19;
```
## Task
Generate a SQL query to answer the following question:
`With the cultural and educational panel less than 0 what is the average industrial and commercial panel?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "composition_of_the_17th_seanad" (
  "administrative_panel" real,
  "agricultural_panel" real,
  "cultural_and_educational_panel" real,
  "industrial_and_commercial_panel" real,
  "labour_panel" real,
  "national_university_of_ireland" real,
  "university_of_dublin" real,
  "nominated_by_the_taoiseach" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With the cultural and educational panel less than 0 what is the average industrial and commercial panel?`:
```sql
                SELECT AVG("industrial_and_commercial_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "total" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?`:
```sql
                SELECT COUNT("silver") FROM "total" WHERE "total"=5 AND "gold">3;
```
## Task
Generate a SQL query to answer the following question:
`What was the label in 1969?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "new_zealand" (
  "date" real,
  "artist" text,
  "label" text,
  "cat_num" text,
  "tracks" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the label in 1969?`:
```sql
                SELECT "label" FROM "new_zealand" WHERE "date"=1969;
```
## Task
Generate a SQL query to answer the following question:
`What is the Commissioned date of the ship in NVR Page MCM02?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "commissioned" text,
  "builder" text,
  "home_port" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Commissioned date of the ship in NVR Page MCM02?`:
```sql
                SELECT "commissioned" FROM "ships" WHERE "nvr_page"='mcm02';
```
## Task
Generate a SQL query to answer the following question:
`What is the NVR Page of the ship with a Home Port of Sasebo, Japan?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "ships" (
  "ship" text,
  "hull_no" text,
  "commissioned" text,
  "builder" text,
  "home_port" text,
  "nvr_page" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NVR Page of the ship with a Home Port of Sasebo, Japan?`:
```sql
                SELECT "nvr_page" FROM "ships" WHERE "home_port"='sasebo, japan';
```
## Task
Generate a SQL query to answer the following question:
`Which week's game was attended by 54,015 people?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which week's game was attended by 54,015 people?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"='54,015';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game that was before week 4 and was attended by over 54,015 people ?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game that was before week 4 and was attended by over 54,015 people ?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"<4 AND "attendance">'54,015';
```
## Task
Generate a SQL query to answer the following question:
`In what venues was the match with a final result of Eng by 4 wkts?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "england_in_south_africa_1905_6" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what venues was the match with a final result of Eng by 4 wkts?`:
```sql
                SELECT "venue" FROM "england_in_south_africa_1905_6" WHERE "result"='eng by 4 wkts';
```
## Task
Generate a SQL query to answer the following question:
`What is the running time of the transmission on bbc four channels on 23 March 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "transmissions" (
  "date" text,
  "time" text,
  "channel" text,
  "running_time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the running time of the transmission on bbc four channels on 23 March 2008?`:
```sql
                SELECT "running_time" FROM "transmissions" WHERE "channel"='bbc four' AND "date"='23 march 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the notes of the transmission on channel bbc four and a time of 22:30?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "transmissions" (
  "date" text,
  "time" text,
  "channel" text,
  "running_time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the notes of the transmission on channel bbc four and a time of 22:30?`:
```sql
                SELECT "notes" FROM "transmissions" WHERE "channel"='bbc four' AND "time"='22:30';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the transmission on 28 December 2008 with a running time of 66 min 21 sec?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "transmissions" (
  "date" text,
  "time" text,
  "channel" text,
  "running_time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the transmission on 28 December 2008 with a running time of 66 min 21 sec?`:
```sql
                SELECT "time" FROM "transmissions" WHERE "running_time"='66 min 21 sec' AND "date"='28 december 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which channel was on 28 December 2008?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "transmissions" (
  "date" text,
  "time" text,
  "channel" text,
  "running_time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which channel was on 28 December 2008?`:
```sql
                SELECT "channel" FROM "transmissions" WHERE "date"='28 december 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the channel with a 03:40 time?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "transmissions" (
  "date" text,
  "time" text,
  "channel" text,
  "running_time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the channel with a 03:40 time?`:
```sql
                SELECT "channel" FROM "transmissions" WHERE "time"='03:40';
```
## Task
Generate a SQL query to answer the following question:
`What is the Other b when the FA Cup shows 3 (17)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "league_a" text,
  "fa_cup" text,
  "league_cup" text,
  "other_b" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Other b when the FA Cup shows 3 (17)?`:
```sql
                SELECT "other_b" FROM "top_goalscorers" WHERE "fa_cup"='3 (17)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total when the league shows 79 (221)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "league_a" text,
  "fa_cup" text,
  "league_cup" text,
  "other_b" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total when the league shows 79 (221)?`:
```sql
                SELECT "total" FROM "top_goalscorers" WHERE "league_a"='79 (221)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "league_a" text,
  "fa_cup" text,
  "league_cup" text,
  "other_b" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?`:
```sql
                SELECT "name" FROM "top_goalscorers" WHERE "league_cup"='0 (0)' AND "fa_cup"='12 (14)';
```
## Task
Generate a SQL query to answer the following question:
`What is the League for 1952–1960?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "league_a" text,
  "fa_cup" text,
  "league_cup" text,
  "other_b" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the League for 1952–1960?`:
```sql
                SELECT "league_a" FROM "top_goalscorers" WHERE "years"='1952–1960';
```
## Task
Generate a SQL query to answer the following question:
`What shows for the League when the FA Cup is 6 (20)?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "top_goalscorers" (
  "name" text,
  "years" text,
  "league_a" text,
  "fa_cup" text,
  "league_cup" text,
  "other_b" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for the League when the FA Cup is 6 (20)?`:
```sql
                SELECT "league_a" FROM "top_goalscorers" WHERE "fa_cup"='6 (20)';
```
## Task
Generate a SQL query to answer the following question:
`What club wast he player hristo stoitchkov from?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "results" (
  "rank" real,
  "player" text,
  "club" text,
  "nationality" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What club wast he player hristo stoitchkov from?`:
```sql
                SELECT "club" FROM "results" WHERE "player"='hristo stoitchkov';
```
## Task
Generate a SQL query to answer the following question:
`What is the content for la sorgente sat 3?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "shopping" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the content for la sorgente sat 3?`:
```sql
                SELECT "content" FROM "shopping" WHERE "television_service"='la sorgente sat 3';
```
## Task
Generate a SQL query to answer the following question:
`What language is telemarket for you?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "shopping" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is telemarket for you?`:
```sql
                SELECT "language" FROM "shopping" WHERE "television_service"='telemarket for you';
```
## Task
Generate a SQL query to answer the following question:
`What language is telemarket for you with a content of televendita?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "shopping" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What language is telemarket for you with a content of televendita?`:
```sql
                SELECT "language" FROM "shopping" WHERE "content"='televendita' AND "television_service"='telemarket for you';
```
## Task
Generate a SQL query to answer the following question:
`Which team has points less than 6 in a year after 1969?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has points less than 6 in a year after 1969?`:
```sql
                SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "year">1969;
```
## Task
Generate a SQL query to answer the following question:
`How many wins for the team with points less than 6 and a 350cc class?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins for the team with points less than 6 and a 350cc class?`:
```sql
                SELECT "wins" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "class"='350cc';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest points for 36th rank?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest points for 36th rank?`:
```sql
                SELECT MIN("points") FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='36th';
```
## Task
Generate a SQL query to answer the following question:
`What is team Yamaha with 3 points ranked?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "grand_prix_motorcycle_racing_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is team Yamaha with 3 points ranked?`:
```sql
                SELECT "rank" FROM "grand_prix_motorcycle_racing_results" WHERE "team"='yamaha' AND "points"=3;
```
## Task
Generate a SQL query to answer the following question:
`What years did the player ranked less than 8 and had 447 matches play?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "list_of_top_association_football_goal_sc" (
  "rank" real,
  "name" text,
  "years" text,
  "matches" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the player ranked less than 8 and had 447 matches play?`:
```sql
                SELECT "years" FROM "list_of_top_association_football_goal_sc" WHERE "rank"<8 AND "matches"=447;
```
## Task
Generate a SQL query to answer the following question:
`What is the Time with a Record that is 15-7?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Time with a Record that is 15-7?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "record"='15-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the Event with a Time that is 3:06?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Event with a Time that is 3:06?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='3:06';
```
## Task
Generate a SQL query to answer the following question:
`How many silvers did Turkey get?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers did Turkey get?`:
```sql
                SELECT "silver" FROM "medal_table" WHERE "nation"='turkey';
```
## Task
Generate a SQL query to answer the following question:
`What position does Denard Walker play?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Denard Walker play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "player"='denard walker';
```
## Task
Generate a SQL query to answer the following question:
`What was the pick number for the wide receiver drafted from Michigan State?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pick number for the wide receiver drafted from Michigan State?`:
```sql
                SELECT "pick_num" FROM "nfl_draft" WHERE "position"='wide receiver' AND "college"='michigan state';
```
## Task
Generate a SQL query to answer the following question:
`Which player came from Kent State?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player came from Kent State?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "college"='kent state';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "men" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of bronze medals, and 4 silver medals, and 2 gold medals?`:
```sql
                SELECT COUNT("bronze") FROM "men" WHERE "silver"=4 AND "gold">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a score of 2–6 6–4 [10–8]?`

### Database Schema
This query will run on a database whose schema is represented in this string:

CREATE TABLE "doubles_11_3_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a score of 2–6 6–4 [10–8]?`:
```sql
                SELECT "tournament" FROM "doubles_11_3_8" WHERE "score"='2–6 6–4 [10–8]';
```