cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Bronze, when Gold is less than 1, when Total is greater than 1, and when Rank is 10?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "gold"<1 AND "total">1 AND "rank"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Bronze, when Rank is greater than 6, when Nation is Italy (ITA), and when Total is less than 1?`:
```sql
                SELECT AVG("bronze") FROM "medal_table" WHERE "rank">6 AND "nation"='italy (ita)' AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Total, when Silver is greater than 1, when Rank is 9, and when Bronze is greater than 0?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "silver">1 AND "rank"=9 AND "bronze">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold, when Total is 2, when Silver is less than 1, and when Rank is greater than 5?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "total"=2 AND "silver"<1 AND "rank">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Rank, when Bronze is less than 1, when Nation is Switzerland (SUI), and when Total is less than 2?`:
```sql
                SELECT SUM("rank") FROM "medal_table" WHERE "bronze"<1 AND "nation"='switzerland (sui)' AND "total"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Total, when Silver is greater than 1, when Nation is Germany (GER), and when Gold is less than 1?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "silver">1 AND "nation"='germany (ger)' AND "gold"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is "7", and when Score is "73-72-67-75=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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when To Par is "7", and when Score is "73-72-67-75=287"?`:
```sql
                SELECT "player" FROM "final_round" WHERE "to_par"=7 AND "score"='73-72-67-75=287';
```
## Task
Generate a SQL query to answer the following question:
`What is the average To Par, when Player is "Billy Casper"?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average To Par, when Player is "Billy Casper"?`:
```sql
                SELECT AVG("to_par") FROM "final_round" WHERE "player"='billy casper';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Money ( $ ), when To Par is less than 2?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Money ( $ ), when To Par is less than 2?`:
```sql
                SELECT MAX("money") FROM "final_round" WHERE "to_par"<2;
```
## Task
Generate a SQL query to answer the following question:
`What event in guam did Tetsuji Kato win against patrick madayag?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event in guam did Tetsuji Kato win against patrick madayag?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "location"='guam' AND "opponent"='patrick madayag';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the fight when Tetsuji Kato's record was 19-9?`

### 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,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the fight when Tetsuji Kato's record was 19-9?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='19-9';
```
## Task
Generate a SQL query to answer the following question:
`How many receptions were smaller than 7?`

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

CREATE TABLE "receiving" (
  "player" text,
  "games" real,
  "reception" real,
  "yards" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many receptions were smaller than 7?`:
```sql
                SELECT COUNT("reception") FROM "receiving" WHERE "long"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?`

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

