cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the result of the match with an attendance of 73,855?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "rank_num" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match with an attendance of 73,855?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='73,855';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the match on October 19?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponentnum" text,
  "rank_num" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the match on October 19?`:
```sql
                SELECT "rank_num" FROM "schedule" WHERE "date"='october 19';
```
## Task
Generate a SQL query to answer the following question:
`Who was the scorer when the opponent was aberdeen?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the scorer when the opponent was aberdeen?`:
```sql
                SELECT "scorers" FROM "league_cup" WHERE "opponent"='aberdeen';
```
## Task
Generate a SQL query to answer the following question:
`When was the scorer mccoist (3), johnston, butcher, steven?`

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

CREATE TABLE "league_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the scorer mccoist (3), johnston, butcher, steven?`:
```sql
                SELECT "date" FROM "league_cup" WHERE "scorers"='mccoist (3), johnston, butcher, steven';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Visitor is "Pittsburgh", and when Points is greater than 18?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Visitor is "Pittsburgh", and when Points is greater than 18?`:
```sql
                SELECT "score" FROM "game_log" WHERE "visitor"='pittsburgh' AND "points">18;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Points, when Home is "Pittsburgh", when Date is "December 21", and when Attendance is greater than 5,307?`:
```sql
                SELECT SUM("points") FROM "game_log" WHERE "home"='pittsburgh' AND "date"='december 21' AND "attendance">'5,307';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Points, when Home is "Boston"?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Points, when Home is "Boston"?`:
```sql
                SELECT MIN("points") FROM "game_log" WHERE "home"='boston';
```
## Task
Generate a SQL query to answer the following question:
`what is the team when the high points is by charlie villanueva (24)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the team when the high points is by charlie villanueva (24)?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_points"='charlie villanueva (24)';
```
## Task
Generate a SQL query to answer the following question:
`what is the location attendance when the high assists is by ramon sessions (8) on march 30?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location attendance when the high assists is by ramon sessions (8) on march 30?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='ramon sessions (8)' AND "date"='march 30';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high rebounds when the score was l 85–102 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high rebounds when the score was l 85–102 (ot)?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "score"='l 85–102 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`what is the location attendance when the score is w 86–77 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location attendance when the score is w 86–77 (ot)?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "score"='w 86–77 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when ramon sessions (8) had the high assists, richard jefferson (29) had the high points and the score was w 107–78 (ot)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "high_assists"='ramon sessions (8)' AND "high_points"='richard jefferson (29)' AND "score"='w 107–78 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`who had the high rebounds when the team was @ toronto?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the high rebounds when the team was @ toronto?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ toronto';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pole with a Flap larger than 5, and a before race 155?`

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

