cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the june when it has july of 84 °f / 28.9 °c`

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

CREATE TABLE "monthly_normal_low_and_high_temperatures" (
  "city" text,
  "jan" text,
  "feb" text,
  "mar" text,
  "apr" text,
  "jun" text,
  "jul" text,
  "aug" text,
  "sep" text,
  "oct" text,
  "nov" text,
  "dec" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the june when it has july of 84 °f / 28.9 °c`:
```sql
                SELECT "jun" FROM "monthly_normal_low_and_high_temperatures" WHERE "jul"='84 °f / 28.9 °c';
```
## Task
Generate a SQL query to answer the following question:
`What Time has Date of May 9?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "time" text,
  "att" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Time has Date of May 9?`:
```sql
                SELECT "time" FROM "game_log" WHERE "date"='may 9';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest roll number of Katikati college?`

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

CREATE TABLE "western_bay_of_plenty_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest roll number of Katikati college?`:
```sql
                SELECT MIN("roll") FROM "western_bay_of_plenty_district" WHERE "name"='katikati college';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest roll number of the school in Te puna with a decile larger than 2?`

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

CREATE TABLE "western_bay_of_plenty_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest roll number of the school in Te puna with a decile larger than 2?`:
```sql
                SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "decile">2 AND "area"='te puna';
```
## Task
Generate a SQL query to answer the following question:
`What is the roll number of Te Puke Intermediate, which has a decile of 4?`

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

CREATE TABLE "western_bay_of_plenty_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the roll number of Te Puke Intermediate, which has a decile of 4?`:
```sql
                SELECT "roll" FROM "western_bay_of_plenty_district" WHERE "decile"=4 AND "name"='te puke intermediate';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest roll number of the school with a state authority and a decile smaller than 8?`

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

CREATE TABLE "western_bay_of_plenty_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest roll number of the school with a state authority and a decile smaller than 8?`:
```sql
                SELECT MAX("roll") FROM "western_bay_of_plenty_district" WHERE "authority"='state' AND "decile"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?`

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

CREATE TABLE "clausura_2004_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total value for Lost, when the value for Points is greater than 21, and when the value for Draw is 2?`:
```sql
                SELECT SUM("lost") FROM "clausura_2004_standings" WHERE "points">21 AND "draw"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?`

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

CREATE TABLE "clausura_2004_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Goals Scored, when the Team is San Salvador F.C., and when the Points are less than 10?`:
```sql
                SELECT MAX("goals_scored") FROM "clausura_2004_standings" WHERE "team"='san salvador f.c.' AND "points"<10;
```
## Task
Generate a SQL query to answer the following question:
`What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?`

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

CREATE TABLE "clausura_2004_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the total amount of Goals Conceded when the Points are less than 26, and when the value for Played is less than 18?`:
```sql
                SELECT SUM("goals_conceded") FROM "clausura_2004_standings" WHERE "points"<26 AND "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?`

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

CREATE TABLE "clausura_2004_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average value for Lost, when the value for Goals Scored is greater than 20, and when the value for Played is less than 18?`:
```sql
                SELECT AVG("lost") FROM "clausura_2004_standings" WHERE "goals_scored">20 AND "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`What is score of the game played in place t8 with Byron Nelson playing?`

### 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 score of the game played in place t8 with Byron Nelson playing?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "place"='t8' AND "player"='byron nelson';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Money of the game that was played in the United States with Sam Snead as a player?`

### 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 sum of Money of the game that was played in the United States with Sam Snead as a player?`:
```sql
                SELECT SUM("money") FROM "final_leaderboard" WHERE "country"='united states' AND "player"='sam snead';
```
## Task
Generate a SQL query to answer the following question:
`What is the Money ($) of the game with a score of 69-74-70-73=286?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Money ($) of the game with a score of 69-74-70-73=286?`:
```sql
                SELECT MAX("money") FROM "final_leaderboard" WHERE "score"='69-74-70-73=286';
```
## Task
Generate a SQL query to answer the following question:
`Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mountains classification which has a young rider classification of francesco casagrande and integiro classification of not awarded with stage of 2`:
```sql
                SELECT "mountains_classification" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "intergiro_classification"='not awarded' AND "stage"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the winner for adriano baffi and integiro classification of ján svorada for stage of 13`:
