cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Win %, when Conference Titles is 0, and when Win-Loss is 20-10?`

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

CREATE TABLE "all_time_head_coaches" (
  "coach" text,
  "years" text,
  "win_loss" text,
  "win_pct" text,
  "conference_titles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Win %, when Conference Titles is 0, and when Win-Loss is 20-10?`:
```sql
                SELECT "win_pct" FROM "all_time_head_coaches" WHERE "conference_titles"='0' AND "win_loss"='20-10';
```
## Task
Generate a SQL query to answer the following question:
`What is Conference Titles, when Win % is .667?`

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

CREATE TABLE "all_time_head_coaches" (
  "coach" text,
  "years" text,
  "win_loss" text,
  "win_pct" text,
  "conference_titles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Conference Titles, when Win % is .667?`:
```sql
                SELECT "conference_titles" FROM "all_time_head_coaches" WHERE "win_pct"='.667';
```
## Task
Generate a SQL query to answer the following question:
`What is Coach, when Win % is .352?`

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

CREATE TABLE "all_time_head_coaches" (
  "coach" text,
  "years" text,
  "win_loss" text,
  "win_pct" text,
  "conference_titles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Coach, when Win % is .352?`:
```sql
                SELECT "coach" FROM "all_time_head_coaches" WHERE "win_pct"='.352';
```
## Task
Generate a SQL query to answer the following question:
`What is Win-Loss, when Win % is .456?`

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

CREATE TABLE "all_time_head_coaches" (
  "coach" text,
  "years" text,
  "win_loss" text,
  "win_pct" text,
  "conference_titles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Win-Loss, when Win % is .456?`:
```sql
                SELECT "win_loss" FROM "all_time_head_coaches" WHERE "win_pct"='.456';
```
## Task
Generate a SQL query to answer the following question:
`What is Years, when Win-Loss is 11-60?`

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

CREATE TABLE "all_time_head_coaches" (
  "coach" text,
  "years" text,
  "win_loss" text,
  "win_pct" text,
  "conference_titles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Years, when Win-Loss is 11-60?`:
```sql
                SELECT "years" FROM "all_time_head_coaches" WHERE "win_loss"='11-60';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date that has a Record of 33.952?`

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

CREATE TABLE "women_s_records" (
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date that has a Record of 33.952?`:
```sql
                SELECT "date" FROM "women_s_records" WHERE "record"='33.952';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place that has a Date of 4 august 2012?`

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

CREATE TABLE "women_s_records" (
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place that has a Date of 4 august 2012?`:
```sql
                SELECT "place" FROM "women_s_records" WHERE "date"='4 august 2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place that has a Date of 22 august 2004?`

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

CREATE TABLE "women_s_records" (
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Place that has a Date of 22 august 2004?`:
```sql
                SELECT "place" FROM "women_s_records" WHERE "date"='22 august 2004';
```
## Task
Generate a SQL query to answer the following question:
`What is the Record that has a Nationality of new zealand?`

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

CREATE TABLE "women_s_records" (
  "event" text,
  "record" text,
  "athlete" text,
  "nationality" text,
  "date" text,
  "meet" text,
  "place" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record that has a Nationality of new zealand?`:
```sql
                SELECT "record" FROM "women_s_records" WHERE "nationality"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SKIP WITH A THIRD OF DEANNA DOIG?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SKIP WITH A THIRD OF DEANNA DOIG?`:
```sql
                SELECT "skip" FROM "women_s" WHERE "third"='deanna doig';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE THIRD WITH LEAD CINDY SIMMONS?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE THIRD WITH LEAD CINDY SIMMONS?`:
```sql
                SELECT "third" FROM "women_s" WHERE "lead"='cindy simmons';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LEAD WITH THIRD AS JEANNA SCHRAEDER?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LEAD WITH THIRD AS JEANNA SCHRAEDER?`:
```sql
                SELECT "lead" FROM "women_s" WHERE "third"='jeanna schraeder';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LEAD WITH THIRD AS TARA GEORGE?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LEAD WITH THIRD AS TARA GEORGE?`:
```sql
                SELECT "lead" FROM "women_s" WHERE "third"='tara george';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS TEH SECOND WITH REGINA AS CITY AND SKIP OF MICHELLE ENGLOT?`:
```sql
                SELECT "second" FROM "women_s" WHERE "city"='regina' AND "skip"='michelle englot';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?`

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

CREATE TABLE "women_s" (
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE CITY WITH THIRD AS LORI OLSON-JOHNS?`:
```sql
                SELECT "city" FROM "women_s" WHERE "third"='lori olson-johns';
```
## Task
Generate a SQL query to answer the following question:
`What event has a 0:49 time?`

### 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 event has a 0:49 time?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='0:49';
```
## Task
Generate a SQL query to answer the following question:
`What is the record with a 3:56 time?`

### 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 record with a 3:56 time?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='3:56';
```
## Task
Generate a SQL query to answer the following question:
`Which Champion has a Third of blaho blahoyeve, and a Season of 1995-96?`

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

CREATE TABLE "kfk_competition_of_ukraine" (
  "season" text,
  "zone" real,
  "champion" text,
  "second" text,
  "third" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champion has a Third of blaho blahoyeve, and a Season of 1995-96?`:
```sql
                SELECT "champion" FROM "kfk_competition_of_ukraine" WHERE "third"='blaho blahoyeve' AND "season"='1995-96';
```
## Task
Generate a SQL query to answer the following question:
`Which Zone has a Champion of surozh sudak?`

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

CREATE TABLE "kfk_competition_of_ukraine" (
  "season" text,
  "zone" real,
  "champion" text,
  "second" text,
  "third" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Zone has a Champion of surozh sudak?`:
```sql
                SELECT SUM("zone") FROM "kfk_competition_of_ukraine" WHERE "champion"='surozh sudak';
```
## Task
Generate a SQL query to answer the following question:
`Which Third has a Champion of metalurh novomoskovsk?`

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

CREATE TABLE "kfk_competition_of_ukraine" (
  "season" text,
  "zone" real,
  "champion" text,
  "second" text,
  "third" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Third has a Champion of metalurh novomoskovsk?`:
```sql
                SELECT "third" FROM "kfk_competition_of_ukraine" WHERE "champion"='metalurh novomoskovsk';
```
## Task
Generate a SQL query to answer the following question:
`What is the census ranking for the parish with an area larger than 243.31 square km?`

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

CREATE TABLE "parishes" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the census ranking for the parish with an area larger than 243.31 square km?`:
```sql
                SELECT "census_ranking" FROM "parishes" WHERE "area_km_2">243.31;
```
## Task
Generate a SQL query to answer the following question:
`What is the verb meaning for Saugen in part 1?`

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

CREATE TABLE "german" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb meaning for Saugen in part 1?`:
```sql
                SELECT "verb_meaning" FROM "german" WHERE "part_1"='saugen';
```
## Task
Generate a SQL query to answer the following question:
`What is the verb meaning for Gaben in part 3?`

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

CREATE TABLE "german" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb meaning for Gaben in part 3?`:
```sql
                SELECT "verb_meaning" FROM "german" WHERE "part_3"='gaben';
```
## Task
Generate a SQL query to answer the following question:
`What is the class for Geholfen Gedroschen in part 4?`

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

CREATE TABLE "german" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class for Geholfen Gedroschen in part 4?`:
```sql
                SELECT "class" FROM "german" WHERE "part_4"='geholfen gedroschen';
```
## Task
Generate a SQL query to answer the following question:
`What is the class for trafen in part 3?`

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

CREATE TABLE "german" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class for trafen in part 3?`:
```sql
                SELECT "class" FROM "german" WHERE "part_3"='trafen';
```
## Task
Generate a SQL query to answer the following question:
`What is the verb meaning for class 4?`

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

CREATE TABLE "german" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the verb meaning for class 4?`:
```sql
                SELECT "verb_meaning" FROM "german" WHERE "class"='4';
```
## Task
Generate a SQL query to answer the following question:
`Who is the prime minister that had a term that ended on 5 March 1930?`

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

CREATE TABLE "1928_1939" (
  "name" text,
  "born_died" text,
  "term_start" text,
  "term_end" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the prime minister that had a term that ended on 5 March 1930?`:
```sql
                SELECT "name" FROM "1928_1939" WHERE "term_end"='5 march 1930';
```
## Task
Generate a SQL query to answer the following question:
`What are the Poles for Season 2006`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Poles for Season 2006`:
```sql
                SELECT "poles" FROM "career_summary" WHERE "season"=2006;
```
## Task
Generate a SQL query to answer the following question:
`If Podiums is 2 and F/Laps are 2, what are the wins?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Podiums is 2 and F/Laps are 2, what are the wins?`:
```sql
                SELECT "wins" FROM "career_summary" WHERE "podiums"='2' AND "f_laps"='2';
```
## Task
Generate a SQL query to answer the following question:
`If the Races is Test Driver what is the Position?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "races" text,
  "wins" text,
  "poles" text,
  "f_laps" text,
  "podiums" text,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Races is Test Driver what is the Position?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "races"='test driver';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Races that has the Team Name of piquet gp, and the Points larger than 24?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Races that has the Team Name of piquet gp, and the Points larger than 24?`:
```sql
                SELECT MIN("races") FROM "career_summary" WHERE "team_name"='piquet gp' AND "points">24;
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the sum of Poles that has the Season of 2005, and the Series of formula three sudamericana?`:
```sql
                SELECT SUM("poles") FROM "career_summary" WHERE "season"='2005' AND "series"='formula three sudamericana';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Series that has the Wins of 0, and the Season of a 2002?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Series that has the Wins of 0, and the Season of a 2002?`:
```sql
                SELECT "series" FROM "career_summary" WHERE "wins"=0 AND "season"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What is Venue, when Game is greater than 18, and when Opponent is Morecambe?`

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

CREATE TABLE "football_league_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Venue, when Game is greater than 18, and when Opponent is Morecambe?`:
```sql
                SELECT "venue" FROM "football_league_two" WHERE "game">18 AND "opponent"='morecambe';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game, when Date is 29 January 2008?`

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

CREATE TABLE "football_league_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game, when Date is 29 January 2008?`:
```sql
                SELECT SUM("game") FROM "football_league_two" WHERE "date"='29 january 2008';
```
## Task
Generate a SQL query to answer the following question:
`What date had a catalog of kicp-1321?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "catalog" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a catalog of kicp-1321?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='kicp-1321';
```
## Task
Generate a SQL query to answer the following question:
`What was the catalog when the label was frontiers records?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "catalog" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the catalog when the label was frontiers records?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "label"='frontiers records';
```
## Task
Generate a SQL query to answer the following question:
`What was the format for the region of europe?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "catalog" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the format for the region of europe?`:
```sql
                SELECT "format" FROM "release_history" WHERE "region"='europe';
```
## Task
Generate a SQL query to answer the following question:
`What was the region when the label was the universal music group?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "catalog" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the region when the label was the universal music group?`:
```sql
                SELECT "region" FROM "release_history" WHERE "label"='universal music group';
```
## Task
Generate a SQL query to answer the following question:
`What was the format when the label was loen entertainment?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "catalog" text,
  "format" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the format when the label was loen entertainment?`:
```sql
                SELECT "format" FROM "release_history" WHERE "label"='loen entertainment';
```
## Task
Generate a SQL query to answer the following question:
`With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?`

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

CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a works number of 40864 for the builder of Baldwin Locomotive Works, the number listed is?`:
```sql
                SELECT "number" FROM "locomotives" WHERE "builder"='baldwin locomotive works' AND "works_number"=40864;
```
## Task
Generate a SQL query to answer the following question:
`Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?`

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

CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Builder H. K. Porter, inc who had a type of 0-4-4 Forney locomotive, has what works number?`:
```sql
                SELECT "works_number" FROM "locomotives" WHERE "type"='0-4-4 forney locomotive' AND "builder"='h. k. porter, inc';
```
## Task
Generate a SQL query to answer the following question:
`Baldwin Locomotive Works, also with works number 40864, is listed as what number?`

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

CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Baldwin Locomotive Works, also with works number 40864, is listed as what number?`:
```sql
                SELECT "number" FROM "locomotives" WHERE "builder"='baldwin locomotive works' AND "works_number"=40864;
```
## Task
Generate a SQL query to answer the following question:
`Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563?`

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

CREATE TABLE "locomotives" (
  "number" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Hinkley Locomotive Works is listed as what number as it has a works number smaller than 1563?`:
```sql
                SELECT "number" FROM "locomotives" WHERE "works_number"<1563 AND "builder"='hinkley locomotive works';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?`:
```sql
                SELECT "score" FROM "itf_singles_finals_18_12_6" WHERE "outcome"='winner' AND "opponent"='angela haynes';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Championship is Mackay?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Championship is Mackay?`:
```sql
                SELECT "date" FROM "itf_singles_finals_18_12_6" WHERE "championship"='mackay';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Championship is Pétange?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Championship is Pétange?`:
```sql
                SELECT "opponent" FROM "itf_singles_finals_18_12_6" WHERE "championship"='pétange';
```
## Task
Generate a SQL query to answer the following question:
`What is Outcome, when Score is 1-6, 3-6?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Outcome, when Score is 1-6, 3-6?`:
```sql
                SELECT "outcome" FROM "itf_singles_finals_18_12_6" WHERE "score"='1-6, 3-6';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Score is 6-3, 4-6, 0-6?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Score is 6-3, 4-6, 0-6?`:
```sql
                SELECT "date" FROM "itf_singles_finals_18_12_6" WHERE "score"='6-3, 4-6, 0-6';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Opponent is Natalia Rizhonkova?`

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

CREATE TABLE "itf_singles_finals_18_12_6" (
  "outcome" text,
  "date" text,
  "championship" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Opponent is Natalia Rizhonkova?`:
```sql
                SELECT "score" FROM "itf_singles_finals_18_12_6" WHERE "opponent"='natalia rizhonkova';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has a Nugget points of 89?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nuggets_points" real,
  "opponents" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has a Nugget points of 89?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "nuggets_points"=89;
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Result of win, and a Streak of won 1, and a Game of 47?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nuggets_points" real,
  "opponents" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Result of win, and a Streak of won 1, and a Game of 47?`:
```sql
                SELECT "record" FROM "game_log" WHERE "result"='win' AND "streak"='won 1' AND "game"=47;
```
## Task
Generate a SQL query to answer the following question:
`How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nuggets_points" real,
  "opponents" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?`:
```sql
                SELECT SUM("opponents") FROM "game_log" WHERE "result"='win' AND "nuggets_points"<115 AND "opponent"='washington';
```
## Task
Generate a SQL query to answer the following question:
`How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nuggets_points" real,
  "opponents" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?`:
```sql
                SELECT COUNT("opponents") FROM "game_log" WHERE "result"='loss' AND "game"<49 AND "nuggets_points"=108;
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "nuggets_points" real,
  "opponents" real,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9?`:
```sql
                SELECT "result" FROM "game_log" WHERE "game"<37 AND "streak"='lost 1' AND "record"='4-9';
```
## Task
Generate a SQL query to answer the following question:
`What round has a name of vladimir morozov?`

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

CREATE TABLE "men" (
  "event" text,
  "date" text,
  "round" text,
  "name" text,
  "nationality" text,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has a name of vladimir morozov?`:
```sql
                SELECT "round" FROM "men" WHERE "name"='vladimir morozov';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the date of 12 december?`

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

CREATE TABLE "men" (
  "event" text,
  "date" text,
  "round" text,
  "name" text,
  "nationality" text,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the date of 12 december?`:
```sql
                SELECT "record" FROM "men" WHERE "date"='12 december';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the name ryan lochte?`

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

CREATE TABLE "men" (
  "event" text,
  "date" text,
  "round" text,
  "name" text,
  "nationality" text,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the name ryan lochte?`:
```sql
                SELECT "date" FROM "men" WHERE "name"='ryan lochte';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the date 15 december, and a round of final?`

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

CREATE TABLE "men" (
  "event" text,
  "date" text,
  "round" text,
  "name" text,
  "nationality" text,
  "time" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the date 15 december, and a round of final?`:
```sql
                SELECT "record" FROM "men" WHERE "date"='15 december' AND "round"='final';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest attendance for week 11?`

### 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 lowest attendance for week 11?`:
```sql
                SELECT MIN("attendance") FROM "schedule" WHERE "week"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of spectators on week 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 total number of spectators on week 4?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week"=4;
```
## Task
Generate a SQL query to answer the following question:
`What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?`

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

CREATE TABLE "connecticut" (
  "poll_source" text,
  "sample_size" real,
  "margin_of_error" real,
  "date" text,
  "democrat" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?`:
```sql
                SELECT "sample_size" FROM "connecticut" WHERE "date"='may 2-7, 2007' AND "democrat"='hillary clinton';
```
## Task
Generate a SQL query to answer the following question:
`Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?`

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

CREATE TABLE "connecticut" (
  "poll_source" text,
  "sample_size" real,
  "margin_of_error" real,
  "date" text,
  "democrat" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?`:
```sql
                SELECT "republican" FROM "connecticut" WHERE "sample_size">1087 AND "democrat"='hillary clinton' AND "margin_of_error"=2.6;
```
## Task
Generate a SQL query to answer the following question:
`Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?`

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

CREATE TABLE "connecticut" (
  "poll_source" text,
  "sample_size" real,
  "margin_of_error" real,
  "date" text,
  "democrat" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?`:
```sql
                SELECT "poll_source" FROM "connecticut" WHERE "democrat"='hillary clinton' AND "margin_of_error"<4.5 AND "republican"='john mccain' AND "date"='may 2-7, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?`

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

CREATE TABLE "connecticut" (
  "poll_source" text,
  "sample_size" real,
  "margin_of_error" real,
  "date" text,
  "democrat" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?`:
```sql
                SELECT COUNT("sample_size") FROM "connecticut" WHERE "poll_source"='rasmussen reports' AND "margin_of_error">4.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?`

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

CREATE TABLE "connecticut" (
  "poll_source" text,
  "sample_size" real,
  "margin_of_error" real,
  "date" text,
  "democrat" text,
  "republican" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?`:
```sql
                SELECT "date" FROM "connecticut" WHERE "republican"='john mccain' AND "poll_source"='quinnipiac' AND "democrat"='barack obama' AND "sample_size">1427;
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Player is Greg Norman?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Player is Greg Norman?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "player"='greg norman';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?`:
```sql
                SELECT "score" FROM "final_round" WHERE "money"='32,200' AND "player"='chip beck';
```
## Task
Generate a SQL query to answer the following question:
`What is Money ( $ ), when Player is Greg Norman?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Money ( $ ), when Player is Greg Norman?`:
```sql
                SELECT "money" FROM "final_round" WHERE "player"='greg norman';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Country is United States, and when Score is 73-76-72-66=287?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Country is United States, and when Score is 73-76-72-66=287?`:
```sql
                SELECT "player" FROM "final_round" WHERE "country"='united states' AND "score"='73-76-72-66=287';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=283?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=283?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "money"='playoff' AND "score"='68-73-77-65=283';
```
## Task
Generate a SQL query to answer the following question:
`What country was Ernie Els from?`

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

CREATE TABLE "second_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 country was Ernie Els from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='ernie els';
```
## Task
Generate a SQL query to answer the following question:
`What was the par for the t5 place player Steve Jones?`

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

CREATE TABLE "second_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 was the par for the t5 place player Steve Jones?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "player"='steve jones';
```
## Task
Generate a SQL query to answer the following question:
`What is the title for Hui that ruled from 864 BC?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for Hui that ruled from 864 BC?`:
```sql
                SELECT "title" FROM "vassal_states" WHERE "name"='hui' AND "from"='864 bc';
```
## Task
Generate a SQL query to answer the following question:
`What type is You from the state of Chen?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type is You from the state of Chen?`:
```sql
                SELECT "type" FROM "vassal_states" WHERE "state"='chen' AND "name"='you';
```
## Task
Generate a SQL query to answer the following question:
`Xiong Yan the Younger of the house of Mi ruled from what year?`

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

CREATE TABLE "vassal_states" (
  "state" text,
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Xiong Yan the Younger of the house of Mi ruled from what year?`:
```sql
                SELECT "from" FROM "vassal_states" WHERE "royal_house"='mi' AND "name"='xiong yan the younger';
```
## Task
Generate a SQL query to answer the following question:
`What country had the runner abubaker kaki khamis in lane 5?`

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

CREATE TABLE "semifinals" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country had the runner abubaker kaki khamis in lane 5?`:
```sql
                SELECT "country" FROM "semifinals" WHERE "lane"=5 AND "name"='abubaker kaki khamis';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest heat for a lane past 1 and mark of 1:48.61?`

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

CREATE TABLE "semifinals" (
  "heat" real,
  "lane" real,
  "name" text,
  "country" text,
  "mark" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest heat for a lane past 1 and mark of 1:48.61?`:
```sql
                SELECT MAX("heat") FROM "semifinals" WHERE "lane">1 AND "mark"='1:48.61';
```
## Task
Generate a SQL query to answer the following question:
`What is average for Benito Lorenzi league when total is smaller than 143?`

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

CREATE TABLE "goals" (
  "rank" real,
  "name" text,
  "years" text,
  "league" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is average for Benito Lorenzi league when total is smaller than 143?`:
```sql
                SELECT AVG("league") FROM "goals" WHERE "name"='benito lorenzi' AND "total"<143;
```
## Task
Generate a SQL query to answer the following question:
`Which league has total smaller than 284, with Sandro Mazzola league?`

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

CREATE TABLE "goals" (
  "rank" real,
  "name" text,
  "years" text,
  "league" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which league has total smaller than 284, with Sandro Mazzola league?`:
```sql
                SELECT MIN("league") FROM "goals" WHERE "total"<284 AND "name"='sandro mazzola';
```