cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the grid of driver tomas scheckter from vision racing team?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of driver tomas scheckter from vision racing team?`:
```sql
                SELECT "grid" FROM "classification" WHERE "team"='vision racing' AND "driver"='tomas scheckter';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid of car no. 3?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of car no. 3?`:
```sql
                SELECT "grid" FROM "classification" WHERE "car_no"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid with a +6.8359 time/retired?`

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

CREATE TABLE "classification" (
  "fin_pos" text,
  "car_no" text,
  "driver" text,
  "team" text,
  "laps" text,
  "time_retired" text,
  "grid" text,
  "laps_led" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with a +6.8359 time/retired?`:
```sql
                SELECT "grid" FROM "classification" WHERE "time_retired"='+6.8359';
```
## Task
Generate a SQL query to answer the following question:
`WHAT TEAM 1 HAS A 1st leg of 1–1, and a 2nd leg of 1–3?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT TEAM 1 HAS A 1st leg of 1–1, and a 2nd leg of 1–3?`:
```sql
                SELECT "team_1" FROM "round_of_16" WHERE "1st_leg"='1–1' AND "2nd_leg"='1–3';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 1ST LEG WITH TEAM 2 AS ATHLETIC?`:
```sql
                SELECT "1st_leg" FROM "round_of_16" WHERE "team_2"='athletic';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 2ND LEG WITH TEAM 1 OF SPORTING?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_1"='sporting';
```
## Task
Generate a SQL query to answer the following question:
`Sum of cuyo selection as the opposing team?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Sum of cuyo selection as the opposing team?`:
```sql
                SELECT SUM("against") FROM "matches" WHERE "opposing_team"='cuyo selection';
```
## Task
Generate a SQL query to answer the following question:
`Lowest against for tour match on 21 july 1990?`

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

CREATE TABLE "matches" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Lowest against for tour match on 21 july 1990?`:
```sql
                SELECT MIN("against") FROM "matches" WHERE "status"='tour match' AND "date"='21 july 1990';
```
## Task
Generate a SQL query to answer the following question:
`Name the lowest version with a code of u+1034a that began after 2001.`

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

CREATE TABLE "computer_encoding" (
  "character" text,
  "code" text,
  "name" text,
  "version" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lowest version with a code of u+1034a that began after 2001.`:
```sql
                SELECT MIN("version") FROM "computer_encoding" WHERE "code"='u+1034a' AND "year">2001;
```
## Task
Generate a SQL query to answer the following question:
`What character was the version 5.1 and had a Greek capital letter Archaic Sampi?`

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