```sql
                SELECT "winner" FROM "classification_leadership_by_stage" WHERE "points_classification"='adriano baffi' AND "intergiro_classification"='ján svorada' AND "stage"='13';
```
## Task
Generate a SQL query to answer the following question:
`Name trofeo fast team with young rider classification of francesco casagrande and stage of 10`

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

CREATE TABLE "classification_leadership_by_stage" (
  "stage" text,
  "winner" text,
  "general_classification" text,
  "points_classification" text,
  "mountains_classification" text,
  "young_rider_classification" text,
  "intergiro_classification" text,
  "trofeo_fast_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name trofeo fast team with young rider classification of francesco casagrande and stage of 10`:
```sql
                SELECT "trofeo_fast_team" FROM "classification_leadership_by_stage" WHERE "young_rider_classification"='francesco casagrande' AND "stage"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the total for a routine score of 26.6?`

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

CREATE TABLE "qualification" (
  "rank" real,
  "gymnast" text,
  "difficulty_score" text,
  "routine_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the total for a routine score of 26.6?`:
```sql
                SELECT SUM("total") FROM "qualification" WHERE "routine_score"=26.6;
```
## Task
Generate a SQL query to answer the following question:
`Name the january when april is courtney rachel culkin`

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

CREATE TABLE "2000_2009" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the january when april is courtney rachel culkin`:
```sql
                SELECT "january" FROM "2000_2009" WHERE "april"='courtney rachel culkin';
```
## Task
Generate a SQL query to answer the following question:
`Name the october when november is buffy tyler`

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

CREATE TABLE "2000_2009" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october when november is buffy tyler`:
```sql
                SELECT "october" FROM "2000_2009" WHERE "november"='buffy tyler';
```
## Task
Generate a SQL query to answer the following question:
`Name the october when the september is dalene kurtis`

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

CREATE TABLE "2000_2009" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october when the september is dalene kurtis`:
```sql
                SELECT "october" FROM "2000_2009" WHERE "september"='dalene kurtis';
```
## Task
Generate a SQL query to answer the following question:
`Name the april for candice cassidy`

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

CREATE TABLE "2000_2009" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the april for candice cassidy`:
```sql
                SELECT "april" FROM "2000_2009" WHERE "june"='candice cassidy';
```
## Task
Generate a SQL query to answer the following question:
`Name the october for july of kimberley stanfield`

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

CREATE TABLE "2000_2009" (
  "january" text,
  "february" text,
  "march" text,
  "april" text,
  "june" text,
  "july" text,
  "august" text,
  "september" text,
  "october" text,
  "november" text,
  "december" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the october for july of kimberley stanfield`:
```sql
                SELECT "october" FROM "2000_2009" WHERE "july"='kimberley stanfield';
```
## Task
Generate a SQL query to answer the following question:
`Which Representative was from Kentucky during the years of 1855–1859?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Representative was from Kentucky during the years of 1855–1859?`:
```sql
                SELECT "representative" FROM "external_links" WHERE "state"='kentucky' AND "years"='1855–1859';
```
## Task
Generate a SQL query to answer the following question:
`What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lifespan of the Representative from the Republican Party during the years of 1953–1970?`:
```sql
                SELECT "lifespan" FROM "external_links" WHERE "party"='republican' AND "years"='1953–1970';
```
## Task
Generate a SQL query to answer the following question:
`What years did the Representative from Iowa with a lifespan of 1880–1942 serve?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the Representative from Iowa with a lifespan of 1880–1942 serve?`:
```sql
                SELECT "years" FROM "external_links" WHERE "state"='iowa' AND "lifespan"='1880–1942';
```
## Task
Generate a SQL query to answer the following question:
`Which Representative had a Lifespan of 1795–1866?`

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

CREATE TABLE "external_links" (
  "representative" text,
  "years" text,
  "state" text,
  "party" text,
  "lifespan" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Representative had a Lifespan of 1795–1866?`:
```sql
                SELECT "representative" FROM "external_links" WHERE "lifespan"='1795–1866';
```
## Task
Generate a SQL query to answer the following question:
`When did the Chiefs have their first bye?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Chiefs have their first bye?`:
```sql
                SELECT MIN("week") FROM "season_schedule" WHERE "attendance"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the position played for the player drafted in round 2?`

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

CREATE TABLE "january_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position played for the player drafted in round 2?`:
```sql
                SELECT "position" FROM "january_draft" WHERE "round"=2;
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the player that played position 3b?`

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

CREATE TABLE "january_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the player that played position 3b?`:
```sql
                SELECT "name" FROM "january_draft" WHERE "position"='3b';
```
## Task
Generate a SQL query to answer the following question:
`what is the school for Ivey armstrong?`

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

CREATE TABLE "january_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school for Ivey armstrong?`:
```sql
                SELECT "school" FROM "january_draft" WHERE "name"='ivey armstrong';
```
## Task
Generate a SQL query to answer the following question:
`what is the position for the player from university of alabama?`

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

CREATE TABLE "january_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position for the player from university of alabama?`:
```sql
                SELECT "position" FROM "january_draft" WHERE "school"='university of alabama';
```
## Task
Generate a SQL query to answer the following question:
`How many days with frost were there in the City/Town of Lugo have?`

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

CREATE TABLE "climate" (
  "city_town" text,
  "july_av_t" text,
  "rain" text,
  "days_with_rain_year_summer" text,
  "days_with_frost" real,
  "sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many days with frost were there in the City/Town of Lugo have?`:
```sql
                SELECT SUM("days_with_frost") FROM "climate" WHERE "city_town"='lugo';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?`

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

CREATE TABLE "climate" (
  "city_town" text,
  "july_av_t" text,
  "rain" text,
  "days_with_rain_year_summer" text,
  "days_with_frost" real,
  "sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of sunlight hours, and number of days with frost, more than 30, for the city of Ourense?`:
```sql
                SELECT MIN("sunlight_hours") FROM "climate" WHERE "city_town"='ourense' AND "days_with_frost">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of sunlight hours for the City of Pontevedra?`

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

CREATE TABLE "climate" (
  "city_town" text,
  "july_av_t" text,
  "rain" text,
  "days_with_rain_year_summer" text,
  "days_with_frost" real,
  "sunlight_hours" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of sunlight hours for the City of Pontevedra?`:
```sql
                SELECT MAX("sunlight_hours") FROM "climate" WHERE "city_town"='pontevedra';
```
## Task
Generate a SQL query to answer the following question:
`for the rank of 3 for the united states, what is the average lane?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank of 3 for the united states, what is the average lane?`:
```sql
                SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='united states' AND "rank"=3;
```
## Task
Generate a SQL query to answer the following question:
`for the rank more than 1 and nationality of netherlands, what is the lane?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank more than 1 and nationality of netherlands, what is the lane?`:
```sql
                SELECT AVG("lane") FROM "semifinal_2" WHERE "nationality"='netherlands' AND "rank">1;
```
## Task
Generate a SQL query to answer the following question:
`for the time of 49.04 and lane less than 3, what is the nationality?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the time of 49.04 and lane less than 3, what is the nationality?`:
```sql
                SELECT "nationality" FROM "semifinal_2" WHERE "lane"<3 AND "time"=49.04;
```
## Task
Generate a SQL query to answer the following question:
`for the rank of 8 and lane less than 3 what is the name?`

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

CREATE TABLE "semifinal_2" (
  "rank" real,
  "lane" real,
  "name" text,
  "nationality" text,
  "time" real
);
### SQL
Given the database schema, here is the SQL query that answers `for the rank of 8 and lane less than 3 what is the name?`:
```sql
                SELECT "name" FROM "semifinal_2" WHERE "lane"<3 AND "rank"=8;
```
## Task
Generate a SQL query to answer the following question:
`What play has a loss of 2?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What play has a loss of 2?`:
```sql
                SELECT "played" FROM "2007_2008_table" WHERE "lost"='2';
```
## Task
Generate a SQL query to answer the following question:
`What try bonus has a club of caerphilly rfc?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What try bonus has a club of caerphilly rfc?`:
```sql
                SELECT "try_bonus" FROM "2007_2008_table" WHERE "club"='caerphilly rfc';
```
## Task
Generate a SQL query to answer the following question:
`What club has a play of 22, and losing bonus of 7?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club has a play of 22, and losing bonus of 7?`:
```sql
                SELECT "club" FROM "2007_2008_table" WHERE "played"='22' AND "losing_bonus"='7';
```
## Task
Generate a SQL query to answer the following question:
`What point against has tries against of 77, and a lost of 16?`

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

CREATE TABLE "2007_2008_table" (
  "club" text,
  "played" text,
  "drawn" text,
  "lost" text,
  "points_for" text,
  "points_against" text,
  "tries_for" text,
  "tries_against" text,
  "try_bonus" text,
  "losing_bonus" text,
  "points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What point against has tries against of 77, and a lost of 16?`:
```sql
                SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='77' AND "lost"='16';
```
## Task
Generate a SQL query to answer the following question:
`The nll participate in what sport?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "began_play" text,
  "league" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `The nll participate in what sport?`:
```sql
                SELECT "sport" FROM "professional_sports" WHERE "league"='nll';
```
## Task
Generate a SQL query to answer the following question:
`When did the Club of western new york flash begin to play?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "began_play" text,
  "league" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Club of western new york flash begin to play?`:
```sql
                SELECT "began_play" FROM "professional_sports" WHERE "club"='western new york flash';
```
## Task
Generate a SQL query to answer the following question:
`Which club plays soccer in the nwsl?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "began_play" text,
  "league" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which club plays soccer in the nwsl?`:
```sql
                SELECT "club" FROM "professional_sports" WHERE "sport"='soccer' AND "league"='nwsl';
```
## Task
Generate a SQL query to answer the following question:
`When did the Rochester Rhinos begin to play?`

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

CREATE TABLE "professional_sports" (
  "club" text,
  "sport" text,
  "began_play" text,
  "league" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the Rochester Rhinos begin to play?`:
```sql
                SELECT "began_play" FROM "professional_sports" WHERE "club"='rochester rhinos';
```
## Task
Generate a SQL query to answer the following question:
`The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.`

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

CREATE TABLE "podiums_on_all_three_grands_tours" (
  "name" text,
  "tour" real,
  "giro" real,
  "vuelta" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `The sun of total that has a tour of 7 and a Giro smaller than 3 is 12.`:
```sql
                SELECT SUM("total") FROM "podiums_on_all_three_grands_tours" WHERE "tour"=7 AND "giro"<3;
```
## Task
Generate a SQL query to answer the following question:
`What genders did Lynmore Primary School take?`

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

CREATE TABLE "rotorua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `What genders did Lynmore Primary School take?`:
```sql
                SELECT "gender" FROM "rotorua_district" WHERE "name"='lynmore primary school';
```
## Task
Generate a SQL query to answer the following question:
`Which area served coed genders at Kaharoa school and had a Decile of 9?`

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

CREATE TABLE "rotorua_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which area served coed genders at Kaharoa school and had a Decile of 9?`:
```sql
                SELECT "area" FROM "rotorua_district" WHERE "gender"='coed' AND "decile"='9' AND "name"='kaharoa school';
```
## Task
Generate a SQL query to answer the following question:
`What was the gender for the integrated authority with a roll of 142?`

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

CREATE TABLE "lower_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gender for the integrated authority with a roll of 142?`:
```sql
                SELECT "gender" FROM "lower_hutt_city" WHERE "authority"='integrated' AND "roll"=142;
```
## Task
Generate a SQL query to answer the following question:
`What was the Authority for Avalon School with a roll less than 358?`

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

CREATE TABLE "lower_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Authority for Avalon School with a roll less than 358?`:
```sql
                SELECT "authority" FROM "lower_hutt_city" WHERE "area"='avalon' AND "roll"<358 AND "name"='avalon school';
```
## Task
Generate a SQL query to answer the following question:
`Who is the authority for the coed Eastbourne school?`

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

CREATE TABLE "lower_hutt_city" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the authority for the coed Eastbourne school?`:
```sql
                SELECT "authority" FROM "lower_hutt_city" WHERE "area"='eastbourne' AND "gender"='coed';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all laps with rank 3?`

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

CREATE TABLE "indy_500_results" (
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all laps with rank 3?`:
```sql
                SELECT COUNT("laps") FROM "indy_500_results" WHERE "rank"='3';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of all laps starting at 10 and finishing at 20?`

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

CREATE TABLE "indy_500_results" (
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of all laps starting at 10 and finishing at 20?`:
```sql
                SELECT SUM("laps") FROM "indy_500_results" WHERE "start"='10' AND "finish"='20';
```
## Task
Generate a SQL query to answer the following question:
`What's the rank when the start is 10 and the laps are fewer than 192?`

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

CREATE TABLE "indy_500_results" (
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank when the start is 10 and the laps are fewer than 192?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "start"='10' AND "laps"<192;
```
## Task
Generate a SQL query to answer the following question:
`What's the rank when the laps are fewer than 137 and the qual is 116.470?`

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

CREATE TABLE "indy_500_results" (
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rank when the laps are fewer than 137 and the qual is 116.470?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "laps"<137 AND "qual"='116.470';
```
## Task
Generate a SQL query to answer the following question:
`What director worked with Al Mackay as writer?`

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

CREATE TABLE "2009_i" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director worked with Al Mackay as writer?`:
```sql
                SELECT "director_s" FROM "2009_i" WHERE "writer_s"='al mackay';
```
## Task
Generate a SQL query to answer the following question:
`Which producer worked with Robert Sproul-cran as writer?`

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

CREATE TABLE "2009_i" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which producer worked with Robert Sproul-cran as writer?`:
```sql
                SELECT "producer_s" FROM "2009_i" WHERE "writer_s"='robert sproul-cran';
```
## Task
Generate a SQL query to answer the following question:
`Which film did Al Mackay write?`

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

CREATE TABLE "2009_i" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which film did Al Mackay write?`:
```sql
                SELECT "film" FROM "2009_i" WHERE "writer_s"='al mackay';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the film 'The Chapel'?`

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

CREATE TABLE "2009_i" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the film 'The Chapel'?`:
```sql
                SELECT "director_s" FROM "2009_i" WHERE "film"='the chapel';
```
## Task
Generate a SQL query to answer the following question:
`What award did Andrew Ryder win as producer?`

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

CREATE TABLE "2009_i" (
  "film" text,
  "director_s" text,
  "producer_s" text,
  "writer_s" text,
  "date" text,
  "award" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award did Andrew Ryder win as producer?`:
```sql
                SELECT "award" FROM "2009_i" WHERE "producer_s"='andrew ryder';
```
## Task
Generate a SQL query to answer the following question:
`What is the total national rank of Canada with lanes larger than 3?`

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

CREATE TABLE "semifinal_1" (
  "rank" 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 national rank of Canada with lanes larger than 3?`:
```sql
                SELECT SUM("rank") FROM "semifinal_1" WHERE "nationality"='canada' AND "lane">3;
```
## Task
Generate a SQL query to answer the following question:
`For the team with 39+1 points and fewer than 7 draws, how many wins were scored?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the team with 39+1 points and fewer than 7 draws, how many wins were scored?`:
```sql
                SELECT COUNT("wins") FROM "final_table" WHERE "points"='39+1' AND "draws"<7;
```
## Task
Generate a SQL query to answer the following question:
`For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?`:
```sql
                SELECT MAX("draws") FROM "final_table" WHERE "goal_difference">3 AND "losses"<8;
```
## Task
Generate a SQL query to answer the following question:
`Which club had fewer than 29 goals against and a difference smaller than 26?`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which club had fewer than 29 goals against and a difference smaller than 26?`:
```sql
                SELECT "club" FROM "final_table" WHERE "goals_against"<29 AND "goal_difference"<26;
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the Rangers' attendance was 23,493?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the Rangers' attendance was 23,493?`:
```sql
                SELECT "score" FROM "game_log" WHERE "attendance"='23,493';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on the game on April 14, 2007?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on the game on April 14, 2007?`:
```sql
                SELECT "opponent" FROM "2007_game_log" WHERE "date"='april 14, 2007';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance on the game on April 8, 2007?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in attendance on the game on April 8, 2007?`:
```sql
                SELECT "attendance" FROM "2007_game_log" WHERE "date"='april 8, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with 16,404 people?`

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

CREATE TABLE "2007_game_log" (
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game with 16,404 people?`:
```sql
                SELECT "date" FROM "2007_game_log" WHERE "attendance"='16,404';
```
## Task
Generate a SQL query to answer the following question:
`Which category was Dev Patel nominated for?`

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

CREATE TABLE "nickelodeon_movies" (
  "year" real,
  "category" text,
  "film" text,
  "winner_nominee_s" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category was Dev Patel nominated for?`:
```sql
                SELECT "category" FROM "nickelodeon_movies" WHERE "winner_nominee_s"='dev patel';
```
## Task
Generate a SQL query to answer the following question:
`Which film was Eddie Murphy nominated for?`

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

CREATE TABLE "nickelodeon_movies" (
  "year" real,
  "category" text,
  "film" text,
  "winner_nominee_s" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which film was Eddie Murphy nominated for?`:
```sql
                SELECT "film" FROM "nickelodeon_movies" WHERE "winner_nominee_s"='eddie murphy' AND "result"='nominated';
```
## Task
Generate a SQL query to answer the following question:
`When the start is 22, what is the finish?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the start is 22, what is the finish?`:
```sql
                SELECT "finish" FROM "indy_500_results" WHERE "start"='22';
```
## Task
Generate a SQL query to answer the following question:
`What year resulted in 54 laps?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year resulted in 54 laps?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "laps"=54;
```
## Task
Generate a SQL query to answer the following question:
`On what date was the score 2–4?`

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

CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the score 2–4?`:
```sql
                SELECT "date" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "score"='2–4';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the score was 4–3?`

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

CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the score was 4–3?`:
```sql
                SELECT "home" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "score"='4–3';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record 2–1?`

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

CREATE TABLE "los_angeles_kings_4_edmonton_oilers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the record 2–1?`:
```sql
                SELECT "date" FROM "los_angeles_kings_4_edmonton_oilers_3" WHERE "record"='2–1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "circuit" text,
  "date" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_team" text,
  "winning_manufacturer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winning driver with the winning team Opel Team Holzer 1, and a round under 9 with the fastest lap being Bernd Schneider?`:
```sql
                SELECT "winning_driver" FROM "race_calendar_and_winners" WHERE "winning_team"='opel team holzer 1' AND "round"<9 AND "fastest_lap"='bernd schneider';
```