cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what is the series when wins is less than 3, points is 9 and podiums is 1?`

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

CREATE TABLE "career_statistics" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the series when wins is less than 3, points is 9 and podiums is 1?`:
```sql
                SELECT "series" FROM "career_statistics" WHERE "wins"<3 AND "points"='9' AND "podiums"=1;
```
## Task
Generate a SQL query to answer the following question:
`how many times is races more than 14, position is 9th and wins less than 0?`

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

CREATE TABLE "career_statistics" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is races more than 14, position is 9th and wins less than 0?`:
```sql
                SELECT COUNT("season") FROM "career_statistics" WHERE "races">14 AND "position"='9th' AND "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up during the Mac Ice Classic?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up during the Mac Ice Classic?`:
```sql
                SELECT "runner_up_skip" FROM "winners" WHERE "event"='mac ice classic';
```
## Task
Generate a SQL query to answer the following question:
`What's the date when Stu Harris was the Runner-up?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date when Stu Harris was the Runner-up?`:
```sql
                SELECT "date" FROM "winners" WHERE "runner_up_skip"='stu harris';
```
## Task
Generate a SQL query to answer the following question:
`What's the location of the Ramada Perth Masters event?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location of the Ramada Perth Masters event?`:
```sql
                SELECT "location" FROM "winners" WHERE "event"='ramada perth masters';
```
## Task
Generate a SQL query to answer the following question:
`What's the location of the National event with Kevin Martin winning?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location of the National event with Kevin Martin winning?`:
```sql
                SELECT "location" FROM "winners" WHERE "winning_skip"='kevin martin' AND "event"='the national';
```
## Task
Generate a SQL query to answer the following question:
`What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the event that happened in Gander, Newfoundland and Labrador with Randy Ferbey runner-up?`:
```sql
                SELECT "event" FROM "winners" WHERE "runner_up_skip"='randy ferbey' AND "location"='gander, newfoundland and labrador';
```
## Task
Generate a SQL query to answer the following question:
`What's the location of the National event?`

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