CREATE TABLE "computer_encoding" (
  "character" text,
  "code" text,
  "name" text,
  "version" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What character was the version 5.1 and had a Greek capital letter Archaic Sampi?`:
```sql
                SELECT "character" FROM "computer_encoding" WHERE "version"=5.1 AND "name"='greek capital letter archaic sampi';
```
## Task
Generate a SQL query to answer the following question:
`Give the sum of the version with the coptic small letter sampi, and a year after 2005.`

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

CREATE TABLE "computer_encoding" (
  "character" text,
  "code" text,
  "name" text,
  "version" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Give the sum of the version with the coptic small letter sampi, and a year after 2005.`:
```sql
                SELECT SUM("version") FROM "computer_encoding" WHERE "name"='coptic small letter sampi' AND "year">2005;
```
## Task
Generate a SQL query to answer the following question:
`What is the year that has a name with the Greek small letter sampi?`

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

CREATE TABLE "computer_encoding" (
  "character" text,
  "code" text,
  "name" text,
  "version" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year that has a name with the Greek small letter sampi?`:
```sql
                SELECT SUM("year") FROM "computer_encoding" WHERE "name"='greek small letter sampi';
```
## Task
Generate a SQL query to answer the following question:
`What country id Bob Rosburg 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 id Bob Rosburg from?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='bob rosburg';
```
## Task
Generate a SQL query to answer the following question:
`What country has a score of 73-72-67=212?`

### 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 has a score of 73-72-67=212?`:
```sql
                SELECT "country" FROM "third_round" WHERE "score"='73-72-67=212';
```
## Task
Generate a SQL query to answer the following question:
`What is Mike Souchak'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 Mike Souchak's to par?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='mike souchak';
```
## Task
Generate a SQL query to answer the following question:
`What is Mike Souchak's to par score?`

### 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 Mike Souchak's to par score?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "player"='mike souchak';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish for the golfer with a total of 285?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for the golfer with a total of 285?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "total"=285;
```
## Task
Generate a SQL query to answer the following question:
`What was the total for the golfer who had a year won of 1987?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total for the golfer who had a year won of 1987?`:
```sql
                SELECT "total" FROM "made_the_cut" WHERE "year_s_won"='1987';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish for the golfer with a To par of +2?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the finish for the golfer with a To par of +2?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "to_par"='+2';
```
## Task
Generate a SQL query to answer the following question:
`What was the total for the golfer who had a To par of +10 and year won of 1971?`

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

CREATE TABLE "made_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total for the golfer who had a To par of +10 and year won of 1971?`:
```sql
                SELECT SUM("total") FROM "made_the_cut" WHERE "to_par"='+10' AND "year_s_won"='1971';
```
## Task
Generate a SQL query to answer the following question:
`What team played before game 71 and had a score w 91–86 (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 team played before game 71 and had a score w 91–86 (ot)?`:
```sql
                SELECT "team" FROM "game_log" WHERE "game"<71 AND "score"='w 91–86 (ot)';
```
## Task
Generate a SQL query to answer the following question:
`What was the high assist for game 66?`

### 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 was the high assist for game 66?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "game"=66;
```
## Task
Generate a SQL query to answer the following question:
`What is josé maría olazábal's country?`

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

CREATE TABLE "final_leaderboard" (
  "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 is josé maría olazábal's country?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "player"='josé maría olazábal';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Score of 74-67-74-71=286?`

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

CREATE TABLE "final_leaderboard" (
  "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 a Score of 74-67-74-71=286?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "score"='74-67-74-71=286';
```
## Task
Generate a SQL query to answer the following question:
`Which Place has a Country of united states, and a Player of corey pavin?`

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

CREATE TABLE "final_leaderboard" (
  "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 has a Country of united states, and a Player of corey pavin?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "player"='corey pavin';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in week 15?`

### 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,
  "tv_time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent in week 15?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance a result of W 30-7?`

### 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,
  "tv_time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance a result of W 30-7?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "result"='w 30-7';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance at week earlier than 6 on October 14, 2001?`

### 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,
  "tv_time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance at week earlier than 6 on October 14, 2001?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "week"<6 AND "date"='october 14, 2001';
```
## Task
Generate a SQL query to answer the following question:
`what is the record when the method is submission (armbar) and the round is less than 3?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the record when the method is submission (armbar) and the round is less than 3?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='submission (armbar)' AND "round"<3;
```
## Task
Generate a SQL query to answer the following question:
`How many average points did svg burgkirchen have with a loss smaller than 6?`

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

CREATE TABLE "promotion_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many average points did svg burgkirchen have with a loss smaller than 6?`:
```sql
                SELECT AVG("points") FROM "promotion_round" WHERE "name"='svg burgkirchen' AND "lost"<6;
```
## Task
Generate a SQL query to answer the following question:
`Who had points smaller than 22 and a drawn of 2?`

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

CREATE TABLE "promotion_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who had points smaller than 22 and a drawn of 2?`:
```sql
                SELECT "name" FROM "promotion_round" WHERE "points"<22 AND "drawn"=2;
```
## Task
Generate a SQL query to answer the following question:
`Who lost 2 and had a position bigger than 1?`

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

CREATE TABLE "promotion_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who lost 2 and had a position bigger than 1?`:
```sql
                SELECT "name" FROM "promotion_round" WHERE "lost"=2 AND "position">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?`

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

CREATE TABLE "release_history" (
  "issued_title" text,
  "year" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the catalog issued with the title of 1958 Miles on the Sony label at a year prior to 2006?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "issued_title"='1958 miles' AND "label"='sony' AND "year"<2006;
```
## Task
Generate a SQL query to answer the following question:
`What is the label of the Year before 1979?`

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

CREATE TABLE "release_history" (
  "issued_title" text,
  "year" real,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the label of the Year before 1979?`:
```sql
                SELECT "label" FROM "release_history" WHERE "year"<1979;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 2011 PERFORMANCE AT THE MIAMI MASTERS?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='miami masters';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 2008 PERFORMANCE WITH A 2007 CAREER STATISTICS?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2007"='career statistics';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TOURNAMENT WITH A 2010 OF A, 2009 OF A, AND 001 PERFORMANCE OF Q1?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2010"='a' AND "2009"='a' AND "2011"='q1';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 2009 PERFORMANCE WITH A 2012 OF 2R, 2001 OF 1R, 2007 OF A, AND 2008 OF A?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2012"='2r' AND "2011"='1r' AND "2007"='a' AND "2008"='a';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE 2011 PERFORMANCE WITH A 2007 OF Q3?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "2007"='q3';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t2?`

### 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 Score has a Place of t2?`:
```sql
                SELECT "score" FROM "final_round" WHERE "place"='t2';
```
## Task
Generate a SQL query to answer the following question:
`What was spain's 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 was spain's score?`:
```sql
                SELECT "score" FROM "final_round" WHERE "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Score of 70-73-80-68=291?`

### 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 To par has a Score of 70-73-80-68=291?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "score"='70-73-80-68=291';
```
## Task
Generate a SQL query to answer the following question:
`From what Country is T6 Place Player Tom Weiskopf?`

### 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 `From what Country is T6 Place Player Tom Weiskopf?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t6' AND "player"='tom weiskopf';
```
## Task
Generate a SQL query to answer the following question:
`With a To par of –2, what is Johnny Miller's Place?`

### 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 `With a To par of –2, what is Johnny Miller's Place?`:
```sql
                SELECT "place" FROM "second_round" WHERE "to_par"='–2' AND "player"='johnny miller';
```
## Task
Generate a SQL query to answer the following question:
`From what Country is Gene Borek?`

### 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 `From what Country is Gene Borek?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='gene borek';
```
## Task
Generate a SQL query to answer the following question:
`What is the Country of the Player with a To par of –5?`

### 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 is the Country of the Player with a To par of –5?`:
```sql
                SELECT "country" FROM "second_round" WHERE "to_par"='–5';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player from New Zealand?`

### 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 is the Place of the Player from New Zealand?`:
```sql
                SELECT "place" FROM "second_round" WHERE "country"='new zealand';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 70-68=138?`

### 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 is the Place of the Player with a Score of 70-68=138?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='70-68=138';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003?`

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

CREATE TABLE "championship_game_results_by_team" (
  "appearances" real,
  "school" text,
  "wins" real,
  "losses" real,
  "percent" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Losses, when Wins is greater than 1, and when Last Appearance is 2003?`:
```sql
                SELECT MAX("losses") FROM "championship_game_results_by_team" WHERE "wins">1 AND "last_appearance"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1?`

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

CREATE TABLE "championship_game_results_by_team" (
  "appearances" real,
  "school" text,
  "wins" real,
  "losses" real,
  "percent" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Wins, when Percent is 0.000, when School is Oklahoma State, and when Appearances is less than 1?`:
```sql
                SELECT MAX("wins") FROM "championship_game_results_by_team" WHERE "percent"='0.000' AND "school"='oklahoma state' AND "appearances"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?`

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

CREATE TABLE "championship_game_results_by_team" (
  "appearances" real,
  "school" text,
  "wins" real,
  "losses" real,
  "percent" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Losses, when Last Appearance is 2003, and when Wins is greater than 2?`:
```sql
                SELECT COUNT("losses") FROM "championship_game_results_by_team" WHERE "last_appearance"='2003' AND "wins">2;
```
## Task
Generate a SQL query to answer the following question:
`What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State?`

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

CREATE TABLE "championship_game_results_by_team" (
  "appearances" real,
  "school" text,
  "wins" real,
  "losses" real,
  "percent" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Last Appearance, when Wins is less than 1, when Losses is 1, and when School is Oklahoma State?`:
```sql
                SELECT "last_appearance" FROM "championship_game_results_by_team" WHERE "wins"<1 AND "losses"=1 AND "school"='oklahoma state';
```
## Task
Generate a SQL query to answer the following question:
`What is College, when Pick is less than 145, and when Player is Jeff Wilkins?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is College, when Pick is less than 145, and when Player is Jeff Wilkins?`:
```sql
                SELECT "college" FROM "draft_picks" WHERE "pick"<145 AND "player"='jeff wilkins';
```
## Task
Generate a SQL query to answer the following question:
`What is Nationality, and when College is Illinois State?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nationality, and when College is Illinois State?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "college"='illinois state';
```
## Task
Generate a SQL query to answer the following question:
`What is Nationality, when Round is 6?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Nationality, when Round is 6?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "round"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Round, when College is Northern Illinois?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Round, when College is Northern Illinois?`:
```sql
                SELECT COUNT("round") FROM "draft_picks" WHERE "college"='northern illinois';
```
## Task
Generate a SQL query to answer the following question:
`What is the average bronze when the total is 2, silver is less than 1 and gold is more than 1?`

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

CREATE TABLE "medal_count_by_country" (
  "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 the total is 2, silver is less than 1 and gold is more than 1?`:
```sql
                SELECT AVG("bronze") FROM "medal_count_by_country" WHERE "total"=2 AND "silver"<1 AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`what is the average silver when the total is more than 20?`

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

CREATE TABLE "medal_count_by_country" (
  "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 silver when the total is more than 20?`:
```sql
                SELECT AVG("silver") FROM "medal_count_by_country" WHERE "total">20;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest rank when the nation is united states (usa) and bronze is more than 1?`

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

CREATE TABLE "medal_count_by_country" (
  "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 highest rank when the nation is united states (usa) and bronze is more than 1?`:
```sql
                SELECT MAX("rank") FROM "medal_count_by_country" WHERE "nation"='united states (usa)' AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0?`

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

CREATE TABLE "medal_count_by_country" (
  "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 total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0?`:
```sql
                SELECT AVG("total") FROM "medal_count_by_country" WHERE "bronze">0 AND "gold"=0 AND "nation"='united states (usa)' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the resolution for the fight against enrique guzman?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution for the fight against enrique guzman?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='enrique guzman';
```
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight when Nate Mohr's record was 8-6?`

### 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
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight when Nate Mohr's record was 8-6?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='8-6';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number of third place earned for the Es Sahel at a rank less than 3?`

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

CREATE TABLE "winners_by_team" (
  "rank" real,
  "club" text,
  "winners" real,
  "runners_up" real,
  "third" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number of third place earned for the Es Sahel at a rank less than 3?`:
```sql
                SELECT MIN("third") FROM "winners_by_team" WHERE "club"='es sahel' AND "rank"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which club has 1 runners-up with 0 winners and 2 third place earned?`

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

CREATE TABLE "winners_by_team" (
  "rank" real,
  "club" text,
  "winners" real,
  "runners_up" real,
  "third" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club has 1 runners-up with 0 winners and 2 third place earned?`:
```sql
                SELECT "club" FROM "winners_by_team" WHERE "runners_up"=1 AND "winners"=0 AND "third"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which Annual ridership (2008) has a Number of stations larger than 70, and an Annual ridership (1998) smaller than 451,971,849?`

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

CREATE TABLE "m_etropolitan_r_ailway_p_assenger_t_rans" (
  "line" text,
  "operator" text,
  "line_length_kilometres" real,
  "number_of_stations" real,
  "annual_ridership_1998" real,
  "annual_ridership_2008" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Annual ridership (2008) has a Number of stations larger than 70, and an Annual ridership (1998) smaller than 451,971,849?`:
```sql
                SELECT MIN("annual_ridership_2008") FROM "m_etropolitan_r_ailway_p_assenger_t_rans" WHERE "number_of_stations">70 AND "annual_ridership_1998"<'451,971,849';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21?`

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

CREATE TABLE "kabaddi_world_cup" (
  "name" text,
  "only_point" real,
  "bonus" real,
  "catch_taken" real,
  "total_point" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Bonus is greater than 1, when Only Point is greater than 7, and when Total Point is less than 21?`:
```sql
                SELECT "name" FROM "kabaddi_world_cup" WHERE "bonus">1 AND "only_point">7 AND "total_point"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30?`

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

CREATE TABLE "kabaddi_world_cup" (
  "name" text,
  "only_point" real,
  "bonus" real,
  "catch_taken" real,
  "total_point" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Only Point is greater than 1, when Catch Taken is greater than 3, when Bonus is greater than 4, and when Total Point is less than 30?`:
```sql
                SELECT "name" FROM "kabaddi_world_cup" WHERE "only_point">1 AND "catch_taken">3 AND "bonus">4 AND "total_point"<30;
```
## Task
Generate a SQL query to answer the following question:
`How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?`:
```sql
                SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "manufacturer"='ducati' AND "rider"='casey stoner' AND "laps"<27;
```
## Task
Generate a SQL query to answer the following question:
`Which manufacturer has a time of +10.142?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which manufacturer has a time of +10.142?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "time"='+10.142';
```
## Task
Generate a SQL query to answer the following question:
`What is Loris Capirossi's time?`

### 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" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Loris Capirossi's time?`:
```sql
                SELECT "time" FROM "moto_gp_classification" WHERE "rider"='loris capirossi';
```
## Task
Generate a SQL query to answer the following question:
`What were the highest laps when the grid was larger than 19 and the time/retired was fuel?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the highest laps when the grid was larger than 19 and the time/retired was fuel?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid">19 AND "time_retired"='fuel';
```
## Task
Generate a SQL query to answer the following question:
`Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which team did Scott Pruett drive for when the grid was smaller than 20 and there were 65 laps?`:
```sql
                SELECT "team" FROM "race" WHERE "laps"=65 AND "grid"<20 AND "driver"='scott pruett';
```
## Task
Generate a SQL query to answer the following question:
`What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?`

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

CREATE TABLE "construction_details" (
  "br_no" text,
  "lot_no" real,
  "date" real,
  "built_at" text,
  "boiler_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year is the date when the boiler type is forward topfeed, the built at is Crewe, and lot number is less than 187?`:
```sql
                SELECT COUNT("date") FROM "construction_details" WHERE "boiler_type"='forward topfeed' AND "built_at"='crewe' AND "lot_no"<187;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game where Esteban Paredes scored 2 goals?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game where Esteban Paredes scored 2 goals?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "goal"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='los angeles rams' AND "week"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the result when the week is greater than 7 and the Houston Oilers were the opponent?`

### 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 result when the week is greater than 7 and the Houston Oilers were the opponent?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week">7 AND "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Location Attendance is "Izod Center 16,911"?`

### 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 Record, when Location Attendance is "Izod Center 16,911"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='izod center 16,911';
```
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when High Assists is "Delonte West (10)"?`

### 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 High Rebounds, when High Assists is "Delonte West (10)"?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='delonte west (10)';
```
## Task
Generate a SQL query to answer the following question:
`What catalog had an Epic Records label in CD format?`

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

CREATE TABLE "release_history" (
  "region" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What catalog had an Epic Records label in CD format?`:
```sql
                SELECT "catalog" FROM "release_history" WHERE "label"='epic records' AND "format"='cd';
```