cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is on at 5pm on the channel where As the World Turns is on at 2pm?`

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

CREATE TABLE "winter_1999_2000" (
  "7_00_am" text,
  "7_30_am" text,
  "8_00_am" text,
  "9_00_am" text,
  "10_00_am" text,
  "11_00_am" text,
  "noon" text,
  "12_30_pm" text,
  "1_00_pm" text,
  "1_30_pm" text,
  "2_00_pm" text,
  "3_00_pm" text,
  "3_30_pm" text,
  "5_00_pm" text,
  "6_30_pm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 5pm on the channel where As the World Turns is on at 2pm?`:
```sql
                SELECT "5_00_pm" FROM "winter_1999_2000" WHERE "2_00_pm"='as the world turns';
```
## Task
Generate a SQL query to answer the following question:
`Which team won at the symmons plains raceway?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team won at the symmons plains raceway?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "circuit"='symmons plains raceway';
```
## Task
Generate a SQL query to answer the following question:
`Which team won at winton motor raceway?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team won at winton motor raceway?`:
```sql
                SELECT "team" FROM "race_calendar" WHERE "circuit"='winton motor raceway';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit was the atcc round 7 at?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit was the atcc round 7 at?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "series"='atcc round 7';
```
## Task
Generate a SQL query to answer the following question:
`Which circuit did winfield team nissan win for the tooheys 1000?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which circuit did winfield team nissan win for the tooheys 1000?`:
```sql
                SELECT "circuit" FROM "race_calendar" WHERE "team"='winfield team nissan' AND "series"='tooheys 1000';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the tooheys 1000?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the tooheys 1000?`:
```sql
                SELECT "date" FROM "race_calendar" WHERE "series"='tooheys 1000';
```
## Task
Generate a SQL query to answer the following question:
`what series was in sydney, new south wales?`

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

