cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Where were the 2009 and 2011 Grand Slam Tournaments?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2011" text,
  "2012" text,
  "2013" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were the 2009 and 2011 Grand Slam Tournaments?`:
```sql
                SELECT "2011" FROM "doubles_performance_timeline" WHERE "2009"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Second Vice President, when Third Vice President is "Gen. Juan Alonso", and when Inaugurated is "15 March 1940"?`:
```sql
                SELECT "second_vice_president" FROM "1928_1944" WHERE "third_vice_president"='gen. juan alonso' AND "inaugurated"='15 march 1940';
```
## Task
Generate a SQL query to answer the following question:
`What is Left Office, when Inaugurate is "15 March 1930"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Left Office, when Inaugurate is "15 March 1930"?`:
```sql
                SELECT "left_office" FROM "1928_1944" WHERE "inaugurated"='15 march 1930';
```
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Inaugurated is "26 March 1928"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Second Vice President, when Inaugurated is "26 March 1928"?`:
```sql
                SELECT "second_vice_president" FROM "1928_1944" WHERE "inaugurated"='26 march 1928';
```
## Task
Generate a SQL query to answer the following question:
`What is Second Vice President, when Inaugurated is "15 March 1935"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Second Vice President, when Inaugurated is "15 March 1935"?`:
```sql
                SELECT "second_vice_president" FROM "1928_1944" WHERE "inaugurated"='15 march 1935';
```
## Task
Generate a SQL query to answer the following question:
`What is Third Vice President, when Inaugurated is "15 March 1934"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Third Vice President, when Inaugurated is "15 March 1934"?`:
```sql
                SELECT "third_vice_president" FROM "1928_1944" WHERE "inaugurated"='15 march 1934';
```
## Task
Generate a SQL query to answer the following question:
`What is Third Vice President, when Second Vice President is "Baudelio Palma"?`

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