CREATE TABLE "receiving" (
  "player" text,
  "games" real,
  "reception" real,
  "yards" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average yards for Jimmie Giles in a game larger than 15 and reception larger than 2?`:
```sql
                SELECT AVG("yards") FROM "receiving" WHERE "games">15 AND "reception">2 AND "player"='jimmie giles';
```
## Task
Generate a SQL query to answer the following question:
`What year had a league position of 8/12?`

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

CREATE TABLE "domestic_records" (
  "year" text,
  "league_position" text,
  "league" text,
  "domestic_cup" text,
  "cup_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a league position of 8/12?`:
```sql
                SELECT "year" FROM "domestic_records" WHERE "league_position"='8/12';
```
## Task
Generate a SQL query to answer the following question:
`What league has a position of 8/13?`

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

CREATE TABLE "domestic_records" (
  "year" text,
  "league_position" text,
  "league" text,
  "domestic_cup" text,
  "cup_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What league has a position of 8/13?`:
```sql
                SELECT "league" FROM "domestic_records" WHERE "league_position"='8/13';
```
## Task
Generate a SQL query to answer the following question:
`What year did the malaysia premier league get a position of 8/12?`

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

CREATE TABLE "domestic_records" (
  "year" text,
  "league_position" text,
  "league" text,
  "domestic_cup" text,
  "cup_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the malaysia premier league get a position of 8/12?`:
```sql
                SELECT "year" FROM "domestic_records" WHERE "league"='malaysia premier league' AND "league_position"='8/12';
```
## Task
Generate a SQL query to answer the following question:
`What year had a cup position of round 1 and a league position of 5/12?`

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

CREATE TABLE "domestic_records" (
  "year" text,
  "league_position" text,
  "league" text,
  "domestic_cup" text,
  "cup_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a cup position of round 1 and a league position of 5/12?`:
```sql
                SELECT "year" FROM "domestic_records" WHERE "cup_position"='round 1' AND "league_position"='5/12';
```
## Task
Generate a SQL query to answer the following question:
`What year had a domestic cup of singapore cup?`

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

CREATE TABLE "domestic_records" (
  "year" text,
  "league_position" text,
  "league" text,
  "domestic_cup" text,
  "cup_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a domestic cup of singapore cup?`:
```sql
                SELECT "year" FROM "domestic_records" WHERE "domestic_cup"='singapore cup';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have Rider of olivier jacque, and a Grid larger than 7?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have Rider of olivier jacque, and a Grid larger than 7?`:
```sql
                SELECT SUM("laps") FROM "moto_gp_classification" WHERE "rider"='olivier jacque' AND "grid">7;
```
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?`:
```sql
                SELECT MAX("laps") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "grid"<16;
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?`:
```sql
                SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid">9 AND "time_retired"='+32.354';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Date is Oct 19?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Date is Oct 19?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "date"='oct 19';
```
## Task
Generate a SQL query to answer the following question:
`What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?`:
```sql
                SELECT "attendance" FROM "season_schedule" WHERE "opponent"='montreal alouettes' AND "date"='oct 4';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Result is Win, and when Date is Aug 7?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Result is Win, and when Date is Aug 7?`:
```sql
                SELECT "opponent" FROM "season_schedule" WHERE "result"='win' AND "date"='aug 7';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the score is 115-93?`

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

CREATE TABLE "round_9" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the score is 115-93?`:
```sql
                SELECT "date" FROM "round_9" WHERE "score"='115-93';
```
## Task
Generate a SQL query to answer the following question:
`what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?`

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

CREATE TABLE "round_9" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?`:
```sql
                SELECT AVG("crowd") FROM "round_9" WHERE "away_team"='new zealand breakers' AND "venue"='cairns convention centre';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the home team wollongong hawks?`

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

CREATE TABLE "round_9" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the home team wollongong hawks?`:
```sql
                SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='wollongong hawks';
```
## Task
Generate a SQL query to answer the following question:
`what is the date when the venue is gold coast convention centre?`

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

CREATE TABLE "round_9" (
  "date" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "venue" text,
  "crowd" real,
  "box_score" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the venue is gold coast convention centre?`:
```sql
                SELECT "date" FROM "round_9" WHERE "venue"='gold coast convention centre';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has Points smaller than 67, and a Home of calgary flames?`

### 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 `Which Score has Points smaller than 67, and a Home of calgary flames?`:
```sql
                SELECT "score" FROM "game_log" WHERE "points"<67 AND "home"='calgary flames';
```
## Task
Generate a SQL query to answer the following question:
`Whic Date has a Score of 4–2?`

### 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 `Whic Date has a Score of 4–2?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='4–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Record of 29–18–6?`

### 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 `Which Decision has a Record of 29–18–6?`:
```sql
                SELECT "decision" FROM "game_log" WHERE "record"='29–18–6';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 4–2?`

### 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 `Which Date has a Score of 4–2?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='4–2';
```
## Task
Generate a SQL query to answer the following question:
`How many losses did the coach who served under 1 season and in 1975 have?`

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

CREATE TABLE "head_coaches" (
  "name" text,
  "years" text,
  "seasons" real,
  "lost" real,
  "pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the coach who served under 1 season and in 1975 have?`:
```sql
                SELECT COUNT("lost") FROM "head_coaches" WHERE "years"='1975' AND "seasons"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of seasons coached by Kathy Graham?`

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

CREATE TABLE "head_coaches" (
  "name" text,
  "years" text,
  "seasons" real,
  "lost" real,
  "pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of seasons coached by Kathy Graham?`:
```sql
                SELECT MIN("seasons") FROM "head_coaches" WHERE "name"='kathy graham';
```
## Task
Generate a SQL query to answer the following question:
`What is the result on September 25, 1966?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result on September 25, 1966?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='september 25, 1966';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game on November 20, 1966 after week 10?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game on November 20, 1966 after week 10?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week">10 AND "date"='november 20, 1966';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on week 2?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on week 2?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on November 20, 1966?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on November 20, 1966?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1966';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game with the NY Islanders as home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game with the NY Islanders as home team?`:
```sql
                SELECT COUNT("attendance") FROM "regular_season" WHERE "home"='ny islanders';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against seattle?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" 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 was the date of the game against seattle?`:
```sql
                SELECT "date" FROM "regular_season" WHERE "opponent"='seattle';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opponents during game 30?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" 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 were the opponents during game 30?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "game"=30;
```
## Task
Generate a SQL query to answer the following question:
`What was the record during the game with a score of 78-59?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" 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 was the record during the game with a score of 78-59?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "score"='78-59';
```
## Task
Generate a SQL query to answer the following question:
`Which mlb team is located in maryland?`

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

CREATE TABLE "teams" (
  "team" text,
  "city" text,
  "state_province" text,
  "league" text,
  "est" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mlb team is located in maryland?`:
```sql
                SELECT "team" FROM "teams" WHERE "state_province"='maryland' AND "league"='mlb';
```
## Task
Generate a SQL query to answer the following question:
`What team is located in brooklyn?`

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

CREATE TABLE "teams" (
  "team" text,
  "city" text,
  "state_province" text,
  "league" text,
  "est" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is located in brooklyn?`:
```sql
                SELECT "team" FROM "teams" WHERE "city"='brooklyn';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the cfl team in edmonton, alberta established?`

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

CREATE TABLE "teams" (
  "team" text,
  "city" text,
  "state_province" text,
  "league" text,
  "est" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the cfl team in edmonton, alberta established?`:
```sql
                SELECT "est" FROM "teams" WHERE "state_province"='alberta' AND "league"='cfl' AND "city"='edmonton';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the NFL team in chicago illinois established?`

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

CREATE TABLE "teams" (
  "team" text,
  "city" text,
  "state_province" text,
  "league" text,
  "est" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the NFL team in chicago illinois established?`:
```sql
                SELECT "est" FROM "teams" WHERE "state_province"='illinois' AND "city"='chicago' AND "league"='nfl';
```
## Task
Generate a SQL query to answer the following question:
`Which team is located in missouri and was established in 1963?`

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

CREATE TABLE "teams" (
  "team" text,
  "city" text,
  "state_province" text,
  "league" text,
  "est" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is located in missouri and was established in 1963?`:
```sql
                SELECT "team" FROM "teams" WHERE "state_province"='missouri' AND "est"='1963';
```
## Task
Generate a SQL query to answer the following question:
`Which event was Ye Shiwen in?`

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

CREATE TABLE "women" (
  "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 `Which event was Ye Shiwen in?`:
```sql
                SELECT "event" FROM "women" WHERE "name"='ye shiwen';
```
## Task
Generate a SQL query to answer the following question:
`Who had a time of 26.11?`

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

CREATE TABLE "women" (
  "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 `Who had a time of 26.11?`:
```sql
                SELECT "name" FROM "women" WHERE "time"='26.11';
```
## Task
Generate a SQL query to answer the following question:
`What was the date in which the time was 2:16.08?`

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

CREATE TABLE "women" (
  "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 was the date in which the time was 2:16.08?`:
```sql
                SELECT "date" FROM "women" WHERE "time"='2:16.08';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the women's 200m medley?`

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

CREATE TABLE "women" (
  "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 `Who was in the women's 200m medley?`:
```sql
                SELECT "name" FROM "women" WHERE "event"='women''s 200m medley';
```
## Task
Generate a SQL query to answer the following question:
`What was the nationality of the swimmer in the semifinal with a time of 29.51?`

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

CREATE TABLE "women" (
  "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 was the nationality of the swimmer in the semifinal with a time of 29.51?`:
```sql
                SELECT "nationality" FROM "women" WHERE "round"='semifinal' AND "time"='29.51';
```
## Task
Generate a SQL query to answer the following question:
`What country scored 67?`

### 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 country scored 67?`:
```sql
                SELECT "country" FROM "first_round" WHERE "score"=67;
```
## Task
Generate a SQL query to answer the following question:
`What was the to par for Tino Schuster?`

### 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 the to par for Tino Schuster?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "player"='tino schuster';
```
## Task
Generate a SQL query to answer the following question:
`What country has player Scott Verplank?`

### 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 country has player Scott Verplank?`:
```sql
                SELECT "country" FROM "first_round" WHERE "player"='scott verplank';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of glycosylase that has an E. coli of Muty?`

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

CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
  "e_coli" text,
  "yeast_s_cerevisiae" text,
  "human" text,
  "type" text,
  "substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of glycosylase that has an E. coli of Muty?`:
```sql
                SELECT "type" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "e_coli"='muty';
```
## Task
Generate a SQL query to answer the following question:
`Which E. coli has a human value of HNEIL1?`

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

CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
  "e_coli" text,
  "yeast_s_cerevisiae" text,
  "human" text,
  "type" text,
  "substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which E. coli has a human value of HNEIL1?`:
```sql
                SELECT "e_coli" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "human"='hneil1';
```
## Task
Generate a SQL query to answer the following question:
`Which E. coli has a substrate of uracil?`

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

CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
  "e_coli" text,
  "yeast_s_cerevisiae" text,
  "human" text,
  "type" text,
  "substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which E. coli has a substrate of uracil?`:
```sql
                SELECT "e_coli" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "substrates"='uracil';
```
## Task
Generate a SQL query to answer the following question:
`The tko (doctor stoppage) method was used in a loss against which opponent?`

### 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 `The tko (doctor stoppage) method was used in a loss against which opponent?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='tko (doctor stoppage)' AND "res"='loss';
```
## Task
Generate a SQL query to answer the following question:
`How many total rounds used the submission (choke) method?`

### 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 `How many total rounds used the submission (choke) method?`:
```sql
                SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "method"='submission (choke)';
```
## Task
Generate a SQL query to answer the following question:
`What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?`

### 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 was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='tko (doctor stoppage)' AND "record"='9-0';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest round number at the UFC 16 event with a record of 19-1-1?`

### 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 was the lowest round number at the UFC 16 event with a record of 19-1-1?`:
```sql
                SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc 16' AND "record"='19-1-1';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "eagles_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091?`:
```sql
                SELECT MAX("opponents") FROM "schedule" WHERE "game"=9 AND "attendance"<'60,091';
```
## Task
Generate a SQL query to answer the following question:
`What event did tedd williams fight bill parker?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What event did tedd williams fight bill parker?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='bill parker';
```
## Task
Generate a SQL query to answer the following question:
`What round did the fight against travis fulton last?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the fight against travis fulton last?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='travis fulton';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the player scott deibert?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the player scott deibert?`:
```sql
                SELECT COUNT("pick_num") FROM "round_three" WHERE "player"='scott deibert';
```
## Task
Generate a SQL query to answer the following question:
`what is the pick # for william loftus?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pick # for william loftus?`:
```sql
                SELECT "pick_num" FROM "round_three" WHERE "player"='william loftus';
```
## Task
Generate a SQL query to answer the following question:
`what is the cfl team for position d?`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the cfl team for position d?`:
```sql
                SELECT "cfl_team" FROM "round_three" WHERE "position"='d';
```
## Task
Generate a SQL query to answer the following question:
`what was the total for the Wolverhampton Wanderers?`

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

CREATE TABLE "first_division" (
  "scorer" text,
  "club" text,
  "league_goals" text,
  "fa_cup_goals" real,
  "league_cup_goals" real,
  "euro_competitions" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was the total for the Wolverhampton Wanderers?`:
```sql
                SELECT "league_goals" FROM "first_division" WHERE "club"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance when the result was l 20-17?`

### 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 `How many were in attendance when the result was l 20-17?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "result"='l 20-17';
```
## Task
Generate a SQL query to answer the following question:
`Which Third/Vice skip has a Second of éric sylvain?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Third/Vice skip has a Second of éric sylvain?`:
```sql
                SELECT "third_vice_skip" FROM "men_s" WHERE "second"='éric sylvain';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of mike mcewen?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of mike mcewen?`:
```sql
                SELECT "lead" FROM "men_s" WHERE "skip"='mike mcewen';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Lead of steve gould?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Lead of steve gould?`:
```sql
                SELECT "city" FROM "men_s" WHERE "lead"='steve gould';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?`:
```sql
                SELECT "lead" FROM "men_s" WHERE "city"='winnipeg' AND "third_vice_skip"='kevin park';
```
## Task
Generate a SQL query to answer the following question:
`Which City has a Lead of tyler forrest?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Lead of tyler forrest?`:
```sql
                SELECT "city" FROM "men_s" WHERE "lead"='tyler forrest';
```
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of ted appelman?`

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

CREATE TABLE "men_s" (
  "skip" text,
  "third_vice_skip" text,
  "second" text,
  "lead" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of ted appelman?`:
```sql
                SELECT "lead" FROM "men_s" WHERE "skip"='ted appelman';
```
## Task
Generate a SQL query to answer the following question:
`Which album is #10?`

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

CREATE TABLE "highest_first_week_sales" (
  "number" real,
  "artist" text,
  "album" text,
  "1st_week_sales" real,
  "1st_week_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which album is #10?`:
```sql
                SELECT "album" FROM "highest_first_week_sales" WHERE "number"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is Ben Hogan's Place?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Ben Hogan's Place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='ben hogan';
```
## Task
Generate a SQL query to answer the following question:
`What is Jerry Barber's To 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 `What is Jerry Barber's To par?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='jerry barber';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of T2 Place Player Dow Finsterwald?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of T2 Place Player Dow Finsterwald?`:
```sql
                SELECT "score" FROM "third_round" WHERE "place"='t2' AND "player"='dow finsterwald';
```
## Task
Generate a SQL query to answer the following question:
`What's the to par of the United States with the score of 71-71=142?`

### 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's the to par of the United States with the score of 71-71=142?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "score"='71-71=142';
```
## Task
Generate a SQL query to answer the following question:
`What place had a score of 71-70=141?`

### 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 place had a score of 71-70=141?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='71-70=141';
```