cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What genre is the song recorded in 1926?`

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

CREATE TABLE "grammy_hall_of_fame" (
  "year_recorded" text,
  "title" text,
  "genre" text,
  "label" text,
  "year_inducted" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genre is the song recorded in 1926?`:
```sql
                SELECT "genre" FROM "grammy_hall_of_fame" WHERE "year_recorded"='1926';
```
## Task
Generate a SQL query to answer the following question:
`Which Party has a Residence of san diego?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has a Residence of san diego?`:
```sql
                SELECT "party" FROM "current_members" WHERE "residence"='san diego';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Senate  has a Years in Assembly of 2010–present, and toni atkins?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Senate  has a Years in Assembly of 2010–present, and toni atkins?`:
```sql
                SELECT "years_in_senate" FROM "current_members" WHERE "years_in_assembly"='2010–present' AND "name"='toni atkins';
```
## Task
Generate a SQL query to answer the following question:
`Which Party has Years in Senate of —, and  Years in Assembly of 2012–present?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has Years in Senate of —, and  Years in Assembly of 2012–present?`:
```sql
                SELECT "party" FROM "current_members" WHERE "years_in_senate"='—' AND "years_in_assembly"='2012–present';
```
## Task
Generate a SQL query to answer the following question:
`Show the Residence whose Name is rich gordon?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Show the Residence whose Name is rich gordon?`:
```sql
                SELECT "residence" FROM "current_members" WHERE "name"='rich gordon';
```
## Task
Generate a SQL query to answer the following question:
`Which Years in Assembly has a Name of toni atkins?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Years in Assembly has a Name of toni atkins?`:
```sql
                SELECT "years_in_assembly" FROM "current_members" WHERE "name"='toni atkins';
```
## Task
Generate a SQL query to answer the following question:
`Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?`

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