CREATE TABLE "1928_1944" (
  "first_vice_president" text,
  "second_vice_president" text,
  "third_vice_president" text,
  "inaugurated" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Third Vice President, when Second Vice President is "Baudelio Palma"?`:
```sql
                SELECT "third_vice_president" FROM "1928_1944" WHERE "second_vice_president"='baudelio palma';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game from July 18?`

### 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 score of the game from July 18?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "date"='july 18';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on Week 9?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on Week 9?`:
```sql
                SELECT MAX("attendance") FROM "regular_season" WHERE "week"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the game with a Result of w 13–0?`

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

CREATE TABLE "regular_season" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the game with a Result of w 13–0?`:
```sql
                SELECT "opponent" FROM "regular_season" WHERE "result"='w 13–0';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in January that was less than 4?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in January that was less than 4?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "january"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?`

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

CREATE TABLE "other_wins_11" (
  "date" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?`:
```sql
                SELECT "date" FROM "other_wins_11" WHERE "margin_of_victory"='playoff' AND "runner_s_up"='yueh-chyn huang';
```
## Task
Generate a SQL query to answer the following question:
`What is the latitude of the point with a longitude of 147.1w?`

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

CREATE TABLE "faculae" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latitude of the point with a longitude of 147.1w?`:
```sql
                SELECT "latitude" FROM "faculae" WHERE "longitude"='147.1w';
```
## Task
Generate a SQL query to answer the following question:
`What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ISBN UK, when Author is "Dave Martin", and when ISBN US is "N/A"?`:
```sql
                SELECT "isbn_uk" FROM "game_books" WHERE "author"='dave martin' AND "isbn_us"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`What is ISBN US, when Title is "Crisis In Space"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ISBN US, when Title is "Crisis In Space"?`:
```sql
                SELECT "isbn_us" FROM "game_books" WHERE "title"='crisis in space';
```
## Task
Generate a SQL query to answer the following question:
`What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Author, when TV Companions Featured is "Peri Brown", and when Title is "Race Against Time"?`:
```sql
                SELECT "author" FROM "game_books" WHERE "tv_companions_featured"='peri brown' AND "title"='race against time';
```
## Task
Generate a SQL query to answer the following question:
`What is Title, when TV Companions Featured is "K-9"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Title, when TV Companions Featured is "K-9"?`:
```sql
                SELECT "title" FROM "game_books" WHERE "tv_companions_featured"='k-9';
```
## Task
Generate a SQL query to answer the following question:
`What is ISBN US, when Title is "Mission To Venus"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ISBN US, when Title is "Mission To Venus"?`:
```sql
                SELECT "isbn_us" FROM "game_books" WHERE "title"='mission to venus';
```
## Task
Generate a SQL query to answer the following question:
`What is TV Companions Featured, when Author is "William Emms"?`

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

CREATE TABLE "game_books" (
  "title" text,
  "author" text,
  "isbn_uk" text,
  "isbn_us" text,
  "tv_companions_featured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is TV Companions Featured, when Author is "William Emms"?`:
```sql
                SELECT "tv_companions_featured" FROM "game_books" WHERE "author"='william emms';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of 2–2, and a Venue of H?`

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

CREATE TABLE "uefa_champions_league" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Result of 2–2, and a Venue of H?`:
```sql
                SELECT "date" FROM "uefa_champions_league" WHERE "result"='2–2' AND "venue"='h';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a to par score larger than 7 and a total score of 298?`

### 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" real,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a to par score larger than 7 and a total score of 298?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "to_par">7 AND "total"=298;
```
## Task
Generate a SQL query to answer the following question:
`In which location did he win the Superbrawl 16 event?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which location did he win the Superbrawl 16 event?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "event"='superbrawl 16';
```
## Task
Generate a SQL query to answer the following question:
`What was his record when the method was technical submission (forearm choke)?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was his record when the method was technical submission (forearm choke)?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "method"='technical submission (forearm choke)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in round 2 of the UFC 49 event?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in round 2 of the UFC 49 event?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "round"='2' AND "event"='ufc 49';
```
## Task
Generate a SQL query to answer the following question:
`What was the round when he fought Joe Stevenson?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the round when he fought Joe Stevenson?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='joe stevenson';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the score 94-74 w?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date was the score 94-74 w?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='94-74 w';
```
## Task
Generate a SQL query to answer the following question:
`When they played at Chicago Bulls, what was the Location/Attendance?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When they played at Chicago Bulls, what was the Location/Attendance?`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "opponent"='at chicago bulls';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in Game 44?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in Game 44?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "game"='44';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when they played at Delta Center with a record of 27-13?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when they played at Delta Center with a record of 27-13?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "location_attendance"='delta center' AND "record"='27-13';
```
## Task
Generate a SQL query to answer the following question:
`What was the date for Game 41?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date for Game 41?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"='41';
```
## Task
Generate a SQL query to answer the following question:
`Which Opposing Team has an Against of 3, and a Date of 11 february 1950?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opposing Team has an Against of 3, and a Date of 11 february 1950?`:
```sql
                SELECT "opposing_team" FROM "fa_cup" WHERE "against"=3 AND "date"='11 february 1950';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has an Opposing Team of manchester united, and a Round of 5th round replay?`:
```sql
                SELECT "venue" FROM "fa_cup" WHERE "opposing_team"='manchester united' AND "round"='5th round replay';
```
## Task
Generate a SQL query to answer the following question:
`Which Against has a Date of 28 january 1950?`

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

CREATE TABLE "fa_cup" (
  "opposing_team" text,
  "against" real,
  "date" text,
  "venue" text,
  "round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Against has a Date of 28 january 1950?`:
```sql
                SELECT AVG("against") FROM "fa_cup" WHERE "date"='28 january 1950';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of years wehre anna thompson had a 3rd place result at edinburgh, scotland?`:
```sql
                SELECT COUNT("year") FROM "achievements" WHERE "result"='3rd' AND "venue"='edinburgh, scotland';
```
## Task
Generate a SQL query to answer the following question:
`What year did anna thompson have a 7th place result?`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did anna thompson have a 7th place result?`:
```sql
                SELECT "year" FROM "achievements" WHERE "result"='7th';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with`

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

CREATE TABLE "achievements" (
  "year" real,
  "tournament" text,
  "venue" text,
  "result" text,
  "extra" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year that anna thompson had an 8th place result in team competition at the world cross country championships in st etienne, france with`:
```sql
                SELECT AVG("year") FROM "achievements" WHERE "tournament"='world cross country championships' AND "venue"='st etienne, france' AND "extra"='team competition' AND "result"='8th';
```
## Task
Generate a SQL query to answer the following question:
`What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "fourballs_w_l_h" text,
  "points_won" real,
  "points_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total matches in 2002 where points won is larger than 1.5 and the points % is smaller than 50?`:
```sql
                SELECT MAX("total_matches") FROM "solheim_cup_record" WHERE "points_won">1.5 AND "year"='2002' AND "points_pct"<50;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOSS WITH AN AVERAGE OF 89.9?`:
```sql
                SELECT SUM("loss") FROM "rushing" WHERE "avg_g"=89.9;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gp_gs" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NUMBER OF LOSSES WITH A LONG SMALLER THAN 24, AND GAIN BIGGER THAN 116?`:
```sql
                SELECT COUNT("loss") FROM "rushing" WHERE "long"<24 AND "gain">116;
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did Brett go against Kevin Asplund?`

### 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 rounds did Brett go against Kevin Asplund?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "opponent"='kevin asplund';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?`

### 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 rounds did Brett go for the Strikeforce: Shamrock vs. Diaz match?`:
```sql
                SELECT "round" FROM "mixed_martial_arts_record" WHERE "event"='strikeforce: shamrock vs. diaz';
```
## Task
Generate a SQL query to answer the following question:
`What is the Average relative annual growth (%) for the country that ranks 41 and has a July 1, 2013 projection larger than 2,204,000?`

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

CREATE TABLE "table" (
  "rank" text,
  "july_1_2013_projection" real,
  "pct_of_pop" real,
  "average_relative_annual_growth_pct" real,
  "average_absolute_annual_growth" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Average relative annual growth (%) for the country that ranks 41 and has a July 1, 2013 projection larger than 2,204,000?`:
```sql
                SELECT COUNT("average_relative_annual_growth_pct") FROM "table" WHERE "rank"='41' AND "july_1_2013_projection">'2,204,000';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Record of 22-10?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Record of 22-10?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='22-10';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent of @ seattle?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Opponent of @ seattle?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='@ seattle';
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Result of loss, and an Opponent of @ la clippers?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Result of loss, and an Opponent of @ la clippers?`:
```sql
                SELECT "record" FROM "game_log" WHERE "result"='loss' AND "opponent"='@ la clippers';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has an Opponent of @ la lakers, and a Record of 8-6?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has an Opponent of @ la lakers, and a Record of 8-6?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='@ la lakers' AND "record"='8-6';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Result of win, and a Date of march 17?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Result of win, and a Date of march 17?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "result"='win' AND "date"='march 17';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Date of may 4?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Date of may 4?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='may 4';
```
## Task
Generate a SQL query to answer the following question:
`Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?`

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

CREATE TABLE "2009_nbl_ladder_championship_round" (
  "rank" real,
  "team" text,
  "played" real,
  "loss" real,
  "last_5" text,
  "streak" text,
  "pf_per_game" real,
  "pa_per_game" real,
  "pd_per_game" real,
  "winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which PD per game has a Rank smaller than 4, a Winning % of 78.6%, a Streak of w1, and a PA per game smaller than 81.5?`:
```sql
                SELECT MIN("pd_per_game") FROM "2009_nbl_ladder_championship_round" WHERE "rank"<4 AND "winning_pct"='78.6%' AND "streak"='w1' AND "pa_per_game"<81.5;
```
## Task
Generate a SQL query to answer the following question:
`Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?`

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

CREATE TABLE "2009_nbl_ladder_championship_round" (
  "rank" real,
  "team" text,
  "played" real,
  "loss" real,
  "last_5" text,
  "streak" text,
  "pf_per_game" real,
  "pa_per_game" real,
  "pd_per_game" real,
  "winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Loss has a Last 5 of 4-1, a Streak of w2, and a PA per game smaller than 88.43?`:
```sql
                SELECT AVG("loss") FROM "2009_nbl_ladder_championship_round" WHERE "last_5"='4-1' AND "streak"='w2' AND "pa_per_game"<88.43;
```
## Task
Generate a SQL query to answer the following question:
`Which Last 5 has a Rank of 7?`

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

CREATE TABLE "2009_nbl_ladder_championship_round" (
  "rank" real,
  "team" text,
  "played" real,
  "loss" real,
  "last_5" text,
  "streak" text,
  "pf_per_game" real,
  "pa_per_game" real,
  "pd_per_game" real,
  "winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Last 5 has a Rank of 7?`:
```sql
                SELECT "last_5" FROM "2009_nbl_ladder_championship_round" WHERE "rank"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?`

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

CREATE TABLE "2009_nbl_ladder_championship_round" (
  "rank" real,
  "team" text,
  "played" real,
  "loss" real,
  "last_5" text,
  "streak" text,
  "pf_per_game" real,
  "pa_per_game" real,
  "pd_per_game" real,
  "winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a PD per game larger than 6.28, and a Loss smaller than 4?`:
```sql
                SELECT MIN("played") FROM "2009_nbl_ladder_championship_round" WHERE "pd_per_game">6.28 AND "loss"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which PF per game has a Rank of 5?`

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

CREATE TABLE "2009_nbl_ladder_championship_round" (
  "rank" real,
  "team" text,
  "played" real,
  "loss" real,
  "last_5" text,
  "streak" text,
  "pf_per_game" real,
  "pa_per_game" real,
  "pd_per_game" real,
  "winning_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which PF per game has a Rank of 5?`:
```sql
                SELECT MIN("pf_per_game") FROM "2009_nbl_ladder_championship_round" WHERE "rank"=5;
```
## Task
Generate a SQL query to answer the following question:
`What was the score in Round 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in Round 3?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"='3';
```
## Task
Generate a SQL query to answer the following question:
`What was the record for opponent Matt Serra?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record for opponent Matt Serra?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "opponent"='matt serra';
```
## Task
Generate a SQL query to answer the following question:
`What was the event for round 1 against Lance Wipf?`

### 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" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event for round 1 against Lance Wipf?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"='1' AND "opponent"='lance wipf';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Area (km²), when Population (2007) is 6,176?`

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

CREATE TABLE "political_subdivision" (
  "barangay" text,
  "area_km" real,
  "population_2007" real,
  "population_2010" real,
  "pop_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Area (km²), when Population (2007) is 6,176?`:
```sql
                SELECT COUNT("area_km") FROM "political_subdivision" WHERE "population_2007"='6,176';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Population (2010), when Population (2007) is 4,875, and when Area (km²) is greater than 1.456?`

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

CREATE TABLE "political_subdivision" (
  "barangay" text,
  "area_km" real,
  "population_2007" real,
  "population_2010" real,
  "pop_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Population (2010), when Population (2007) is 4,875, and when Area (km²) is greater than 1.456?`:
```sql
                SELECT AVG("population_2010") FROM "political_subdivision" WHERE "population_2007"='4,875' AND "area_km">1.456;
```
## Task
Generate a SQL query to answer the following question:
`How many laps did car 23 do?`

### 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 `How many laps did car 23 do?`:
```sql
                SELECT "laps" FROM "classification" WHERE "car_no"='23';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did the car do that had a final position of 17?`

### 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 `How many laps did the car do that had a final position of 17?`:
```sql
                SELECT "laps" FROM "classification" WHERE "fin_pos"='17';
```
## Task
Generate a SQL query to answer the following question:
`What grid did the team racing professionals race on?`

### 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 grid did the team racing professionals race on?`:
```sql
                SELECT "grid" FROM "classification" WHERE "team"='racing professionals';
```
## Task
Generate a SQL query to answer the following question:
`What car number had a race time of +0.3844?`

### 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 car number had a race time of +0.3844?`:
```sql
                SELECT "car_no" FROM "classification" WHERE "time_retired"='+0.3844';
```
## Task
Generate a SQL query to answer the following question:
`How many points were scored by car number 10 that ended with a collision?`

### 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 `How many points were scored by car number 10 that ended with a collision?`:
```sql
                SELECT "points" FROM "classification" WHERE "time_retired"='collision' AND "car_no"='10';
```
## Task
Generate a SQL query to answer the following question:
`Who was the driver who had a final position of 14?`

### 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 `Who was the driver who had a final position of 14?`:
```sql
                SELECT "driver" FROM "classification" WHERE "fin_pos"='14';
```
## Task
Generate a SQL query to answer the following question:
`what is the money ($) for player justin leonard?`

### 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 the money ($) for player justin leonard?`:
```sql
                SELECT "money" FROM "final_leaderboard" WHERE "player"='justin leonard';
```
## Task
Generate a SQL query to answer the following question:
`what is the place when the score is 76-69-71-70=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 `what is the place when the score is 76-69-71-70=286?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "score"='76-69-71-70=286';
```
## Task
Generate a SQL query to answer the following question:
`what is the place for costantino rocca?`

### 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 the place for costantino rocca?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "player"='costantino rocca';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest money ($) for bernhard langer?`

### 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 the highest money ($) for bernhard langer?`:
```sql
                SELECT MAX("money") FROM "final_leaderboard" WHERE "player"='bernhard langer';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the FIFA report on October 13, 2007?`

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

CREATE TABLE "men_s_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the FIFA report on October 13, 2007?`:
```sql
                SELECT "score" FROM "men_s_national_team" WHERE "report"='fifa' AND "date"='october 13, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What venue has a EAFF report on June 24, 2007?`

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

CREATE TABLE "men_s_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has a EAFF report on June 24, 2007?`:
```sql
                SELECT "venue" FROM "men_s_national_team" WHERE "report"='eaff' AND "date"='june 24, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue on October 13, 2007?`

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

CREATE TABLE "men_s_national_team" (
  "date" text,
  "venue" text,
  "score" text,
  "competition" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue on October 13, 2007?`:
```sql
                SELECT "venue" FROM "men_s_national_team" WHERE "date"='october 13, 2007';
```
## Task
Generate a SQL query to answer the following question:
`At what Site was the Result W13-7?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Site was the Result W13-7?`:
```sql
                SELECT "site" FROM "schedule" WHERE "result"='w13-7';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on 11/09/1946?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on 11/09/1946?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "date"='11/09/1946';
```
## Task
Generate a SQL query to answer the following question:
`What Site had an Attendance of 45,000?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Site had an Attendance of 45,000?`:
```sql
                SELECT "site" FROM "schedule" WHERE "attendance"='45,000';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result on 11/02/1946?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "site" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result on 11/02/1946?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='11/02/1946';
```
## Task
Generate a SQL query to answer the following question:
`What mark has over 813 points in the United States, and a 0.152 react?`

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

CREATE TABLE "60_metres" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What mark has over 813 points in the United States, and a 0.152 react?`:
```sql
                SELECT "mark" FROM "60_metres" WHERE "points">813 AND "country"='united states' AND "react">0.152;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?`:
```sql
                SELECT MIN("total") FROM "missed_the_cut" WHERE "year_s_won"='1968 , 1971' AND "to_par"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest To Par, when Player is "Johnny Miller"?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest To Par, when Player is "Johnny Miller"?`:
```sql
                SELECT MIN("to_par") FROM "missed_the_cut" WHERE "player"='johnny miller';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Total is greater than 148, and when To Par is "12"?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Total is greater than 148, and when To Par is "12"?`:
```sql
                SELECT "player" FROM "missed_the_cut" WHERE "total">148 AND "to_par"=12;
```