CREATE TABLE "winners" (
  "event" text,
  "date" text,
  "location" text,
  "winning_skip" text,
  "runner_up_skip" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the location of the National event?`:
```sql
                SELECT "location" FROM "winners" WHERE "event"='the national';
```
## Task
Generate a SQL query to answer the following question:
`Which Arena has a Date of october 10?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Arena has a Date of october 10?`:
```sql
                SELECT "arena" FROM "regular_season" WHERE "date"='october 10';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Score of 4–3, and Points smaller than 5?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Score of 4–3, and Points smaller than 5?`:
```sql
                SELECT MAX("attendance") FROM "regular_season" WHERE "score"='4–3' AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has an Arena of arrowhead pond of anaheim, and Points smaller than 5?`:
```sql
                SELECT "attendance" FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"<5;
```
## Task
Generate a SQL query to answer the following question:
`How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has an Arena of arrowhead pond of anaheim, and Points of 5?`:
```sql
                SELECT SUM("attendance") FROM "regular_season" WHERE "arena"='arrowhead pond of anaheim' AND "points"=5;
```
## Task
Generate a SQL query to answer the following question:
`How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?`

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

CREATE TABLE "1960s" (
  "country" text,
  "1960" real,
  "1961" real,
  "1962" real,
  "1963" real,
  "1964" real,
  "1965" real,
  "1966" real,
  "1967" real,
  "1968" real,
  "1969" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much 1969 has a 1967 smaller than 0.73, and a 1964 larger than 0.07?`:
```sql
                SELECT COUNT("1969") FROM "1960s" WHERE "1967"<0.73 AND "1964">0.07;
```
## Task
Generate a SQL query to answer the following question:
`Which 1964 has a Country of united states, and a 1969 smaller than 7.3?`

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

CREATE TABLE "1960s" (
  "country" text,
  "1960" real,
  "1961" real,
  "1962" real,
  "1963" real,
  "1964" real,
  "1965" real,
  "1966" real,
  "1967" real,
  "1968" real,
  "1969" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1964 has a Country of united states, and a 1969 smaller than 7.3?`:
```sql
                SELECT MIN("1964") FROM "1960s" WHERE "country"='united states' AND "1969"<7.3;
```
## Task
Generate a SQL query to answer the following question:
`Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?`

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

CREATE TABLE "1960s" (
  "country" text,
  "1960" real,
  "1961" real,
  "1962" real,
  "1963" real,
  "1964" real,
  "1965" real,
  "1966" real,
  "1967" real,
  "1968" real,
  "1969" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1965 has a 1962 of 0.35000000000000003, and a 1967 smaller than 0.53?`:
```sql
                SELECT MIN("1965") FROM "1960s" WHERE "1962"=0.35000000000000003 AND "1967"<0.53;
```
## Task
Generate a SQL query to answer the following question:
`What is Bev Risman's Cross Code Debut?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Bev Risman's Cross Code Debut?`:
```sql
                SELECT "cross_code_debut" FROM "england" WHERE "player"='bev risman';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of RL Test v Wales Int'l Debut?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of RL Test v Wales Int'l Debut?`:
```sql
                SELECT "date" FROM "england" WHERE "int_l_debut"='rl test v wales';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player with a Cross Code Debut of RL Test GB v France?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Player with a Cross Code Debut of RL Test GB v France?`:
```sql
                SELECT "player" FROM "england" WHERE "cross_code_debut"='rl test gb v france';
```
## Task
Generate a SQL query to answer the following question:
`In what Year is Keith Smith's Cross Code Debut RL Test v Wales?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Year is Keith Smith's Cross Code Debut RL Test v Wales?`:
```sql
                SELECT "year" FROM "england" WHERE "cross_code_debut"='rl test v wales' AND "player"='keith smith';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Int'l Debut of 1967?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Int'l Debut of 1967?`:
```sql
                SELECT "date" FROM "england" WHERE "year"='1967';
```
## Task
Generate a SQL query to answer the following question:
`What is the Player in the Int'l Debut of 1974?`

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

CREATE TABLE "england" (
  "player" text,
  "int_l_debut" text,
  "year" text,
  "cross_code_debut" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Player in the Int'l Debut of 1974?`:
```sql
                SELECT "player" FROM "england" WHERE "year"='1974';
```
## Task
Generate a SQL query to answer the following question:
`What lane has a time of 24.83 and a heat less than 11?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What lane has a time of 24.83 and a heat less than 11?`:
```sql
                SELECT SUM("lane") FROM "heats" WHERE "time"='24.83' AND "heat"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of heat for Chinyere Pigot?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of heat for Chinyere Pigot?`:
```sql
                SELECT COUNT("heat") FROM "heats" WHERE "name"='chinyere pigot';
```
## Task
Generate a SQL query to answer the following question:
`What is the name for lane 1, from Mauritius?`

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

CREATE TABLE "heats" (
  "heat" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name for lane 1, from Mauritius?`:
```sql
                SELECT "name" FROM "heats" WHERE "lane"=1 AND "nationality"='mauritius';
```
## Task
Generate a SQL query to answer the following question:
`Who won in 1988 with a total less than 287?`

### 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 `Who won in 1988 with a total less than 287?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "total"<287 AND "year_s_won"='1988';
```
## Task
Generate a SQL query to answer the following question:
`What country is Larry Mize from?`

### 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 country is Larry Mize from?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "player"='larry mize';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of bronze medals for a nation with fewer than 1 total medal?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of bronze medals for a nation with fewer than 1 total medal?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What team is Frank Hulbert on?`

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

CREATE TABLE "single_cylinder_race" (
  "rank" text,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is Frank Hulbert on?`:
```sql
                SELECT "team" FROM "single_cylinder_race" WHERE "rider"='frank hulbert';
```
## Task
Generate a SQL query to answer the following question:
`What was Martin Geiger's rank?`

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

CREATE TABLE "single_cylinder_race" (
  "rank" text,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Martin Geiger's rank?`:
```sql
                SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='martin geiger';
```
## Task
Generate a SQL query to answer the following question:
`What was Tom Silver's rank?`

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

CREATE TABLE "single_cylinder_race" (
  "rank" text,
  "rider" text,
  "team" text,
  "speed" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Tom Silver's rank?`:
```sql
                SELECT "rank" FROM "single_cylinder_race" WHERE "rider"='tom silver';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?`

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

CREATE TABLE "academy_graduates_2000_present" (
  "player" text,
  "current_club" text,
  "born" text,
  "debut" text,
  "manager" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player with a debut of age 18 v plymouth , 14 august 2012, and born in Portsmouth?`:
```sql
                SELECT "player" FROM "academy_graduates_2000_present" WHERE "debut"='age 18 v plymouth , 14 august 2012' AND "born"='portsmouth';
```
## Task
Generate a SQL query to answer the following question:
`Where was the player whose Current Club Elfsborg born?`

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

CREATE TABLE "academy_graduates_2000_present" (
  "player" text,
  "current_club" text,
  "born" text,
  "debut" text,
  "manager" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the player whose Current Club Elfsborg born?`:
```sql
                SELECT "born" FROM "academy_graduates_2000_present" WHERE "current_club"='elfsborg';
```
## Task
Generate a SQL query to answer the following question:
`What is the debut for the person born in Poole?`

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

CREATE TABLE "academy_graduates_2000_present" (
  "player" text,
  "current_club" text,
  "born" text,
  "debut" text,
  "manager" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the debut for the person born in Poole?`:
```sql
                SELECT "debut" FROM "academy_graduates_2000_present" WHERE "born"='poole';
```
## Task
Generate a SQL query to answer the following question:
`What is the club for Sam Magri?`

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

CREATE TABLE "academy_graduates_2000_present" (
  "player" text,
  "current_club" text,
  "born" text,
  "debut" text,
  "manager" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club for Sam Magri?`:
```sql
                SELECT "current_club" FROM "academy_graduates_2000_present" WHERE "player"='sam magri';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the manager of the Atlético Baleares?`

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

CREATE TABLE "academy_graduates_2000_present" (
  "player" text,
  "current_club" text,
  "born" text,
  "debut" text,
  "manager" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the manager of the Atlético Baleares?`:
```sql
                SELECT "manager" FROM "academy_graduates_2000_present" WHERE "current_club"='atlético baleares';
```
## Task
Generate a SQL query to answer the following question:
`Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?`

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

CREATE TABLE "league_champions_and_major_awards" (
  "year" real,
  "league_champion" text,
  "best_blocker" text,
  "rookie_of_the_year" text,
  "c_a_n_t_s_l_e_e_p_award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the best blocker for the year that has a League Champion of queens of pain, and a C.A.N.T.S.L.E.E.P. Award of chassis crass (brooklyn)?`:
```sql
                SELECT "best_blocker" FROM "league_champions_and_major_awards" WHERE "league_champion"='queens of pain' AND "c_a_n_t_s_l_e_e_p_award"='chassis crass (brooklyn)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion?`

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

CREATE TABLE "league_champions_and_major_awards" (
  "year" real,
  "league_champion" text,
  "best_blocker" text,
  "rookie_of_the_year" text,
  "c_a_n_t_s_l_e_e_p_award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rookie of the year for the year that had the Brooklyn Bombshells as the league champion?`:
```sql
                SELECT "rookie_of_the_year" FROM "league_champions_and_major_awards" WHERE "league_champion"='brooklyn bombshells';
```
## Task
Generate a SQL query to answer the following question:
`What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock?`

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

CREATE TABLE "league_champions_and_major_awards" (
  "year" real,
  "league_champion" text,
  "best_blocker" text,
  "rookie_of_the_year" text,
  "c_a_n_t_s_l_e_e_p_award" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the latest year that has a Rookie of the Year of omg wtf (brooklyn) and League Champion of bronx gridlock?`:
```sql
                SELECT MAX("year") FROM "league_champions_and_major_awards" WHERE "league_champion"='bronx gridlock' AND "rookie_of_the_year"='omg wtf (brooklyn)';
```
## Task
Generate a SQL query to answer the following question:
`Which Arena has Points larger than 28, and a Date of december 14?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Arena has Points larger than 28, and a Date of december 14?`:
```sql
                SELECT "arena" FROM "regular_season" WHERE "points">28 AND "date"='december 14';
```
## Task
Generate a SQL query to answer the following question:
`How many Points have an Arena of bell centre?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have an Arena of bell centre?`:
```sql
                SELECT COUNT("points") FROM "regular_season" WHERE "arena"='bell centre';
```
## Task
Generate a SQL query to answer the following question:
`How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text,
  "arena" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has a Loss of divis (0–3–0), and Points smaller than 38?`:
```sql
                SELECT SUM("attendance") FROM "regular_season" WHERE "loss"='divis (0–3–0)' AND "points"<38;
```
## Task
Generate a SQL query to answer the following question:
`With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `With a 1st run of 53.300 (7), and greater than 21 total, what is the average rank?`:
```sql
                SELECT AVG("rank") FROM "heat_1" WHERE "1st_run"='53.300 (7)' AND "total">21;
```
## Task
Generate a SQL query to answer the following question:
`What 2nd run has a less than 6 rank, and 3 as the total?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What 2nd run has a less than 6 rank, and 3 as the total?`:
```sql
                SELECT "2nd_run" FROM "heat_1" WHERE "rank"<6 AND "total"=3;
```
## Task
Generate a SQL query to answer the following question:
`When the 3rd run is 36.490 (3) what is the 2nd run?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "name" text,
  "1st_run" text,
  "2nd_run" text,
  "3rd_run" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the 3rd run is 36.490 (3) what is the 2nd run?`:
```sql
                SELECT "2nd_run" FROM "heat_1" WHERE "3rd_run"='36.490 (3)';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum number of year when Call of Duty 4: Modern Warfare was the game?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum number of year when Call of Duty 4: Modern Warfare was the game?`:
```sql
                SELECT COUNT("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest year when action was the genre?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest year when action was the genre?`:
```sql
                SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "genre"='action';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest year when Ubisoft Montreal was the developer (s)?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest year when Ubisoft Montreal was the developer (s)?`:
```sql
                SELECT MIN("year") FROM "list_of_game_of_the_year_awards" WHERE "developer_s"='ubisoft montreal';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year when Call of Duty 4: Modern Warfare was the game?`

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

CREATE TABLE "list_of_game_of_the_year_awards" (
  "year" real,
  "game" text,
  "genre" text,
  "platform_s" text,
  "developer_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year when Call of Duty 4: Modern Warfare was the game?`:
```sql
                SELECT MAX("year") FROM "list_of_game_of_the_year_awards" WHERE "game"='call of duty 4: modern warfare';
```
## Task
Generate a SQL query to answer the following question:
`Who was Lieutenant Governor to the governor that left office on January 14, 1929?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Lieutenant Governor to the governor that left office on January 14, 1929?`:
```sql
                SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='january 14, 1929';
```
## Task
Generate a SQL query to answer the following question:
`Which governor took office on January 8, 1877?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which governor took office on January 8, 1877?`:
```sql
                SELECT "governor" FROM "governors_of_missouri" WHERE "took_office"='january 8, 1877';
```
## Task
Generate a SQL query to answer the following question:
`Who was lieutenant governor to the governor that left office on October 16, 2000?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was lieutenant governor to the governor that left office on October 16, 2000?`:
```sql
                SELECT "lieutenant_governor" FROM "governors_of_missouri" WHERE "left_office"='october 16, 2000';
```
## Task
Generate a SQL query to answer the following question:
`How many terms did the governor that left office on August 4, 1825 serve?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many terms did the governor that left office on August 4, 1825 serve?`:
```sql
                SELECT "terms" FROM "governors_of_missouri" WHERE "left_office"='august 4, 1825';
```
## Task
Generate a SQL query to answer the following question:
`On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?`:
```sql
                SELECT "took_office" FROM "governors_of_missouri" WHERE "party"='democratic' AND "lieutenant_governor"='wallace crossley';
```
## Task
Generate a SQL query to answer the following question:
`Which governor had William Henry Ashley as lieutenant governor?`

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

CREATE TABLE "governors_of_missouri" (
  "governor" text,
  "took_office" text,
  "left_office" text,
  "party" text,
  "lieutenant_governor" text,
  "terms" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which governor had William Henry Ashley as lieutenant governor?`:
```sql
                SELECT "governor" FROM "governors_of_missouri" WHERE "lieutenant_governor"='william henry ashley';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a School of shakamak?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a School of shakamak?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
```
## Task
Generate a SQL query to answer the following question:
`Which County has a School of bloomfield?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which County has a School of bloomfield?`:
```sql
                SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='bloomfield';
```
## Task
Generate a SQL query to answer the following question:
`How much Enrollment has a School of shakamak?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Enrollment has a School of shakamak?`:
```sql
                SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
```
## Task
Generate a SQL query to answer the following question:
`Which IHSAA Class has a Mascot of bulldogs?`

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

CREATE TABLE "indiana_high_school_athletics_conference" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment" real,
  "ihsaa_class" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which IHSAA Class has a Mascot of bulldogs?`:
```sql
                SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='bulldogs';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1996 if 1986 has a 1R?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1996 if 1986 has a 1R?`:
```sql
                SELECT "1996" FROM "women_s_doubles_performance_timeline" WHERE "1986"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1986 if 1991 has a QF and 1998 has a 3R?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1986 if 1991 has a QF and 1998 has a 3R?`:
```sql
                SELECT "1986" FROM "women_s_doubles_performance_timeline" WHERE "1991"='qf' AND "1998"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?`:
```sql
                SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1995"='3r' AND "1993"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1994 if 1995 has a 1R?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1994 if 1995 has a 1R?`:
```sql
                SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1995"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What's the tournament when 1992 is A?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the tournament when 1992 is A?`:
```sql
                SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "1992"='a';
```
## Task
Generate a SQL query to answer the following question:
`What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?`

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

CREATE TABLE "women_s_doubles_performance_timeline" (
  "tournament" text,
  "1986" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?`:
```sql
                SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1992"='qf' AND "1995"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What's the most league cup apps for Jimmy Lawson having 0 league cup goals?`

### 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" real,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most league cup apps for Jimmy Lawson having 0 league cup goals?`:
```sql
                SELECT MAX("league_cup_apps") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "name"='jimmy lawson';
```
## Task
Generate a SQL query to answer the following question:
`What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup 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" real,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?`:
```sql
                SELECT AVG("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "name"='alan sweeney' AND "league_cup_apps"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of league cup apps when the league goals were 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" real,
  "fa_cup_goals" real,
  "league_cup_apps" real,
  "league_cup_goals" real,
  "total_apps" text,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of league cup apps when the league goals were less than 0?`:
```sql
                SELECT COUNT("league_cup_apps") FROM "appearances_and_goals" WHERE "league_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`Where was the September 3 game?`

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

CREATE TABLE "regular_season" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the September 3 game?`:
```sql
                SELECT "location" FROM "regular_season" WHERE "date"='september 3';
```
## Task
Generate a SQL query to answer the following question:
`Which game was on September 12?`

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

CREATE TABLE "regular_season" (
  "game" text,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game was on September 12?`:
```sql
                SELECT "game" FROM "regular_season" WHERE "date"='september 12';
```
## Task
Generate a SQL query to answer the following question:
`What is cork's rank?`

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

CREATE TABLE "season" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is cork's rank?`:
```sql
                SELECT "rank" FROM "season" WHERE "county"='cork';
```
## Task
Generate a SQL query to answer the following question:
`How many totals does cork have whose rank is larger than 2?`

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

CREATE TABLE "season" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many totals does cork have whose rank is larger than 2?`:
```sql
                SELECT SUM("total") FROM "season" WHERE "county"='cork' AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Matches have a Tally of 1-38?`

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

CREATE TABLE "season" (
  "rank" real,
  "player" text,
  "county" text,
  "tally" text,
  "total" real,
  "matches" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Matches have a Tally of 1-38?`:
```sql
                SELECT "matches" FROM "season" WHERE "tally"='1-38';
```
## Task
Generate a SQL query to answer the following question:
`How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?`:
```sql
                SELECT "silver" FROM "medals_table" WHERE "bronze">0 AND "total"<54 AND "nation"='spain';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of gold medals when there were 0 silver medals?`

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

CREATE TABLE "medals_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of gold medals when there were 0 silver medals?`:
```sql
                SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's Brazil's rank when it has notes of R?`

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

CREATE TABLE "heat_1" (
  "rank" real,
  "rowers" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Brazil's rank when it has notes of R?`:
```sql
                SELECT COUNT("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`What rank was the premier Sir John See?`

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

CREATE TABLE "rank_by_time_in_office" (
  "rank" real,
  "premier" text,
  "party" text,
  "assumed_office" text,
  "left_office" text,
  "total_time_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank was the premier Sir John See?`:
```sql
                SELECT COUNT("rank") FROM "rank_by_time_in_office" WHERE "premier"='sir john see';
```
## Task
Generate a SQL query to answer the following question:
`Which Peak Position has a Date of 10 june 1998?`

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

CREATE TABLE "singles" (
  "date" text,
  "title" text,
  "peak_position" real,
  "weeks" text,
  "sales" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Peak Position has a Date of 10 june 1998?`:
```sql
                SELECT "peak_position" FROM "singles" WHERE "date"='10 june 1998';
```