cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the club when during the 2007-08 season had 12th in serie c2/c?`

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

CREATE TABLE "girone_c" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the club when during the 2007-08 season had 12th in serie c2/c?`:
```sql
                SELECT "club" FROM "girone_c" WHERE "2007_08_season"='12th in serie c2/c';
```
## Task
Generate a SQL query to answer the following question:
`Who was the club when during the 2007-08 season had 14th in serie c2/c?`

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

CREATE TABLE "girone_c" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the club when during the 2007-08 season had 14th in serie c2/c?`:
```sql
                SELECT "club" FROM "girone_c" WHERE "2007_08_season"='14th in serie c2/c';
```
## Task
Generate a SQL query to answer the following question:
`What is the capacity when the 2007–08 season was 1st Serie D/I?`

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

CREATE TABLE "girone_c" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capacity when the 2007–08 season was 1st Serie D/I?`:
```sql
                SELECT "capacity" FROM "girone_c" WHERE "2007_08_season"='1st serie d/i';
```
## Task
Generate a SQL query to answer the following question:
`What was the largest capacity when the club was F.C. Igea Virtus Barcellona?`

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

CREATE TABLE "girone_c" (
  "club" text,
  "city" text,
  "stadium" text,
  "capacity" real,
  "2007_08_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the largest capacity when the club was F.C. Igea Virtus Barcellona?`:
```sql
                SELECT MAX("capacity") FROM "girone_c" WHERE "club"='f.c. igea virtus barcellona';
```
## Task
Generate a SQL query to answer the following question:
`Who had a total of 34?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a total of 34?`:
```sql
                SELECT "name" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total"=34;
```
## Task
Generate a SQL query to answer the following question:
`What rank is Takatōriki having less than 30 total?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Takatōriki having less than 30 total?`:
```sql
                SELECT "highest_rank" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total"<30 AND "name"='takatōriki';
```
## Task
Generate a SQL query to answer the following question:
`What was the total when the first was November 1966?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total when the first was November 1966?`:
```sql
                SELECT SUM("total") FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "first"='november 1966';
```
## Task
Generate a SQL query to answer the following question:
`What is the last when the first was January 2001 and more than 26 total?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the last when the first was January 2001 and more than 26 total?`:
```sql
                SELECT "last" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "total">26 AND "first"='january 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest total when the last was September 1970?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest total when the last was September 1970?`:
```sql
                SELECT MAX("total") FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "last"='september 1970';
```
## Task
Generate a SQL query to answer the following question:
`What rank is Takatōriki?`

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

CREATE TABLE "most_tournaments_in_junior_san_yaku_komu" (
  "name" text,
  "total" real,
  "first" text,
  "last" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank is Takatōriki?`:
```sql
                SELECT "highest_rank" FROM "most_tournaments_in_junior_san_yaku_komu" WHERE "name"='takatōriki';
```
## Task
Generate a SQL query to answer the following question:
`What year has 54 (73) points?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year has 54 (73) points?`:
```sql
                SELECT SUM("year") FROM "complete_world_championship_formula_one_" WHERE "pts"='54 (73)';
```
## Task
Generate a SQL query to answer the following question:
`What is the chassis more recent than 1967?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the chassis more recent than 1967?`:
```sql
                SELECT "chassis" FROM "complete_world_championship_formula_one_" WHERE "year">1967;
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the Lotus 25 chassis?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the Lotus 25 chassis?`:
```sql
                SELECT AVG("year") FROM "complete_world_championship_formula_one_" WHERE "chassis"='lotus 25';
```
## Task
Generate a SQL query to answer the following question:
`What is the year of the Lotus 18 chassis?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "pts" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year of the Lotus 18 chassis?`:
```sql
                SELECT COUNT("year") FROM "complete_world_championship_formula_one_" WHERE "chassis"='lotus 18';
```
## Task
Generate a SQL query to answer the following question:
`What is First Elected, when District is "Minnesota 2"?`

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

CREATE TABLE "minnesota" (
  "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 First Elected, when District is "Minnesota 2"?`:
```sql
                SELECT "first_elected" FROM "minnesota" WHERE "district"='minnesota 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?`

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

CREATE TABLE "minnesota" (
  "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 lowest First Elected, when Party is "Republican", and when District is "Minnesota 1"?`:
```sql
                SELECT MIN("first_elected") FROM "minnesota" WHERE "party"='republican' AND "district"='minnesota 1';
```
## Task
Generate a SQL query to answer the following question:
`What is Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?`

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

CREATE TABLE "minnesota" (
  "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 Party, when Results is "Re-Elected", when First Elected is greater than 1990, and when District is "Minnesota 4"?`:
```sql
                SELECT "party" FROM "minnesota" WHERE "results"='re-elected' AND "first_elected">1990 AND "district"='minnesota 4';
```
## Task
Generate a SQL query to answer the following question:
`What is Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?`

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

CREATE TABLE "minnesota" (
  "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 Incumbent, when Results is "Re-Elected", when Party is "Democratic", and when District is "Minnesota 7"?`:
```sql
                SELECT "incumbent" FROM "minnesota" WHERE "results"='re-elected' AND "party"='democratic' AND "district"='minnesota 7';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Place of t5, and a Country of united states?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Place of t5, and a Country of united states?`:
```sql
                SELECT "score" FROM "final_round" WHERE "place"='t5' AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Name The Score of Player of seve ballesteros?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name The Score of Player of seve ballesteros?`:
```sql
                SELECT "score" FROM "final_round" WHERE "player"='seve ballesteros';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Place of 2?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Place of 2?`:
```sql
                SELECT "country" FROM "final_round" WHERE "place"='2';
```
## Task
Generate a SQL query to answer the following question:
`How many wins did they have when they had 5 losses?`

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

CREATE TABLE "2007_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins did they have when they had 5 losses?`:
```sql
                SELECT "wins" FROM "2007_ladder" WHERE "losses"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?`

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

CREATE TABLE "2007_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes did they have against smaller than 1544, 13 wins, and draws larger than 0?`:
```sql
                SELECT COUNT("byes") FROM "2007_ladder" WHERE "against"<1544 AND "wins"=13 AND "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`How many byes has a draw larger than 0?`

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

CREATE TABLE "2007_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many byes has a draw larger than 0?`:
```sql
                SELECT COUNT("byes") FROM "2007_ladder" WHERE "draws">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest against that has less than 9 wins, and draws smaller than 0?`

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

CREATE TABLE "2007_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest against that has less than 9 wins, and draws smaller than 0?`:
```sql
                SELECT MIN("against") FROM "2007_ladder" WHERE "wins"<9 AND "draws"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins that has byes less than 0?`

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

CREATE TABLE "2007_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins that has byes less than 0?`:
```sql
                SELECT COUNT("wins") FROM "2007_ladder" WHERE "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the most money for the score 75-74-72-67=288?`

### 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 most money for the score 75-74-72-67=288?`:
```sql
                SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='75-74-72-67=288';
```
## Task
Generate a SQL query to answer the following question:
`What's the American pronunciation when the Australian is əʉ?`

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

CREATE TABLE "long_vowels" (
  "long_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the American pronunciation when the Australian is əʉ?`:
```sql
                SELECT "american" FROM "long_vowels" WHERE "australian"='əʉ';
```
## Task
Generate a SQL query to answer the following question:
`What is the 17th c. pronunciation when the british is əʊ?`

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

CREATE TABLE "long_vowels" (
  "long_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 17th c. pronunciation when the british is əʊ?`:
```sql
                SELECT "17th_c" FROM "long_vowels" WHERE "british"='əʊ';
```
## Task
Generate a SQL query to answer the following question:
`What is the 17th c. pronunciation when the British is i and the long vowels are e /iː/?`

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

CREATE TABLE "long_vowels" (
  "long_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 17th c. pronunciation when the British is i and the long vowels are e /iː/?`:
```sql
                SELECT "17th_c" FROM "long_vowels" WHERE "british"='i' AND "long_vowels"='e /iː/';
```
## Task
Generate a SQL query to answer the following question:
`What's the British pronunciation when the American and Australian is i?`

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

CREATE TABLE "long_vowels" (
  "long_vowels" text,
  "17th_c" text,
  "american" text,
  "british" text,
  "australian" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the British pronunciation when the American and Australian is i?`:
```sql
                SELECT "british" FROM "long_vowels" WHERE "american"='i' AND "australian"='i';
```
## Task
Generate a SQL query to answer the following question:
`What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?`

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

CREATE TABLE "canada" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Height if the weight is kg (lb), the club is Sainte-foy and the pos is cf?`:
```sql
                SELECT "height" FROM "canada" WHERE "weight"='kg (lb)' AND "club"='sainte-foy' AND "pos"='cf';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of valérie dionne at Club Sainte-Foy?`

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

CREATE TABLE "canada" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of valérie dionne at Club Sainte-Foy?`:
```sql
                SELECT "height" FROM "canada" WHERE "club"='sainte-foy' AND "name"='valérie dionne';
```
## Task
Generate a SQL query to answer the following question:
`Who has a Date of Birth 1980-07-29?`

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

CREATE TABLE "canada" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Date of Birth 1980-07-29?`:
```sql
                SELECT "name" FROM "canada" WHERE "date_of_birth"='1980-07-29';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the team from cisne fairfield school?`

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

CREATE TABLE "cooperative_programs" (
  "team_name" text,
  "schools" text,
  "sports" text,
  "host" text,
  "nickname_s" text,
  "colors" text,
  "enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team from cisne fairfield school?`:
```sql
                SELECT "team_name" FROM "cooperative_programs" WHERE "schools"='cisne fairfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the team from goreville vienna school?`

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

CREATE TABLE "cooperative_programs" (
  "team_name" text,
  "schools" text,
  "sports" text,
  "host" text,
  "nickname_s" text,
  "colors" text,
  "enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the team from goreville vienna school?`:
```sql
                SELECT "team_name" FROM "cooperative_programs" WHERE "schools"='goreville vienna';
```
## Task
Generate a SQL query to answer the following question:
`What are the colors of the team hosted by Christopher?`

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

CREATE TABLE "cooperative_programs" (
  "team_name" text,
  "schools" text,
  "sports" text,
  "host" text,
  "nickname_s" text,
  "colors" text,
  "enrollment_2013_14" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors of the team hosted by Christopher?`:
```sql
                SELECT "colors" FROM "cooperative_programs" WHERE "host"='christopher';
```
## Task
Generate a SQL query to answer the following question:
`What is team 1 if Renova is team 2?`

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

CREATE TABLE "second_qualifying_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is team 1 if Renova is team 2?`:
```sql
                SELECT "team_1" FROM "second_qualifying_round" WHERE "team_2"='renova';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest to par for the 76-70-76-76=298 score?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest to par for the 76-70-76-76=298 score?`:
```sql
                SELECT MAX("to_par") FROM "final_leaderboard" WHERE "score"='76-70-76-76=298';
```
## Task
Generate a SQL query to answer the following question:
`What score has a to par of 12 and is from Jersey?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a to par of 12 and is from Jersey?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "to_par"=12 AND "country"='jersey';
```
## Task
Generate a SQL query to answer the following question:
`What is the average money for a to par of 15, and is from the United States?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average money for a to par of 15, and is from the United States?`:
```sql
                SELECT AVG("money") FROM "final_leaderboard" WHERE "to_par"=15 AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of money that has a t2 place, is from the United States for player Leo Diegel?`:
```sql
                SELECT COUNT("money") FROM "final_leaderboard" WHERE "place"='t2' AND "country"='united states' AND "player"='leo diegel';
```
## Task
Generate a SQL query to answer the following question:
`What county has less than $188 and a score of 74-76-73-75=298?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What county has less than $188 and a score of 74-76-73-75=298?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "money"<188 AND "score"='74-76-73-75=298';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Location is "Winnipeg, Manitoba , Canada"?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "location"='winnipeg, manitoba , canada';
```
## Task
Generate a SQL query to answer the following question:
`What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "location"='butte, montana , united states' AND "opponent"='jerome smith';
```
## Task
Generate a SQL query to answer the following question:
`What is Method, when Time is "3:20"?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Method, when Time is "3:20"?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='3:20';
```
## Task
Generate a SQL query to answer the following question:
`What is Location, when Opponent is "Mario Rinaldi"?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Location, when Opponent is "Mario Rinaldi"?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "opponent"='mario rinaldi';
```
## Task
Generate a SQL query to answer the following question:
`How much Grid has a Time/Retired of +0.785, and Laps larger than 29?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Grid has a Time/Retired of +0.785, and Laps larger than 29?`:
```sql
                SELECT SUM("grid") FROM "125cc_classification" WHERE "time_retired"='+0.785' AND "laps">29;
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has more than 8 Laps, and a Manufacturer of honda, and a Time/Retired of retirement?`:
```sql
                SELECT "grid" FROM "125cc_classification" WHERE "laps">8 AND "manufacturer"='honda' AND "time_retired"='retirement';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Grid smaller than 5, and a Time/Retired of retirement?`:
```sql
                SELECT SUM("laps") FROM "125cc_classification" WHERE "grid"<5 AND "time_retired"='retirement';
```
## Task
Generate a SQL query to answer the following question:
`Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?`

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

CREATE TABLE "125cc_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time/Retired has Laps smaller than 14, and a Rider of darren barton?`:
```sql
                SELECT "time_retired" FROM "125cc_classification" WHERE "laps"<14 AND "rider"='darren barton';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest lost entry for a team with fewer than 21 goals for?`

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

CREATE TABLE "third_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest lost entry for a team with fewer than 21 goals for?`:
```sql
                SELECT MIN("lost") FROM "third_division_final_table" WHERE "goals_for"<21;
```
## Task
Generate a SQL query to answer the following question:
`What was the position has a played entry of more than 24?`

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

CREATE TABLE "third_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position has a played entry of more than 24?`:
```sql
                SELECT COUNT("position") FROM "third_division_final_table" WHERE "played">24;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest position for Nelson, with a played entry of more than 24?`

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

CREATE TABLE "third_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest position for Nelson, with a played entry of more than 24?`:
```sql
                SELECT MAX("position") FROM "third_division_final_table" WHERE "team"='nelson' AND "played">24;
```
## Task
Generate a SQL query to answer the following question:
`What was the average Lost entry for Newton, for games with a drawn less than 5?`

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

CREATE TABLE "third_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Lost entry for Newton, for games with a drawn less than 5?`:
```sql
                SELECT AVG("lost") FROM "third_division_final_table" WHERE "team"='newton' AND "drawn"<5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?`

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

CREATE TABLE "third_division_final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?`:
```sql
                SELECT MAX("lost") FROM "third_division_final_table" WHERE "drawn"<6 AND "goals_against"<44 AND "points_1"='27';
```
## Task
Generate a SQL query to answer the following question:
`Who has a Snatch of 157.0?`

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

CREATE TABLE "heavyweight_105_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" text,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a Snatch of 157.0?`:
```sql
                SELECT "name" FROM "heavyweight_105_kg" WHERE "snatch"='157.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the total bodyweight of everyone that has a Snatch of 153.0?`

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

CREATE TABLE "heavyweight_105_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" text,
  "clean_jerk" text,
  "total_kg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total bodyweight of everyone that has a Snatch of 153.0?`:
```sql
                SELECT SUM("bodyweight") FROM "heavyweight_105_kg" WHERE "snatch"='153.0';
```
## Task
Generate a SQL query to answer the following question:
`What ranking is the Battersea Power Station?`

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

CREATE TABLE "tallest_buildings_and_structures" (
  "rank" text,
  "name" text,
  "height_metres_ft" text,
  "floors" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What ranking is the Battersea Power Station?`:
```sql
                SELECT "rank" FROM "tallest_buildings_and_structures" WHERE "name"='battersea power station';
```
## Task
Generate a SQL query to answer the following question:
`What ranking is the structure with 01.0 87 floors?`

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

CREATE TABLE "tallest_buildings_and_structures" (
  "rank" text,
  "name" text,
  "height_metres_ft" text,
  "floors" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What ranking is the structure with 01.0 87 floors?`:
```sql
                SELECT "rank" FROM "tallest_buildings_and_structures" WHERE "floors"='01.0 87';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Attendance, when Date is "Oct. 26"?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "raiders_points" real,
  "opponents" real,
  "raiders_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Attendance, when Date is "Oct. 26"?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "date"='oct. 26';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "raiders_points" real,
  "opponents" real,
  "raiders_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267?`:
```sql
                SELECT MIN("opponents") FROM "schedule" WHERE "raiders_points">38 AND "attendance">'51,267';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "raiders_points" real,
  "opponents" real,
  "raiders_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?`:
```sql
                SELECT COUNT("opponents") FROM "schedule" WHERE "raiders_points"=42 AND "attendance"<'52,505';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "raiders_points" real,
  "opponents" real,
  "raiders_first_downs" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42?`:
```sql
                SELECT COUNT("raiders_first_downs") FROM "schedule" WHERE "date"='nov. 2' AND "raiders_points">42;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Tournaments, when Highest Rank is "Maegashira 1"?`

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

CREATE TABLE "fastest_progress_to_top_division" (
  "name" text,
  "tournaments" real,
  "pro_debut" text,
  "top_division_debut" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Tournaments, when Highest Rank is "Maegashira 1"?`:
```sql
                SELECT AVG("tournaments") FROM "fastest_progress_to_top_division" WHERE "highest_rank"='maegashira 1';
```
## Task
Generate a SQL query to answer the following question:
`What is Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"?`

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

CREATE TABLE "fastest_progress_to_top_division" (
  "name" text,
  "tournaments" real,
  "pro_debut" text,
  "top_division_debut" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"?`:
```sql
                SELECT "top_division_debut" FROM "fastest_progress_to_top_division" WHERE "tournaments"=12 AND "name"='yamamotoyama';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Tournaments, when Name is "Baruto"?`

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

CREATE TABLE "fastest_progress_to_top_division" (
  "name" text,
  "tournaments" real,
  "pro_debut" text,
  "top_division_debut" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Tournaments, when Name is "Baruto"?`:
```sql
                SELECT MIN("tournaments") FROM "fastest_progress_to_top_division" WHERE "name"='baruto';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Tournaments, when Pro Debut is "July 2002"?`

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

CREATE TABLE "fastest_progress_to_top_division" (
  "name" text,
  "tournaments" real,
  "pro_debut" text,
  "top_division_debut" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Tournaments, when Pro Debut is "July 2002"?`:
```sql
                SELECT MAX("tournaments") FROM "fastest_progress_to_top_division" WHERE "pro_debut"='july 2002';
```
## Task
Generate a SQL query to answer the following question:
`What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"?`

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

CREATE TABLE "fastest_progress_to_top_division" (
  "name" text,
  "tournaments" real,
  "pro_debut" text,
  "top_division_debut" text,
  "highest_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"?`:
```sql
                SELECT "pro_debut" FROM "fastest_progress_to_top_division" WHERE "tournaments">11 AND "highest_rank"='maegashira 1';
```
## Task
Generate a SQL query to answer the following question:
`How many League Cup Goals have 0 as the total goals, with delroy facey as the name?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many League Cup Goals have 0 as the total goals, with delroy facey as the name?`:
```sql
                SELECT COUNT("league_cup_goals") FROM "appearances_and_goals" WHERE "total_goals"=0 AND "name"='delroy facey';
```
## Task
Generate a SQL query to answer the following question:
`How many total goals have 0 (3) as total apps, with league goals less than 0?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total goals have 0 (3) as total apps, with league goals less than 0?`:
```sql
                SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "total_apps"='0 (3)' AND "league_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?`

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

CREATE TABLE "appearances_and_goals" (
  "name" text,
  "position" text,
  "league_apps" text,
  "league_goals" real,
  "fa_cup_apps" text,
  "fa_cup_goals" real,
  "league_cup_apps" text,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?`:
```sql
                SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "total_apps"='1 (3)';
```
## Task
Generate a SQL query to answer the following question:
`What was Stockholm's score when Malmo scored 2?`

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

CREATE TABLE "juries" (
  "song" text,
  "international_jury" text,
  "lule" text,
  "ume" text,
  "sundsvall" text,
  "falun" text,
  "karlstad" text,
  "rebro" text,
  "norrk_ping" text,
  "g_teborg" text,
  "v_xj" text,
  "malm" text,
  "stockholm" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Stockholm's score when Malmo scored 2?`:
```sql
                SELECT "stockholm" FROM "juries" WHERE "malm"='2';
```
## Task
Generate a SQL query to answer the following question:
`What did Vaxjo score when Karlstad scored 1?`

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

CREATE TABLE "juries" (
  "song" text,
  "international_jury" text,
  "lule" text,
  "ume" text,
  "sundsvall" text,
  "falun" text,
  "karlstad" text,
  "rebro" text,
  "norrk_ping" text,
  "g_teborg" text,
  "v_xj" text,
  "malm" text,
  "stockholm" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What did Vaxjo score when Karlstad scored 1?`:
```sql
                SELECT "v_xj" FROM "juries" WHERE "karlstad"='1';
```
## Task
Generate a SQL query to answer the following question:
`What did Sundsvall score when Falun scored 2?`

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

CREATE TABLE "juries" (
  "song" text,
  "international_jury" text,
  "lule" text,
  "ume" text,
  "sundsvall" text,
  "falun" text,
  "karlstad" text,
  "rebro" text,
  "norrk_ping" text,
  "g_teborg" text,
  "v_xj" text,
  "malm" text,
  "stockholm" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What did Sundsvall score when Falun scored 2?`:
```sql
                SELECT "sundsvall" FROM "juries" WHERE "falun"='2';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest total when Norrkoping scored 12?`

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

CREATE TABLE "juries" (
  "song" text,
  "international_jury" text,
  "lule" text,
  "ume" text,
  "sundsvall" text,
  "falun" text,
  "karlstad" text,
  "rebro" text,
  "norrk_ping" text,
  "g_teborg" text,
  "v_xj" text,
  "malm" text,
  "stockholm" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest total when Norrkoping scored 12?`:
```sql
                SELECT MAX("total") FROM "juries" WHERE "norrk_ping"='12';
```