CREATE TABLE "by_season" (
  "season" text,
  "race" real,
  "podium" real,
  "pole" real,
  "f_lap" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pole with a Flap larger than 5, and a before race 155?`:
```sql
                SELECT MIN("pole") FROM "by_season" WHERE "f_lap">5 AND "race"<155;
```
## Task
Generate a SQL query to answer the following question:
`What was Fred Couples' score?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Fred Couples' score?`:
```sql
                SELECT COUNT("score") FROM "first_round" WHERE "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`When Payne Stewart of the United States scored higher than 69, what was the To Par?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Payne Stewart of the United States scored higher than 69, what was the To Par?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "country"='united states' AND "score">69 AND "player"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 population in 함흥 (Ham Hyung)?`

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

CREATE TABLE "north_korea_dprk" (
  "city" text,
  "korean" text,
  "hancha" text,
  "province" text,
  "population_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 population in 함흥 (Ham Hyung)?`:
```sql
                SELECT SUM("population_2008") FROM "north_korea_dprk" WHERE "korean"='함흥';
```
## Task
Generate a SQL query to answer the following question:
`what is the mountain peak when the location is 53.1370°n 119.2667°w?`

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

CREATE TABLE "the_200_most_topographically_prominent_m" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mountain peak when the location is 53.1370°n 119.2667°w?`:
```sql
                SELECT "mountain_peak" FROM "the_200_most_topographically_prominent_m" WHERE "location"='53.1370°n 119.2667°w';
```
## Task
Generate a SQL query to answer the following question:
`what is the region when the location is 49.7462°n 117.1419°w?`

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

CREATE TABLE "the_200_most_topographically_prominent_m" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the region when the location is 49.7462°n 117.1419°w?`:
```sql
                SELECT "region" FROM "the_200_most_topographically_prominent_m" WHERE "location"='49.7462°n 117.1419°w';
```
## Task
Generate a SQL query to answer the following question:
`what is the rank when the mountain peak is isthmus peak?`

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

CREATE TABLE "the_200_most_topographically_prominent_m" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the rank when the mountain peak is isthmus peak?`:
```sql
                SELECT "rank" FROM "the_200_most_topographically_prominent_m" WHERE "mountain_peak"='isthmus peak';
```
## Task
Generate a SQL query to answer the following question:
`what is the mountain range when the region is british columbia and mountain pea is mount edziza?`

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

CREATE TABLE "the_200_most_topographically_prominent_m" (
  "rank" real,
  "mountain_peak" text,
  "region" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mountain range when the region is british columbia and mountain pea is mount edziza?`:
```sql
                SELECT "mountain_range" FROM "the_200_most_topographically_prominent_m" WHERE "region"='british columbia' AND "mountain_peak"='mount edziza';
```
## Task
Generate a SQL query to answer the following question:
`What is the Born-Died dates of Xhafer Bej Ypi?`

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

CREATE TABLE "1914_1925" (
  "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 `What is the Born-Died dates of Xhafer Bej Ypi?`:
```sql
                SELECT "born_died" FROM "1914_1925" WHERE "name"='xhafer bej ypi';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of the Prime Minister with a Born-Died of 1873–1933?`

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

CREATE TABLE "1914_1925" (
  "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 `What is the Name of the Prime Minister with a Born-Died of 1873–1933?`:
```sql
                SELECT "name" FROM "1914_1925" WHERE "born_died"='1873–1933';
```
## Task
Generate a SQL query to answer the following question:
`What is the Term Start date of the Progressive Party Prime Minister?`

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

CREATE TABLE "1914_1925" (
  "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 `What is the Term Start date of the Progressive Party Prime Minister?`:
```sql
                SELECT "term_start" FROM "1914_1925" WHERE "political_party"='progressive party';
```
## Task
Generate a SQL query to answer the following question:
`What was the lead margin when Schweitzer had 55% and Jones had 2%?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_brian_schweitzer" text,
  "republican_roy_brown" text,
  "libertarian_stan_jones" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lead margin when Schweitzer had 55% and Jones had 2%?`:
```sql
                SELECT SUM("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_brian_schweitzer"='55%' AND "libertarian_stan_jones"='2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage for Brown when the lead margin is 26?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_brian_schweitzer" text,
  "republican_roy_brown" text,
  "libertarian_stan_jones" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage for Brown when the lead margin is 26?`:
```sql
                SELECT "republican_roy_brown" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin"=26;
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage for Schweitzer when the lead margin is 29?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_brian_schweitzer" text,
  "republican_roy_brown" text,
  "libertarian_stan_jones" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage for Schweitzer when the lead margin is 29?`:
```sql
                SELECT "democrat_brian_schweitzer" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin"=29;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest lead margin when Schweitzer has 55% and Jones is not an option?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "poll_source" text,
  "dates_administered" text,
  "democrat_brian_schweitzer" text,
  "republican_roy_brown" text,
  "libertarian_stan_jones" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest lead margin when Schweitzer has 55% and Jones is not an option?`:
```sql
                SELECT MAX("lead_margin") FROM "opinion_polling_for_the_united_states_gu" WHERE "democrat_brian_schweitzer"='55%' AND "libertarian_stan_jones"='not an option';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Date is "November 22"?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Date is "November 22"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='november 22';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Attendance is greater than 20,066, and when Visitor is "Boston Bruins"?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Attendance is greater than 20,066, and when Visitor is "Boston Bruins"?`:
```sql
                SELECT "date" FROM "game_log" WHERE "attendance">'20,066' AND "visitor"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance before week 1?`

### 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 attendance before week 1?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the match with a winning score of –7 (67-72-69-69=277)?`

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

CREATE TABLE "lpga_tour_wins_13" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the match with a winning score of –7 (67-72-69-69=277)?`:
```sql
                SELECT "date" FROM "lpga_tour_wins_13" WHERE "winning_score"='–7 (67-72-69-69=277)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team in the match with an away team of Millwall?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team in the match with an away team of Millwall?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "away_team"='millwall';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the match that had a home team of Kidderminster Harriers?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for the match that had a home team of Kidderminster Harriers?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "home_team"='kidderminster harriers';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a home team of Huddersfield Town and was a replay tie?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the match with a home team of Huddersfield Town and was a replay tie?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "tie_no"='replay' AND "home_team"='huddersfield town';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for tie number 11?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for tie number 11?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='11';
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider with 120.953 mph speed?`

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

CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
  "rank" real,
  "rider" text,
  "team" text,
  "time" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider with 120.953 mph speed?`:
```sql
                SELECT "rider" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "speed"='120.953 mph';
```
## Task
Generate a SQL query to answer the following question:
`What time did rider steve plater have?`

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

CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
  "rank" real,
  "rider" text,
  "team" text,
  "time" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time did rider steve plater have?`:
```sql
                SELECT "time" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "rider"='steve plater';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of rider gary johnson, who had a speed of 120.979 mph?`

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

CREATE TABLE "race_2_1000cc_superbike_race_final_stand" (
  "rank" real,
  "rider" text,
  "team" text,
  "time" text,
  "speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of rider gary johnson, who had a speed of 120.979 mph?`:
```sql
                SELECT "rank" FROM "race_2_1000cc_superbike_race_final_stand" WHERE "speed"='120.979 mph' AND "rider"='gary johnson';
```
## Task
Generate a SQL query to answer the following question:
`What club has less than 8 draws, 37 points, and less than 71 goals?`

### 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 `What club has less than 8 draws, 37 points, and less than 71 goals?`:
```sql
                SELECT "club" FROM "group_ii" WHERE "draws"<8 AND "points"=37 AND "goals_for"<71;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?`

### 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 `What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?`:
```sql
                SELECT COUNT("goals_for") FROM "group_ii" WHERE "draws"=3 AND "losses">18 AND "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of goals against when the played is more than 38?`

### 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 `What is the number of goals against when the played is more than 38?`:
```sql
                SELECT COUNT("goals_against") FROM "group_ii" WHERE "played">38;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of draws when played is less than 38?`

### 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 `What is the number of draws when played is less than 38?`:
```sql
                SELECT COUNT("draws") FROM "group_ii" WHERE "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`What is the points when played is less than 38?`

### 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 `What is the points when played is less than 38?`:
```sql
                SELECT SUM("points") FROM "group_ii" WHERE "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`Which Transfer window has a Name of tofas?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Transfer window has a Name of tofas?`:
```sql
                SELECT "transfer_window" FROM "squad_changes" WHERE "name"='tofas';
```
## Task
Generate a SQL query to answer the following question:
`Which Type has a Transfer fee of free, and a Name of kapetanos?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Transfer fee of free, and a Name of kapetanos?`:
```sql
                SELECT "type" FROM "squad_changes" WHERE "transfer_fee"='free' AND "name"='kapetanos';
```
## Task
Generate a SQL query to answer the following question:
`Which Type has a Name of edson ratinho?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Type has a Name of edson ratinho?`:
```sql
                SELECT "type" FROM "squad_changes" WHERE "name"='edson ratinho';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Type of loan, and a Moving to of apollon kalamaria?`

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

CREATE TABLE "squad_changes" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Type of loan, and a Moving to of apollon kalamaria?`:
```sql
                SELECT "name" FROM "squad_changes" WHERE "type"='loan' AND "moving_to"='apollon kalamaria';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Circuit is August 16?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Circuit is August 16?`:
```sql
                SELECT "location" FROM "calendar_and_results" WHERE "circuit"='august 16';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?`:
```sql
                SELECT "location" FROM "calendar_and_results" WHERE "fastest_lap"='ben spies' AND "pole_position"='ben spies' AND "winner"='ben spies' AND "date"='tooele, utah';
```
## Task
Generate a SQL query to answer the following question:
`What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19?`:
```sql
                SELECT "fastest_lap" FROM "calendar_and_results" WHERE "date"='leeds, alabama' AND "circuit"='april 19';
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Circuit is June 8?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Circuit is June 8?`:
```sql
                SELECT "winner" FROM "calendar_and_results" WHERE "circuit"='june 8';
```
## Task
Generate a SQL query to answer the following question:
`What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pole Position, when Fastest Lap is Ben Spies, and when Location is Barber Motorsports Park?`:
```sql
                SELECT "pole_position" FROM "calendar_and_results" WHERE "fastest_lap"='ben spies' AND "location"='barber motorsports park';
```
## Task
Generate a SQL query to answer the following question:
`What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?`

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

CREATE TABLE "calendar_and_results" (
  "circuit" text,
  "location" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winner, when Pole Position is Ben Spies, and when Date is Elkhart Lake, Wisconsin?`:
```sql
                SELECT "winner" FROM "calendar_and_results" WHERE "pole_position"='ben spies' AND "date"='elkhart lake, wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?`

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

CREATE TABLE "doubles_12_6_6" (
  "outcome" text,
  "year" real,
  "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 court in the match with a Score of 4–6, 6–4, 3–6?`:
```sql
                SELECT "surface" FROM "doubles_12_6_6" WHERE "score"='4–6, 6–4, 3–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Year larger than 2010?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Year larger than 2010?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year">2010;
```
## Task
Generate a SQL query to answer the following question:
`Which Laps has a Year of 2007?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps has a Year of 2007?`:
```sql
                SELECT AVG("laps") FROM "24_hours_of_le_mans_results" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`What was the tie number with the home team of Swindon Town?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number with the home team of Swindon Town?`:
```sql
                SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='swindon town';
```
## Task
Generate a SQL query to answer the following question:
`What was the tie number with the away team of Sheffield Wednesday?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tie number with the away team of Sheffield Wednesday?`:
```sql
                SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='sheffield wednesday';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the match with tie number 23?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the match with tie number 23?`:
```sql
                SELECT "score" FROM "third_round_proper" WHERE "tie_no"='23';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the match against Arsenal?`

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

CREATE TABLE "third_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the match against Arsenal?`:
```sql
                SELECT "home_team" FROM "third_round_proper" WHERE "away_team"='arsenal';
```
## Task
Generate a SQL query to answer the following question:
`Which player has United States as the country, more money ($) than 535,000, t10 as the place, with 73-68-73-74=288 as the score?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has United States as the country, more money ($) than 535,000, t10 as the place, with 73-68-73-74=288 as the score?`:
```sql
                SELECT "player" FROM "final_round" WHERE "country"='united states' AND "money">'535,000' AND "place"='t10' AND "score"='73-68-73-74=288';
```
## Task
Generate a SQL query to answer the following question:
`Which place is payne stewart, the player in?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which place is payne stewart, the player in?`:
```sql
                SELECT "place" FROM "final_round" WHERE "player"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`What player has +7 as the to par, and 69-69-75-74=287 as the score?`

### 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" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has +7 as the to par, and 69-69-75-74=287 as the score?`:
```sql
                SELECT "player" FROM "final_round" WHERE "to_par"='+7' AND "score"='69-69-75-74=287';
```
## Task
Generate a SQL query to answer the following question:
`Which tournaments was Ryan Palmer in as a runner-up?`

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

CREATE TABLE "pga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournaments was Ryan Palmer in as a runner-up?`:
```sql
                SELECT "tournament" FROM "pga_tour_8" WHERE "runner_s_up"='ryan palmer';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory for the Players Championship tournament?`

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

CREATE TABLE "pga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory for the Players Championship tournament?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_8" WHERE "tournament"='the players championship';
```
## Task
Generate a SQL query to answer the following question:
`What tournament was Kirk Triplett a runner-up in?`

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

CREATE TABLE "pga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament was Kirk Triplett a runner-up in?`:
```sql
                SELECT "tournament" FROM "pga_tour_8" WHERE "runner_s_up"='kirk triplett';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score for the B.C. Open 1 tournament?`

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

CREATE TABLE "pga_tour_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score for the B.C. Open 1 tournament?`:
```sql
                SELECT "winning_score" FROM "pga_tour_8" WHERE "tournament"='b.c. open 1';
```
## Task
Generate a SQL query to answer the following question:
`What country is Lee Janzen from?`

### 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 country is Lee Janzen from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='lee janzen';
```
## Task
Generate a SQL query to answer the following question:
`When Tom Watson placed t6, what was the 2 par?`

### 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 `When Tom Watson placed t6, what was the 2 par?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='t6' AND "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`Who had a score of 70-69-70=209?`

### 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 `Who had a score of 70-69-70=209?`:
```sql
                SELECT "player" FROM "third_round" WHERE "score"='70-69-70=209';
```
## Task
Generate a SQL query to answer the following question:
`What was the Opponent in the Tarragona Tournament?`

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

CREATE TABLE "singles_12_8" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Opponent in the Tarragona Tournament?`:
```sql
                SELECT "opponent" FROM "singles_12_8" WHERE "tournament"='tarragona';
```
## Task
Generate a SQL query to answer the following question:
`What Tournament's Score was 6–2, 4–6, 6–4?`

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

CREATE TABLE "singles_12_8" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament's Score was 6–2, 4–6, 6–4?`:
```sql
                SELECT "tournament" FROM "singles_12_8" WHERE "score"='6–2, 4–6, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`On what Date was the match with a Score of 6-2, 6-4?`

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

CREATE TABLE "singles_12_8" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the match with a Score of 6-2, 6-4?`:
```sql
                SELECT "date" FROM "singles_12_8" WHERE "score"='6-2, 6-4';
```
## Task
Generate a SQL query to answer the following question:
`How many years had the best actress in a Revival category?`

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

CREATE TABLE "awards_and_honors" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years had the best actress in a Revival category?`:
```sql
                SELECT COUNT("year") FROM "awards_and_honors" WHERE "category"='best actress in a revival';
```
## Task
Generate a SQL query to answer the following question:
`What categories had a Nominated work of yerma before 1992?`

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

CREATE TABLE "awards_and_honors" (
  "year" real,
  "award" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What categories had a Nominated work of yerma before 1992?`:
```sql
                SELECT "category" FROM "awards_and_honors" WHERE "year"<1992 AND "nominated_work"='yerma';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the shot volume (cm3) less than 172.76?`

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

CREATE TABLE "english_gun_classes_c_1800_citation_need" (
  "gun_class_pdr" real,
  "shot_diameter_cm" real,
  "shot_volume_cm_3" real,
  "approx_service_bore_cm" real,
  "mass_of_projectile_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the shot volume (cm3) less than 172.76?`:
```sql
                SELECT COUNT("shot_diameter_cm") FROM "english_gun_classes_c_1800_citation_need" WHERE "shot_volume_cm_3"<172.76;
```