CREATE TABLE "current_members" (
  "name" text,
  "residence" text,
  "party" text,
  "years_in_assembly" text,
  "years_in_senate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has Years in Assembly of 2008–present, and a Name of tom ammiano?`:
```sql
                SELECT "party" FROM "current_members" WHERE "years_in_assembly"='2008–present' AND "name"='tom ammiano';
```
## Task
Generate a SQL query to answer the following question:
`In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?`

### 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 `In what year(s) did Raymond Floyd have a total of less than 291 and a To par of +10?`:
```sql
                SELECT "year_s_won" FROM "made_the_cut" WHERE "total"<291 AND "to_par"='+10' AND "player"='raymond floyd';
```
## Task
Generate a SQL query to answer the following question:
`What was Jeff Sluman's To par when his total was smaller than 284?`

### 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 Jeff Sluman's To par when his total was smaller than 284?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "total"<284 AND "player"='jeff sluman';
```
## Task
Generate a SQL query to answer the following question:
`What was the finish for Lanny Wadkins of the United States?`

### 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 Lanny Wadkins of the United States?`:
```sql
                SELECT "finish" FROM "made_the_cut" WHERE "country"='united states' AND "player"='lanny wadkins';
```
## Task
Generate a SQL query to answer the following question:
`Which player had a To par of +11?`

### 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 `Which player had a To par of +11?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "to_par"='+11';
```
## Task
Generate a SQL query to answer the following question:
`From which country was the player whose year(s) won was 1983?`

### 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 `From which country was the player whose year(s) won was 1983?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1983';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the player whose finish was t66?`

### 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 is the total for the player whose finish was t66?`:
```sql
                SELECT "total" FROM "made_the_cut" WHERE "finish"='t66';
```
## Task
Generate a SQL query to answer the following question:
`What is the type of the locomotive which was delivered in 1857-59?`

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

CREATE TABLE "locomotives_and_wagons" (
  "class" text,
  "quantity" real,
  "type" text,
  "delivered" text,
  "k_b_sts_b_class" text,
  "retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of the locomotive which was delivered in 1857-59?`:
```sql
                SELECT "type" FROM "locomotives_and_wagons" WHERE "delivered"='1857-59';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest quantity of the b ix k.b.sts.b.?`

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

CREATE TABLE "locomotives_and_wagons" (
  "class" text,
  "quantity" real,
  "type" text,
  "delivered" text,
  "k_b_sts_b_class" text,
  "retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest quantity of the b ix k.b.sts.b.?`:
```sql
                SELECT MAX("quantity") FROM "locomotives_and_wagons" WHERE "k_b_sts_b_class"='b ix';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?`

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

CREATE TABLE "locomotives_and_wagons" (
  "class" text,
  "quantity" real,
  "type" text,
  "delivered" text,
  "k_b_sts_b_class" text,
  "retired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest quantity of the 1b n2 type, which was retired in 1907-12?`:
```sql
                SELECT MIN("quantity") FROM "locomotives_and_wagons" WHERE "type"='1b n2' AND "retired"='1907-12';
```
## Task
Generate a SQL query to answer the following question:
`What district is Jim Moran the incumbent for.`

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

CREATE TABLE "virginia" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Jim Moran the incumbent for.`:
```sql
                SELECT "district" FROM "virginia" WHERE "incumbent"='jim moran';
```
## Task
Generate a SQL query to answer the following question:
`What was the election result before 2004 where Eric Cantor was the incumbent?`

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

CREATE TABLE "virginia" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the election result before 2004 where Eric Cantor was the incumbent?`:
```sql
                SELECT "results" FROM "virginia" WHERE "first_elected"<2004 AND "incumbent"='eric cantor';
```
## Task
Generate a SQL query to answer the following question:
`What is the common English for the Italian word san gallo?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common English for the Italian word san gallo?`:
```sql
                SELECT "common_english" FROM "names_in_national_languages" WHERE "italian"='san gallo';
```
## Task
Generate a SQL query to answer the following question:
`What is the italian word for Glarus?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the italian word for Glarus?`:
```sql
                SELECT "italian" FROM "names_in_national_languages" WHERE "common_english"='glarus';
```
## Task
Generate a SQL query to answer the following question:
`What is the common english word with the abbr of ai?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the common english word with the abbr of ai?`:
```sql
                SELECT "common_english" FROM "names_in_national_languages" WHERE "abbr"='ai';
```
## Task
Generate a SQL query to answer the following question:
`What is the abbr of argovia?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbr of argovia?`:
```sql
                SELECT "abbr" FROM "names_in_national_languages" WHERE "italian"='argovia';
```
## Task
Generate a SQL query to answer the following question:
`What is the french word for fribourg?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the french word for fribourg?`:
```sql
                SELECT "french" FROM "names_in_national_languages" WHERE "common_english"='fribourg';
```
## Task
Generate a SQL query to answer the following question:
`What is the abbr for zug?`

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

CREATE TABLE "names_in_national_languages" (
  "abbr" text,
  "common_english" text,
  "french" text,
  "italian" text,
  "romansh" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the abbr for zug?`:
```sql
                SELECT "abbr" FROM "names_in_national_languages" WHERE "common_english"='zug';
```
## Task
Generate a SQL query to answer the following question:
`What is the Finish on June 1, 2008?`

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

CREATE TABLE "race_record" (
  "date" text,
  "race" text,
  "track" text,
  "location" text,
  "distance" text,
  "surface" text,
  "purse" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Finish on June 1, 2008?`:
```sql
                SELECT "finish" FROM "race_record" WHERE "date"='june 1, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the Track in Louisville, Kentucky?`

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

CREATE TABLE "race_record" (
  "date" text,
  "race" text,
  "track" text,
  "location" text,
  "distance" text,
  "surface" text,
  "purse" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Track in Louisville, Kentucky?`:
```sql
                SELECT "track" FROM "race_record" WHERE "location"='louisville, kentucky';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the Event on March 30, 2008?`

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

CREATE TABLE "race_record" (
  "date" text,
  "race" text,
  "track" text,
  "location" text,
  "distance" text,
  "surface" text,
  "purse" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the Event on March 30, 2008?`:
```sql
                SELECT "location" FROM "race_record" WHERE "date"='march 30, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What Race has a Purse of $300,000?`

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

CREATE TABLE "race_record" (
  "date" text,
  "race" text,
  "track" text,
  "location" text,
  "distance" text,
  "surface" text,
  "purse" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Race has a Purse of $300,000?`:
```sql
                SELECT "race" FROM "race_record" WHERE "purse"='$300,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Purse on January 3, 2010?`

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

CREATE TABLE "race_record" (
  "date" text,
  "race" text,
  "track" text,
  "location" text,
  "distance" text,
  "surface" text,
  "purse" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Purse on January 3, 2010?`:
```sql
                SELECT "purse" FROM "race_record" WHERE "date"='january 3, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What did United States place when the score was 71-70-72-68=281?`

### 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 did United States place when the score was 71-70-72-68=281?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "score"='71-70-72-68=281';
```
## Task
Generate a SQL query to answer the following question:
`What was the average money for United States when Lanny Wadkins played?`

### 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 was the average money for United States when Lanny Wadkins played?`:
```sql
                SELECT AVG("money") FROM "final_leaderboard" WHERE "country"='united states' AND "player"='lanny wadkins';
```
## Task
Generate a SQL query to answer the following question:
`What was the to par when the score was 71-70-72-68=281?`

### 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 was the to par when the score was 71-70-72-68=281?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "score"='71-70-72-68=281';
```
## Task
Generate a SQL query to answer the following question:
`What is the away team of the game with an attendance of 117?`

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

CREATE TABLE "ties" (
  "tie_no" real,
  "home_team" text,
  "score" text,
  "away_team" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the away team of the game with an attendance of 117?`:
```sql
                SELECT "away_team" FROM "ties" WHERE "attendance"=117;
```
## Task
Generate a SQL query to answer the following question:
`Madrid (Stuttgart) tournament with a 1996 of A has this for a Career SR?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Madrid (Stuttgart) tournament with a 1996 of A has this for a Career SR?`:
```sql
                SELECT "career_sr" FROM "doubles_performance_timeline" WHERE "1996"='a' AND "tournament"='madrid (stuttgart)';
```
## Task
Generate a SQL query to answer the following question:
`Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which election has a conservative first party, Rowland Smith as first member, and Sir Henry Wilmot, Bt as second member?`:
```sql
                SELECT "election" FROM "m_ps_1832_1885" WHERE "first_party"='conservative' AND "first_member"='rowland smith' AND "second_member"='sir henry wilmot, bt';
```
## Task
Generate a SQL query to answer the following question:
`Which of the first parties has second member as  Charles Robert Colvile, and a liberal second party?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the first parties has second member as  Charles Robert Colvile, and a liberal second party?`:
```sql
                SELECT "first_party" FROM "m_ps_1832_1885" WHERE "second_member"='charles robert colvile' AND "second_party"='liberal';
```
## Task
Generate a SQL query to answer the following question:
`Which election has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which election has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?`:
```sql
                SELECT "election" FROM "m_ps_1832_1885" WHERE "second_member"='charles robert colvile' AND "first_party"='conservative' AND "first_member"='william mundy';
```
## Task
Generate a SQL query to answer the following question:
`Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?`:
```sql
                SELECT "second_party" FROM "m_ps_1832_1885" WHERE "second_member"='charles robert colvile' AND "first_party"='conservative' AND "first_member"='william mundy';
```
## Task
Generate a SQL query to answer the following question:
`Who is the first member in the 1868 election?`

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

CREATE TABLE "m_ps_1832_1885" (
  "election" text,
  "first_member" text,
  "first_party" text,
  "second_member" text,
  "second_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the first member in the 1868 election?`:
```sql
                SELECT "first_member" FROM "m_ps_1832_1885" WHERE "election"='1868';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SOURCE WITH A TYPE OF TRANSFER AND MEX?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SOURCE WITH A TYPE OF TRANSFER AND MEX?`:
```sql
                SELECT "source" FROM "out" WHERE "type"='transfer' AND "nat"='mex';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE NAME WITH BAYER LEVERKUSEN?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE NAME WITH BAYER LEVERKUSEN?`:
```sql
                SELECT "name" FROM "out" WHERE "moving_to"='bayer leverkusen';
```
## Task
Generate a SQL query to answer the following question:
`WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT NAME HAS A FREE TRANSFER FREE AND RETIRED?`:
```sql
                SELECT "name" FROM "out" WHERE "transfer_fee"='free' AND "moving_to"='retired';
```
## Task
Generate a SQL query to answer the following question:
`WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS?`

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

CREATE TABLE "out" (
  "nat" text,
  "name" text,
  "moving_to" text,
  "type" text,
  "transfer_window" text,
  "transfer_fee" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT TRANSFER FEE HAS A TYPE OF TRANSFER FOR DOS SANTOS?`:
```sql
                SELECT "transfer_fee" FROM "out" WHERE "type"='transfer' AND "name"='dos santos';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the all around with a 37.75 total?`

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

CREATE TABLE "finals_6_balls" (
  "place" real,
  "nation" text,
  "all_around" real,
  "final" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the all around with a 37.75 total?`:
```sql
                SELECT SUM("all_around") FROM "finals_6_balls" WHERE "total"=37.75;
```
## Task
Generate a SQL query to answer the following question:
`What is the average final with an all around larger than 19.4 and total more than 39.9?`

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

CREATE TABLE "finals_6_balls" (
  "place" real,
  "nation" text,
  "all_around" real,
  "final" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average final with an all around larger than 19.4 and total more than 39.9?`:
```sql
                SELECT AVG("final") FROM "finals_6_balls" WHERE "all_around">19.4 AND "total">39.9;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the storm active during season aggregates?`

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

CREATE TABLE "season_effects" (
  "name" text,
  "dates_active" text,
  "windspeeds" text,
  "pressure" text,
  "deaths" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the storm active during season aggregates?`:
```sql
                SELECT "name" FROM "season_effects" WHERE "dates_active"='season aggregates';
```
## Task
Generate a SQL query to answer the following question:
`What report has tour match as the status, with an against less than 22?`

### 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What report has tour match as the status, with an against less than 22?`:
```sql
                SELECT "report" FROM "matches" WHERE "status"='tour match' AND "against"<22;
```
## Task
Generate a SQL query to answer the following question:
`How many againsts have asba park, kimberley as the venue?`

### 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many againsts have asba park, kimberley as the venue?`:
```sql
                SELECT SUM("against") FROM "matches" WHERE "venue"='asba park, kimberley';
```
## Task
Generate a SQL query to answer the following question:
`What status has gauteng falcons 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status has gauteng falcons as the opposing team?`:
```sql
                SELECT "status" FROM "matches" WHERE "opposing_team"='gauteng falcons';
```
## Task
Generate a SQL query to answer the following question:
`What opposing team has second test as the status?`

### 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opposing team has second test as the status?`:
```sql
                SELECT "opposing_team" FROM "matches" WHERE "status"='second test';
```
## Task
Generate a SQL query to answer the following question:
`What report has gauteng falcons 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What report has gauteng falcons as the opposing team?`:
```sql
                SELECT "report" FROM "matches" WHERE "opposing_team"='gauteng falcons';
```
## Task
Generate a SQL query to answer the following question:
`What status has 18 as the against?`

### 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,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What status has 18 as the against?`:
```sql
                SELECT "status" FROM "matches" WHERE "against"=18;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of recepits per arrival in 2010 (col 2)/(col 1) USD with colombia (1) as the selected carribean and latin american country?`

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

CREATE TABLE "comparative_performance_in_the_latin_ame" (
  "selected_caribbean_and_n_latin_america_countries" text,
  "internl_tourist_arrivals_2011_x1000" real,
  "internl_tourism_receipts_2011_million_usd" text,
  "receipts_per_arrival_2010_col_2_col_1_usd" text,
  "receipts_per_capita_2005_usd" real,
  "revenues_as_pct_of_exports_goods_and_services_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of recepits per arrival in 2010 (col 2)/(col 1) USD with colombia (1) as the selected carribean and latin american country?`:
```sql
                SELECT "receipts_per_arrival_2010_col_2_col_1_usd" FROM "comparative_performance_in_the_latin_ame" WHERE "selected_caribbean_and_n_latin_america_countries"='colombia (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 17th c., when Initial-Syllable Open/Semi-Open Unstressed Vowels is "o /ɵ/"?`:
```sql
                SELECT "17th_c" FROM "initial_unstressed_syllables" WHERE "initial_syllable_open_semi_open_unstressed_vowels"='o /ɵ/';
```
## Task
Generate a SQL query to answer the following question:
`What is British, when Examples is "November, rotunda, colossus, proscenium"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is British, when Examples is "November, rotunda, colossus, proscenium"?`:
```sql
                SELECT "british" FROM "initial_unstressed_syllables" WHERE "examples"='november, rotunda, colossus, proscenium';
```
## Task
Generate a SQL query to answer the following question:
`What is American, when British is "ɪ, ə", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is "æ /ɨ/"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is American, when British is "ɪ, ə", and when Initial-Syllable Open/Semi-Open Unstressed Vowels is "æ /ɨ/"?`:
```sql
                SELECT "american" FROM "initial_unstressed_syllables" WHERE "british"='ɪ, ə' AND "initial_syllable_open_semi_open_unstressed_vowels"='æ /ɨ/';
```
## Task
Generate a SQL query to answer the following question:
`What is Initial-Syllable Open/Semi-Open Unstresses Vowels, when Australian is "ə"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Initial-Syllable Open/Semi-Open Unstresses Vowels, when Australian is "ə"?`:
```sql
                SELECT "initial_syllable_open_semi_open_unstressed_vowels" FROM "initial_unstressed_syllables" WHERE "australian"='ə';
```
## Task
Generate a SQL query to answer the following question:
`What is Australian, when British is "aɪ, ɪ, ə"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Australian, when British is "aɪ, ɪ, ə"?`:
```sql
                SELECT "australian" FROM "initial_unstressed_syllables" WHERE "british"='aɪ, ɪ, ə';
```
## Task
Generate a SQL query to answer the following question:
`What is American, when Initial-Syllable Open/Semi-Open Unstressed Vowels is "y /aɪ, ɨ/"?`

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

CREATE TABLE "initial_unstressed_syllables" (
  "initial_syllable_open_semi_open_unstressed_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text,
  "examples" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is American, when Initial-Syllable Open/Semi-Open Unstressed Vowels is "y /aɪ, ɨ/"?`:
```sql
                SELECT "american" FROM "initial_unstressed_syllables" WHERE "initial_syllable_open_semi_open_unstressed_vowels"='y /aɪ, ɨ/';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for catalog RCD 10160?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for catalog RCD 10160?`:
```sql
                SELECT "date" FROM "release_history" WHERE "catalog"='rcd 10160';
```
## Task
Generate a SQL query to answer the following question:
`What country has CD format and catalog RCD 10523?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has CD format and catalog RCD 10523?`:
```sql
                SELECT "country" FROM "release_history" WHERE "format"='cd' AND "catalog"='rcd 10523';
```
## Task
Generate a SQL query to answer the following question:
`Which country is dated October 20, 1976?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is dated October 20, 1976?`:
```sql
                SELECT "country" FROM "release_history" WHERE "date"='october 20, 1976';
```
## Task
Generate a SQL query to answer the following question:
`Which label has the catalog CDZAP22?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which label has the catalog CDZAP22?`:
```sql
                SELECT "label" FROM "release_history" WHERE "catalog"='cdzap22';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the catalog CDZAP22 in the United Kingdom?`

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

CREATE TABLE "release_history" (
  "country" text,
  "date" text,
  "label" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the catalog CDZAP22 in the United Kingdom?`:
```sql
                SELECT "date" FROM "release_history" WHERE "country"='united kingdom' AND "catalog"='cdzap22';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "66", when Country is "United States", and when Player is "Dudley Hart"?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is "66", when Country is "United States", and when Player is "Dudley Hart"?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score"=66 AND "country"='united states' AND "player"='dudley hart';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Score, when Place is "1"?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Score, when Place is "1"?`:
```sql
                SELECT MIN("score") FROM "first_round" WHERE "place"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Score is "66", and when Player is "Brad Faxon"?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Score is "66", and when Player is "Brad Faxon"?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=66 AND "player"='brad faxon';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent in the final after 2008 at the Paul Hunter Classic?`

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

CREATE TABLE "pro_am_event_finals_5_4_titles_1_runner_" (
  "outcome" text,
  "year" real,
  "championship" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent in the final after 2008 at the Paul Hunter Classic?`:
```sql
                SELECT "opponent_in_the_final" FROM "pro_am_event_finals_5_4_titles_1_runner_" WHERE "year">2008 AND "championship"='paul hunter classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?`

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

CREATE TABLE "indiana" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?`:
```sql
                SELECT MAX("first_elected") FROM "indiana" WHERE "results"='lost re-election democratic gain' AND "incumbent"='john hostettler';
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner/operator of the line from Kambalda to Esperance?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner/operator of the line from Kambalda to Esperance?`:
```sql
                SELECT "owner_operator" FROM "onshore_pipelines" WHERE "from_to"='kambalda to esperance';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the line from Karratha to Port Hedland?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the line from Karratha to Port Hedland?`:
```sql
                SELECT "name_year_commissioned" FROM "onshore_pipelines" WHERE "from_to"='karratha to port hedland';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum diameter of the Mid West Gas Pipeline (1999)?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum diameter of the Mid West Gas Pipeline (1999)?`:
```sql
                SELECT "maximum_diameter" FROM "onshore_pipelines" WHERE "name_year_commissioned"='mid west gas pipeline (1999)';
```
## Task
Generate a SQL query to answer the following question:
`Who is the owner operator who has license number PL 59?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the owner operator who has license number PL 59?`:
```sql
                SELECT "owner_operator" FROM "onshore_pipelines" WHERE "licence_number"='pl 59';
```
## Task
Generate a SQL query to answer the following question:
`What is the license number where the maximum diameter is 400 mm?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the license number where the maximum diameter is 400 mm?`:
```sql
                SELECT "licence_number" FROM "onshore_pipelines" WHERE "maximum_diameter"='400 mm';
```
## Task
Generate a SQL query to answer the following question:
`What is the name where the license number is PL 22?`

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

CREATE TABLE "onshore_pipelines" (
  "name_year_commissioned" text,
  "owner_operator" text,
  "length" text,
  "maximum_diameter" text,
  "from_to" text,
  "licence_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name where the license number is PL 22?`:
```sql
                SELECT "name_year_commissioned" FROM "onshore_pipelines" WHERE "licence_number"='pl 22';
```
## Task
Generate a SQL query to answer the following question:
`Which venue has 16 against?`

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

CREATE TABLE "1978" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has 16 against?`:
```sql
                SELECT "venue" FROM "1978" WHERE "against"=16;
```
## Task
Generate a SQL query to answer the following question:
`What is the against for the opposing team of Wales with the status of Five Nations?`

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

CREATE TABLE "1978" (
  "opposing_teams" text,
  "against" real,
  "date" text,
  "venue" text,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the against for the opposing team of Wales with the status of Five Nations?`:
```sql
                SELECT AVG("against") FROM "1978" WHERE "status"='five nations' AND "opposing_teams"='wales';
```