CREATE TABLE "race_calendar" (
  "date" text,
  "series" text,
  "circuit" text,
  "city_state" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what series was in sydney, new south wales?`:
```sql
                SELECT "series" FROM "race_calendar" WHERE "city_state"='sydney, new south wales';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank for 1.26 Ø-Pts in game 1458?`

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

CREATE TABLE "references" (
  "rank" real,
  "club" text,
  "years" real,
  "games" real,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank for 1.26 Ø-Pts in game 1458?`:
```sql
                SELECT COUNT("rank") FROM "references" WHERE "pts">1.26 AND "games"=1458;
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?`:
```sql
                SELECT "outcome" FROM "doubles_9_3_6" WHERE "partner"='marcella mesker' AND "score"='6–4, 4–6, 4–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the match with a Score of 2–6, 6–4, 7–6?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of the match with a Score of 2–6, 6–4, 7–6?`:
```sql
                SELECT "surface" FROM "doubles_9_3_6" WHERE "score"='2–6, 6–4, 7–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the match played on October 5, 1987?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of the match played on October 5, 1987?`:
```sql
                SELECT "surface" FROM "doubles_9_3_6" WHERE "date"='october 5, 1987';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the match with a Score of 0–6, 2–6 with Partner Marcella Mesker?`:
```sql
                SELECT "date" FROM "doubles_9_3_6" WHERE "partner"='marcella mesker' AND "score"='0–6, 2–6';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Opponents on May 3, 1982?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Opponents on May 3, 1982?`:
```sql
                SELECT "opponents" FROM "doubles_9_3_6" WHERE "date"='may 3, 1982';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of the match on May 21, 1984 with Outcome of runner-up?`

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

CREATE TABLE "doubles_9_3_6" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of the match on May 21, 1984 with Outcome of runner-up?`:
```sql
                SELECT "score" FROM "doubles_9_3_6" WHERE "outcome"='runner-up' AND "date"='may 21, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the 200m individual medley?`

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

CREATE TABLE "women" (
  "event" text,
  "time" text,
  "date" text,
  "meet" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the 200m individual medley?`:
```sql
                SELECT "date" FROM "women" WHERE "event"='200m individual medley';
```
## Task
Generate a SQL query to answer the following question:
`Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was team 1 in the match where team 2 was olympique lyonnais (d2)?`:
```sql
                SELECT "team_1" FROM "round_of_16" WHERE "team_2"='olympique lyonnais (d2)';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match where paris sg (d1) was team 1?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the match where paris sg (d1) was team 1?`:
```sql
                SELECT "score" FROM "round_of_16" WHERE "team_1"='paris sg (d1)';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Result of w 23–22?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Result of w 23–22?`:
```sql
                SELECT "week" FROM "schedule" WHERE "result"='w 23–22';
```
## Task
Generate a SQL query to answer the following question:
`When was there a bye result?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a bye result?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='bye';
```
## Task
Generate a SQL query to answer the following question:
`When was the attendance 65,806?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the attendance 65,806?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='65,806';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent after week 16?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent after week 16?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week">16;
```
## Task
Generate a SQL query to answer the following question:
`What is Commissioned, when Laid Down is "6 September 2003"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Commissioned, when Laid Down is "6 September 2003"?`:
```sql
                SELECT "commissioned" FROM "ships_in_class" WHERE "laid_down"='6 september 2003';
```
## Task
Generate a SQL query to answer the following question:
`What is Launched, when Laid Down is "31 October 1981"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Launched, when Laid Down is "31 October 1981"?`:
```sql
                SELECT "launched" FROM "ships_in_class" WHERE "laid_down"='31 october 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is Ship, when Commissioned is "13 March 1982"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ship, when Commissioned is "13 March 1982"?`:
```sql
                SELECT "ship" FROM "ships_in_class" WHERE "commissioned"='13 march 1982';
```
## Task
Generate a SQL query to answer the following question:
`What is Launched, when Commissioned is "25 July 1998"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Launched, when Commissioned is "25 July 1998"?`:
```sql
                SELECT "launched" FROM "ships_in_class" WHERE "commissioned"='25 july 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is Laid Down, when Hull Number is "CVN-69"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Laid Down, when Hull Number is "CVN-69"?`:
```sql
                SELECT "laid_down" FROM "ships_in_class" WHERE "hull_number"='cvn-69';
```
## Task
Generate a SQL query to answer the following question:
`What is Laid Down, when Commissioned is "11 November 1989"?`

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

CREATE TABLE "ships_in_class" (
  "ship" text,
  "hull_number" text,
  "laid_down" text,
  "launched" text,
  "commissioned" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Laid Down, when Commissioned is "11 November 1989"?`:
```sql
                SELECT "laid_down" FROM "ships_in_class" WHERE "commissioned"='11 november 1989';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Position that has the Entrant of j ampt?`

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

CREATE TABLE "results" (
  "position" text,
  "driver" text,
  "entrant" text,
  "class" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the Entrant of j ampt?`:
```sql
                SELECT "position" FROM "results" WHERE "entrant"='j ampt';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Entrant that has the Laps of 17?`

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

CREATE TABLE "results" (
  "position" text,
  "driver" text,
  "entrant" text,
  "class" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Entrant that has the Laps of 17?`:
```sql
                SELECT "entrant" FROM "results" WHERE "laps"=17;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Position that has the Driver of bib stillwell?`

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

CREATE TABLE "results" (
  "position" text,
  "driver" text,
  "entrant" text,
  "class" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Position that has the Driver of bib stillwell?`:
```sql
                SELECT "position" FROM "results" WHERE "driver"='bib stillwell';
```
## Task
Generate a SQL query to answer the following question:
`What are the results for a game with an attendance of 41,429?`

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

CREATE TABLE "sugar_bowl" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for a game with an attendance of 41,429?`:
```sql
                SELECT "result" FROM "sugar_bowl" WHERE "attendance"='41,429';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents when there was an attendance of 48,165?`

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

CREATE TABLE "sugar_bowl" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents when there was an attendance of 48,165?`:
```sql
                SELECT "opponentnum" FROM "sugar_bowl" WHERE "attendance"='48,165';
```
## Task
Generate a SQL query to answer the following question:
`What are the results for the game with 82,113 attending?`

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

CREATE TABLE "sugar_bowl" (
  "date" text,
  "opponentnum" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for the game with 82,113 attending?`:
```sql
                SELECT "result" FROM "sugar_bowl" WHERE "attendance"='82,113';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 4 after week 3's Mikaela James?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 4 after week 3's Mikaela James?`:
```sql
                SELECT "week_4" FROM "2010" WHERE "week_3"='mikaela james';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 1 that was previous to week 3's Ava Hart?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 1 that was previous to week 3's Ava Hart?`:
```sql
                SELECT "week_1" FROM "2010" WHERE "week_3"='ava hart';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 2 that was previous to week 4's Chelsie Loraine?`:
```sql
                SELECT "week_2" FROM "2010" WHERE "week_4"='chelsie loraine';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 5 that came after week 3's Mikaela James?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 5 that came after week 3's Mikaela James?`:
```sql
                SELECT "week_5" FROM "2010" WHERE "week_3"='mikaela james';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 1 that preceded week 2's Kamila Sulewska?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 1 that preceded week 2's Kamila Sulewska?`:
```sql
                SELECT "week_1" FROM "2010" WHERE "week_2"='kamila sulewska';
```
## Task
Generate a SQL query to answer the following question:
`Who was the girl on week 5 that came after week 3's Shelly Louise?`

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

CREATE TABLE "2010" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the girl on week 5 that came after week 3's Shelly Louise?`:
```sql
                SELECT "week_5" FROM "2010" WHERE "week_3"='shelly louise';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 1988-89, when Average is greater than 0.965, when 1987-88 is "40", when 1986-87 is "49", and when Points is greater than 123?`:
```sql
                SELECT MIN("1988_89") FROM "relegation" WHERE "average">0.965 AND "1987_88"='40' AND "1986_87"='49' AND "points">123;
```
## Task
Generate a SQL query to answer the following question:
`What is Played, when Points is less than 107, and when 1987-88 is "31"?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Played, when Points is less than 107, and when 1987-88 is "31"?`:
```sql
                SELECT "played" FROM "relegation" WHERE "points"<107 AND "1987_88"='31';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 1988-89, when Points is greater than 130, when 1987-88 is "37", and when Played is less than 114?`:
```sql
                SELECT MIN("1988_89") FROM "relegation" WHERE "points">130 AND "1987_88"='37' AND "played"<114;
```
## Task
Generate a SQL query to answer the following question:
`What is 1987-88, when Points is "136"?`

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

CREATE TABLE "relegation" (
  "team" text,
  "average" real,
  "points" real,
  "played" real,
  "1986_87" text,
  "1987_88" text,
  "1988_89" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1987-88, when Points is "136"?`:
```sql
                SELECT "1987_88" FROM "relegation" WHERE "points"=136;
```
## Task
Generate a SQL query to answer the following question:
`Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?`

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

CREATE TABLE "standings" (
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the the highest Draw which has Points of 22 and Goals Conceded smaller than 26?`:
```sql
                SELECT MAX("draw") FROM "standings" WHERE "points"='22' AND "goals_conceded"<26;
```
## Task
Generate a SQL query to answer the following question:
`Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?`

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

CREATE TABLE "standings" (
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the highest Played of Goals Scored smaller than 18 and a Lost larger than 10?`:
```sql
                SELECT MAX("played") FROM "standings" WHERE "goals_scored"<18 AND "lost">10;
```
## Task
Generate a SQL query to answer the following question:
`Name the average Played with a Points of 0*?`

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

CREATE TABLE "standings" (
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Played with a Points of 0*?`:
```sql
                SELECT AVG("played") FROM "standings" WHERE "points"='0*';
```
## Task
Generate a SQL query to answer the following question:
`Count the Draw which has Lost of 0, and a Goals Scored larger than 0?`

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

CREATE TABLE "standings" (
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Count the Draw which has Lost of 0, and a Goals Scored larger than 0?`:
```sql
                SELECT SUM("draw") FROM "standings" WHERE "lost"=0 AND "goals_scored">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the Goals Conceded  which has a Draw of 0 and a Played larger than 0?`

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

CREATE TABLE "standings" (
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Goals Conceded  which has a Draw of 0 and a Played larger than 0?`:
```sql
                SELECT AVG("goals_conceded") FROM "standings" WHERE "draw"=0 AND "played">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for the Mixed Team nation with a total of less than 13?`

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

CREATE TABLE "medal_count" (
  "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 for the Mixed Team nation with a total of less than 13?`:
```sql
                SELECT "rank" FROM "medal_count" WHERE "total"<13 AND "nation"='mixed team';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze medals for teams with less than 0 silver?`

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

CREATE TABLE "medal_count" (
  "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 for teams with less than 0 silver?`:
```sql
                SELECT COUNT("bronze") FROM "medal_count" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?`

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

CREATE TABLE "medal_count" (
  "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 average number of bronze medals when the team's silver are more than 1 but the total medals are less than 9?`:
```sql
                SELECT AVG("bronze") FROM "medal_count" WHERE "silver">1 AND "total"<9;
```
## Task
Generate a SQL query to answer the following question:
`How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?`

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

CREATE TABLE "regular_conflicts" (
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths_not_including_foreigners" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many military or civilians were wounded in the conflict that had an unknown number of civilian and total deaths?`:
```sql
                SELECT "military_and_or_civilian_wounded" FROM "regular_conflicts" WHERE "civilian_deaths"='unknown' AND "total_deaths_not_including_foreigners"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`How many civilians died in the conflict that left 231 members of the military dead?`

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

CREATE TABLE "regular_conflicts" (
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths_not_including_foreigners" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that left 231 members of the military dead?`:
```sql
                SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "military_deaths"='231';
```
## Task
Generate a SQL query to answer the following question:
`How many civilians died in the conflict that left 178, excluding foreigners, dead?`

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

CREATE TABLE "regular_conflicts" (
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths_not_including_foreigners" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that left 178, excluding foreigners, dead?`:
```sql
                SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "total_deaths_not_including_foreigners"='178';
```
## Task
Generate a SQL query to answer the following question:
`How many members of the military died in the conflict that had a total of 531 casualties?`

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

CREATE TABLE "regular_conflicts" (
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths_not_including_foreigners" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many members of the military died in the conflict that had a total of 531 casualties?`:
```sql
                SELECT "military_deaths" FROM "regular_conflicts" WHERE "total_casualties"='531';
```
## Task
Generate a SQL query to answer the following question:
`How many civilians died in the conflict that had a total of 1,130 casualties?`

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

CREATE TABLE "regular_conflicts" (
  "military_deaths" text,
  "civilian_deaths" text,
  "total_deaths_not_including_foreigners" text,
  "military_and_or_civilian_wounded" text,
  "total_casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many civilians died in the conflict that had a total of 1,130 casualties?`:
```sql
                SELECT "civilian_deaths" FROM "regular_conflicts" WHERE "total_casualties"='1,130';
```
## Task
Generate a SQL query to answer the following question:
`Which team was the opponent on week 15?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team was the opponent on week 15?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Finish is "T47"?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when Finish is "T47"?`:
```sql
                SELECT AVG("total") FROM "made_the_cut" WHERE "finish"='t47';
```
## Task
Generate a SQL query to answer the following question:
`What is To par, when Total is less than 297, and when Finish is "1"?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To par, when Total is less than 297, and when Finish is "1"?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "total"<297 AND "finish"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the Official ITV1 rating for auditions 4?`

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

CREATE TABLE "ratings" (
  "episode" text,
  "air_date" text,
  "official_itv1_rating" real,
  "weekly_rank" text,
  "share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Official ITV1 rating for auditions 4?`:
```sql
                SELECT "official_itv1_rating" FROM "ratings" WHERE "episode"='auditions 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest official ITV1 rating with 45.4% share?`

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

CREATE TABLE "ratings" (
  "episode" text,
  "air_date" text,
  "official_itv1_rating" real,
  "weekly_rank" text,
  "share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest official ITV1 rating with 45.4% share?`:
```sql
                SELECT MIN("official_itv1_rating") FROM "ratings" WHERE "share"='45.4%';
```
## Task
Generate a SQL query to answer the following question:
`How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Goals against have Wins larger than 12, and a Club of ud las palmas, and a Position larger than 5?`:
```sql
                SELECT COUNT("goals_against") FROM "group_ii" WHERE "wins">12 AND "club"='ud las palmas' AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals against has Points smaller than 26, and Goals for smaller than 38, and a Position larger than 14, and a Goal Difference smaller than -32?`:
```sql
                SELECT MAX("goals_against") FROM "group_ii" WHERE "points"<26 AND "goals_for"<38 AND "position">14 AND "goal_difference"<-32;
```
## Task
Generate a SQL query to answer the following question:
`Which Goals against have a Club of cd castellón, and Points smaller than 24?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Goals against have a Club of cd castellón, and Points smaller than 24?`:
```sql
                SELECT AVG("goals_against") FROM "group_ii" WHERE "club"='cd castellón' AND "points"<24;
```
## Task
Generate a SQL query to answer the following question:
`How much Played has Goals against smaller than 34, and Wins smaller than 13?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Played has Goals against smaller than 34, and Wins smaller than 13?`:
```sql
                SELECT SUM("played") FROM "group_ii" WHERE "goals_against"<34 AND "wins"<13;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Position smaller than 4, and Wins larger than 16, and Points of 38, and Goals against larger than 35?`:
```sql
                SELECT AVG("played") FROM "group_ii" WHERE "position"<4 AND "wins">16 AND "points"=38 AND "goals_against">35;
```
## Task
Generate a SQL query to answer the following question:
`What is the To Par score for the player from France?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To Par score for the player from France?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='france';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player with an overall score of 70-69-69=208?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player with an overall score of 70-69-69=208?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='70-69-69=208';
```
## Task
Generate a SQL query to answer the following question:
`What is the To Par score for the player with an overall score of 71-68-69=208?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To Par score for the player with an overall score of 71-68-69=208?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='71-68-69=208';
```
## Task
Generate a SQL query to answer the following question:
`What location did Anke Huber win the championship?`

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

CREATE TABLE "women_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location did Anke Huber win the championship?`:
```sql
                SELECT "location" FROM "women_s_singles" WHERE "champion"='anke huber';
```
## Task
Generate a SQL query to answer the following question:
`Who won the runner-up in 1999?`

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

CREATE TABLE "women_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the runner-up in 1999?`:
```sql
                SELECT "runner_up" FROM "women_s_singles" WHERE "year"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Flavia Pennetta won the championship?`

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

CREATE TABLE "women_s_singles" (
  "location" text,
  "year" real,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Flavia Pennetta won the championship?`:
```sql
                SELECT "score" FROM "women_s_singles" WHERE "champion"='flavia pennetta';
```
## Task
Generate a SQL query to answer the following question:
`How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?`

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

CREATE TABLE "runs" (
  "player" text,
  "team" text,
  "matches" real,
  "inns" real,
  "runs" real,
  "balls" real,
  "s_rate" real,
  "100s" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?`:
```sql
                SELECT COUNT("matches") FROM "runs" WHERE "s_rate"<133.72 AND "team"='yorkshire carnegie';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12?`

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

CREATE TABLE "runs" (
  "player" text,
  "team" text,
  "matches" real,
  "inns" real,
  "runs" real,
  "balls" real,
  "s_rate" real,
  "100s" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12?`:
```sql
                SELECT "team" FROM "runs" WHERE "balls"<258 AND "inns"=10 AND "matches"<12;
```
## Task
Generate a SQL query to answer the following question:
`How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?`

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

CREATE TABLE "runs" (
  "player" text,
  "team" text,
  "matches" real,
  "inns" real,
  "runs" real,
  "balls" real,
  "s_rate" real,
  "100s" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Matches have Balls smaller than 224, and an Average larger than 38.25, and an S/Rate larger than 139.09?`:
```sql
                SELECT SUM("matches") FROM "runs" WHERE "balls"<224 AND "average">38.25 AND "s_rate">139.09;
```
## Task
Generate a SQL query to answer the following question:
`How many Matches have an Average larger than 26.53, and an S/Rate of 165.4, and a 100s smaller than 1?`

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

CREATE TABLE "runs" (
  "player" text,
  "team" text,
  "matches" real,
  "inns" real,
  "runs" real,
  "balls" real,
  "s_rate" real,
  "100s" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Matches have an Average larger than 26.53, and an S/Rate of 165.4, and a 100s smaller than 1?`:
```sql
                SELECT COUNT("matches") FROM "runs" WHERE "average">26.53 AND "s_rate"=165.4 AND "100s"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the fastest lap for Grand Prix dutch tt?`

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

CREATE TABLE "calendar" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the fastest lap for Grand Prix dutch tt?`:
```sql
                SELECT "fastest_lap" FROM "calendar" WHERE "grand_prix"='dutch tt';
```
## Task
Generate a SQL query to answer the following question:
`Who won the race circuit of sachsenring?`

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

CREATE TABLE "calendar" (
  "round" real,
  "date" text,
  "grand_prix" text,
  "circuit" text,
  "pole_position" text,
  "fastest_lap" text,
  "race_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the race circuit of sachsenring?`:
```sql
                SELECT "race_winner" FROM "calendar" WHERE "circuit"='sachsenring';
```