cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which course had a jockey of Royston FFrench?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "prize_k" real,
  "runners" real,
  "placing" real,
  "margin" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which course had a jockey of Royston FFrench?`:
```sql
                SELECT "course" FROM "race_record" WHERE "jockey"='royston ffrench';
```
## Task
Generate a SQL query to answer the following question:
`What is the average prize for the Buttercross Limited Stakes?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "prize_k" real,
  "runners" real,
  "placing" real,
  "margin" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average prize for the Buttercross Limited Stakes?`:
```sql
                SELECT AVG("prize_k") FROM "race_record" WHERE "race"='buttercross limited stakes';
```
## Task
Generate a SQL query to answer the following question:
`How many total runners had jockeys of Olivier Peslier with placings under 2?`

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

CREATE TABLE "race_record" (
  "race" text,
  "dist_f" real,
  "course" text,
  "prize_k" real,
  "runners" real,
  "placing" real,
  "margin" text,
  "jockey" text,
  "trainer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total runners had jockeys of Olivier Peslier with placings under 2?`:
```sql
                SELECT SUM("runners") FROM "race_record" WHERE "jockey"='olivier peslier' AND "placing"<2;
```
## Task
Generate a SQL query to answer the following question:
`Name the games with marks of 21`

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

CREATE TABLE "rookie_list" (
  "player" text,
  "afl_debut" text,
  "games" text,
  "goals" text,
  "kicks" text,
  "handballs" text,
  "disposals" text,
  "marks" text,
  "tackles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the games with marks of 21`:
```sql
                SELECT "games" FROM "rookie_list" WHERE "marks"='21';
```
## Task
Generate a SQL query to answer the following question:
`Name the kicks with goals of 1`

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

CREATE TABLE "rookie_list" (
  "player" text,
  "afl_debut" text,
  "games" text,
  "goals" text,
  "kicks" text,
  "handballs" text,
  "disposals" text,
  "marks" text,
  "tackles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the kicks with goals of 1`:
```sql
                SELECT "kicks" FROM "rookie_list" WHERE "goals"='1';
```
## Task
Generate a SQL query to answer the following question:
`Name the goals with games of 6`

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

CREATE TABLE "rookie_list" (
  "player" text,
  "afl_debut" text,
  "games" text,
  "goals" text,
  "kicks" text,
  "handballs" text,
  "disposals" text,
  "marks" text,
  "tackles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the goals with games of 6`:
```sql
                SELECT "goals" FROM "rookie_list" WHERE "games"='6';
```
## Task
Generate a SQL query to answer the following question:
`What game had the date was it with the final score of 7-23`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game had the date was it with the final score of 7-23`:
```sql
                SELECT "date" FROM "1990" WHERE "final_score"='7-23';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score of the game at the astrodome?`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score of the game at the astrodome?`:
```sql
                SELECT "final_score" FROM "1990" WHERE "stadium"='astrodome';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score for the date of December 30?`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score for the date of December 30?`:
```sql
                SELECT "final_score" FROM "1990" WHERE "date"='december 30';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the Visiting team at Jack Murphy Stadium?`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the Visiting team at Jack Murphy Stadium?`:
```sql
                SELECT "visiting_team" FROM "1990" WHERE "stadium"='jack murphy stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the host team at Texas stadium?`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the host team at Texas stadium?`:
```sql
                SELECT "host_team" FROM "1990" WHERE "stadium"='texas stadium';
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the host team dated December 16?`

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

CREATE TABLE "1990" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the host team dated December 16?`:
```sql
                SELECT "host_team" FROM "1990" WHERE "date"='december 16';
```
## Task
Generate a SQL query to answer the following question:
`Are there any Teams after 1997?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "class" text,
  "tyres" text,
  "team" text,
  "co_drivers" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Are there any Teams after 1997?`:
```sql
                SELECT "team" FROM "complete_24_hours_of_le_mans_results" WHERE "year">1997;
```
## Task
Generate a SQL query to answer the following question:
`Which class has laps under 77?`

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

CREATE TABLE "complete_24_hours_of_le_mans_results" (
  "year" real,
  "class" text,
  "tyres" text,
  "team" text,
  "co_drivers" text,
  "laps" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has laps under 77?`:
```sql
                SELECT "class" FROM "complete_24_hours_of_le_mans_results" WHERE "laps"<77;
```
## Task
Generate a SQL query to answer the following question:
`Who boarded first class?`

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

CREATE TABLE "guarantee_group" (
  "name" text,
  "class" text,
  "hometown" text,
  "boarded" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who boarded first class?`:
```sql
                SELECT "boarded" FROM "guarantee_group" WHERE "class"='first';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?`

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

CREATE TABLE "2007_08_lincoln_city_f_c_season" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "away_fans" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest attendance at a game when there were fewer than 151 away fans and an opponent of Bury?`:
```sql
                SELECT MIN("attendance") FROM "2007_08_lincoln_city_f_c_season" WHERE "away_fans"<151 AND "opponent"='bury';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest number of points with a Year of 1978, and a Chassis of ensign n177?`:
```sql
                SELECT MIN("points") FROM "complete_world_championship_formula_one_" WHERE "year"=1978 AND "chassis"='ensign n177';
```
## Task
Generate a SQL query to answer the following question:
`What are the highest number of points with an Entrant of warsteiner brewery?`

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

CREATE TABLE "complete_world_championship_formula_one_" (
  "year" real,
  "entrant" text,
  "chassis" text,
  "engine" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest number of points with an Entrant of warsteiner brewery?`:
```sql
                SELECT MAX("points") FROM "complete_world_championship_formula_one_" WHERE "entrant"='warsteiner brewery';
```
## Task
Generate a SQL query to answer the following question:
`What is the D 43 when D 46 is R 6?`

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

CREATE TABLE "before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "d_48" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D 43 when D 46 is R 6?`:
```sql
                SELECT "d_43" FROM "before_the_elections" WHERE "d_46"='r 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the D44 when D43 is R 14?`

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

CREATE TABLE "before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "d_48" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D44 when D43 is R 14?`:
```sql
                SELECT "d_44" FROM "before_the_elections" WHERE "d_43"='r 14';
```
## Task
Generate a SQL query to answer the following question:
`What is the D48 when D 43 is plurality ↑??`

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

CREATE TABLE "before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "d_48" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D48 when D 43 is plurality ↑??`:
```sql
                SELECT "d_48" FROM "before_the_elections" WHERE "d_43"='plurality ↑';
```
## Task
Generate a SQL query to answer the following question:
`What is the D44 when D41 is D 16?`

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

CREATE TABLE "before_the_elections" (
  "d_41" text,
  "d_42" text,
  "d_43" text,
  "d_44" text,
  "d_45" text,
  "d_46" text,
  "d_47" text,
  "d_48" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the D44 when D41 is D 16?`:
```sql
                SELECT "d_44" FROM "before_the_elections" WHERE "d_41"='d 16';
```
## Task
Generate a SQL query to answer the following question:
`What gender is the team that has a decile of 5 and in the Dalefield area?`

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

CREATE TABLE "carterton_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 gender is the team that has a decile of 5 and in the Dalefield area?`:
```sql
                SELECT "gender" FROM "carterton_district" WHERE "decile"=5 AND "area"='dalefield';
```
## Task
Generate a SQL query to answer the following question:
`What school in Dalefield has a roll less than 81?`

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

CREATE TABLE "carterton_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 school in Dalefield has a roll less than 81?`:
```sql
                SELECT "name" FROM "carterton_district" WHERE "roll"<81 AND "area"='dalefield';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Height (m) on the island of Burray?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Height (m) on the island of Burray?`:
```sql
                SELECT MIN("height_m") FROM "main_list" WHERE "island"='burray';
```
## Task
Generate a SQL query to answer the following question:
`What group on the island of Faray has a Height (m) of 32 and a Population of 0?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What group on the island of Faray has a Height (m) of 32 and a Population of 0?`:
```sql
                SELECT "group" FROM "main_list" WHERE "height_m"=32 AND "population"='0' AND "island"='faray';
```
## Task
Generate a SQL query to answer the following question:
`What group has a Population of see hoy?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What group has a Population of see hoy?`:
```sql
                SELECT "group" FROM "main_list" WHERE "population"='see hoy';
```
## Task
Generate a SQL query to answer the following question:
`What group on the island of Muckle Green Holm has a population of 0?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What group on the island of Muckle Green Holm has a population of 0?`:
```sql
                SELECT "group" FROM "main_list" WHERE "population"='0' AND "island"='muckle green holm';
```
## Task
Generate a SQL query to answer the following question:
`What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the area (ha) of the group on the island of Linga Holm that has a Height (m) larger than 7?`:
```sql
                SELECT "area_ha" FROM "main_list" WHERE "height_m">7 AND "island"='linga holm';
```
## Task
Generate a SQL query to answer the following question:
`What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?`

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

CREATE TABLE "main_list" (
  "island" text,
  "group" text,
  "area_ha" text,
  "population" text,
  "height_m" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Population of the group that has a Height (m) of 15 and an Area (ha) of 00017 17?`:
```sql
                SELECT "population" FROM "main_list" WHERE "height_m"=15 AND "area_ha"='00017 17';
```
## Task
Generate a SQL query to answer the following question:
`What is the roll number of the school in Aramoho with a decile of 1?`

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

CREATE TABLE "wanganui_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 the school in Aramoho with a decile of 1?`:
```sql
                SELECT "roll" FROM "wanganui_district" WHERE "area"='aramoho' AND "decile"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the area of Mangamahu primary school?`

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

CREATE TABLE "wanganui_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 area of Mangamahu primary school?`:
```sql
                SELECT "area" FROM "wanganui_district" WHERE "name"='mangamahu primary school';
```
## Task
Generate a SQL query to answer the following question:
`What is the area of the coed school with a state authority and a roll number of 122?`

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

CREATE TABLE "wanganui_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 area of the coed school with a state authority and a roll number of 122?`:
```sql
                SELECT "area" FROM "wanganui_district" WHERE "authority"='state' AND "gender"='coed' AND "roll"=122;
```
## Task
Generate a SQL query to answer the following question:
`Which result is older than 2007?`

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

CREATE TABLE "nominations_awards" (
  "year" real,
  "artist" text,
  "album_song" text,
  "award" text,
  "result_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which result is older than 2007?`:
```sql
                SELECT "result_category" FROM "nominations_awards" WHERE "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What year was the Album/Song Speaking louder than before?`

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

CREATE TABLE "nominations_awards" (
  "year" real,
  "artist" text,
  "album_song" text,
  "award" text,
  "result_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the Album/Song Speaking louder than before?`:
```sql
                SELECT SUM("year") FROM "nominations_awards" WHERE "album_song"='speaking louder than before';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year with the Album/Song "the best worst-case scenario"?`

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

CREATE TABLE "nominations_awards" (
  "year" real,
  "artist" text,
  "album_song" text,
  "award" text,
  "result_category" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year with the Album/Song "the best worst-case scenario"?`:
```sql
                SELECT MAX("year") FROM "nominations_awards" WHERE "album_song"='the best worst-case scenario';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface?`

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

CREATE TABLE "doubles_24_21" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the final in which Melanie South played with partner Remi Tezuka on a clay surface?`:
```sql
                SELECT "score" FROM "doubles_24_21" WHERE "surface"='clay' AND "partner"='remi tezuka';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?`

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

CREATE TABLE "doubles_24_21" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the final in which Melanie South played with partner Ksenia Lykina during the Kurume Cup tournament?`:
```sql
                SELECT "score" FROM "doubles_24_21" WHERE "partner"='ksenia lykina' AND "tournament"='kurume';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the final in which Melanie South played with partner Katie O'Brien?`

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

CREATE TABLE "doubles_24_21" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the final in which Melanie South played with partner Katie O'Brien?`:
```sql
                SELECT "score" FROM "doubles_24_21" WHERE "partner"='katie o''brien';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the tournament in Edinburgh?`

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

CREATE TABLE "doubles_24_21" (
  "outcome" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the tournament in Edinburgh?`:
```sql
                SELECT "outcome" FROM "doubles_24_21" WHERE "tournament"='edinburgh';
```
## Task
Generate a SQL query to answer the following question:
`What is the total decile with an Authority of state, and a Name of newfield park school?`

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

CREATE TABLE "invercargill_city" (
  "name" 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 total decile with an Authority of state, and a Name of newfield park school?`:
```sql
                SELECT SUM("decile") FROM "invercargill_city" WHERE "authority"='state' AND "name"='newfield park school';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?`

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

CREATE TABLE "invercargill_city" (
  "name" 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 largest decile with a Roll larger than 34, a Gender of coed, and an Authority of state integrated, and an Area of georgetown?`:
```sql
                SELECT MAX("decile") FROM "invercargill_city" WHERE "roll">34 AND "gender"='coed' AND "authority"='state integrated' AND "area"='georgetown';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?`

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

CREATE TABLE "invercargill_city" (
  "name" 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 smallest roll with an Authority of state, a Name of newfield park school, and a Decile smaller than 2?`:
```sql
                SELECT MIN("roll") FROM "invercargill_city" WHERE "authority"='state' AND "name"='newfield park school' AND "decile"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which name has an Area of makarewa?`

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

CREATE TABLE "invercargill_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has an Area of makarewa?`:
```sql
                SELECT "name" FROM "invercargill_city" WHERE "area"='makarewa';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?`

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

CREATE TABLE "invercargill_city" (
  "name" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Gender of coed, and a Decile larger than 5, and a Roll of 131?`:
```sql
                SELECT "name" FROM "invercargill_city" WHERE "gender"='coed' AND "decile">5 AND "roll"=131;
```
## Task
Generate a SQL query to answer the following question:
`Add up all the Ends columns that have goals smaller than 0.`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "goals" real,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Add up all the Ends columns that have goals smaller than 0.`:
```sql
                SELECT SUM("ends") FROM "squad_information" WHERE "goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What was the competition in 2003?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the competition in 2003?`:
```sql
                SELECT "competition" FROM "achievements" WHERE "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`Which position has 50+12 points and fewer than 10 draws?`

### 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 position has 50+12 points and fewer than 10 draws?`:
```sql
                SELECT MAX("position") FROM "final_table" WHERE "points"='50+12' AND "draws"<10;
```
## Task
Generate a SQL query to answer the following question:
`How many positions have goals of fewer than 40 and more than 38 played?`

### 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 `How many positions have goals of fewer than 40 and more than 38 played?`:
```sql
                SELECT COUNT("position") FROM "final_table" WHERE "goals_for"<40 AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?`

### 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 `How many losses are there in the CD Sabadell club with a goal difference less than -2, and more than 38 played?`:
```sql
                SELECT SUM("losses") FROM "final_table" WHERE "goal_difference"<-2 AND "club"='cd sabadell' AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?`

### 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 `What are the average number of played with goals of less than 43, more than 9 draws, a higher position than 17 and 30-8 points?`:
```sql
                SELECT AVG("played") FROM "final_table" WHERE "goals_for"<43 AND "draws">9 AND "position">17 AND "points"='30-8';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses of the player with an avg/g smaller than -3.3 and a gain larger than 126?`:
```sql
                SELECT COUNT("loss") FROM "rushing" WHERE "avg_g"<-3.3 AND "gain">126;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller than 55.9, and a long less than 34, had?`:
```sql
                SELECT COUNT("loss") FROM "rushing" WHERE "gain">27 AND "avg_g"<55.9 AND "name"='jackson, t.' AND "long"<34;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?`

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

CREATE TABLE "rushing" (
  "name" text,
  "gain" real,
  "loss" real,
  "long" real,
  "avg_g" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of long Dubose, E., who had 0 losses, a gain less than 17, and an avg/g bigger than 0, had?`:
```sql
                SELECT COUNT("long") FROM "rushing" WHERE "loss"=0 AND "gain"<17 AND "avg_g">0 AND "name"='dubose, e.';
```
## Task
Generate a SQL query to answer the following question:
`What date was the record 20–16?`

### 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 date was the record 20–16?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='20–16';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance in the gave versus the Brewers with a score of 9–6?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance in the gave versus the Brewers with a score of 9–6?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "opponent"='brewers' AND "score"='9–6';
```
## Task
Generate a SQL query to answer the following question:
`Matches of 127 has how many total number of inns?`

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

CREATE TABLE "first_class_records" (
  "name" text,
  "seasons" text,
  "matches" real,
  "inns" real,
  "runs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Matches of 127 has how many total number of inns?`:
```sql
                SELECT COUNT("inns") FROM "first_class_records" WHERE "matches"=127;
```
## Task
Generate a SQL query to answer the following question:
`Name of clem hill, and Inns larger than 126 has the lowest runs?`

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

CREATE TABLE "first_class_records" (
  "name" text,
  "seasons" text,
  "matches" real,
  "inns" real,
  "runs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name of clem hill, and Inns larger than 126 has the lowest runs?`:
```sql
                SELECT MIN("runs") FROM "first_class_records" WHERE "name"='clem hill' AND "inns">126;
```
## Task
Generate a SQL query to answer the following question:
`Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?`

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

CREATE TABLE "first_class_records" (
  "name" text,
  "seasons" text,
  "matches" real,
  "inns" real,
  "runs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Runs smaller than 6106, and Inns smaller than 146 has what total number of matches?`:
```sql
                SELECT COUNT("matches") FROM "first_class_records" WHERE "runs"<6106 AND "inns"<146;
```
## Task
Generate a SQL query to answer the following question:
`Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?`

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

CREATE TABLE "first_class_records" (
  "name" text,
  "seasons" text,
  "matches" real,
  "inns" real,
  "runs" real
);
### SQL
Given the database schema, here is the SQL query that answers `Seasons of 1987–2007, and a Runs larger than 11622 is the highest inns?`:
```sql
                SELECT MAX("inns") FROM "first_class_records" WHERE "seasons"='1987–2007' AND "runs">11622;
```
## Task
Generate a SQL query to answer the following question:
`Name the partner for opponents of františek čermák michal mertiňák`

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

CREATE TABLE "doubles_29_16_titles_13_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the partner for opponents of františek čermák michal mertiňák`:
```sql
                SELECT "partner" FROM "doubles_29_16_titles_13_runners_up" WHERE "opponents_in_the_final"='františek čermák michal mertiňák';
```
## Task
Generate a SQL query to answer the following question:
`Name the score in the final for january 12, 2013`

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

CREATE TABLE "doubles_29_16_titles_13_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score in the final for january 12, 2013`:
```sql
                SELECT "score_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "date"='january 12, 2013';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponents for outcome of runner-up and date of august 7, 2011`

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

CREATE TABLE "doubles_29_16_titles_13_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for outcome of runner-up and date of august 7, 2011`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "outcome"='runner-up' AND "date"='august 7, 2011';
```
## Task
Generate a SQL query to answer the following question:
`Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner`

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

CREATE TABLE "doubles_29_16_titles_13_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner`:
```sql
                SELECT "partner" FROM "doubles_29_16_titles_13_runners_up" WHERE "surface"='grass' AND "opponents_in_the_final"='jürgen melzer philipp petzschner';
```
## Task
Generate a SQL query to answer the following question:
`Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić`

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

CREATE TABLE "doubles_29_16_titles_13_runners_up" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score in the final for runner-up and hard surface with opponents being michaël llodra nenad zimonjić`:
```sql
                SELECT "score_in_the_final" FROM "doubles_29_16_titles_13_runners_up" WHERE "outcome"='runner-up' AND "surface"='hard' AND "opponents_in_the_final"='michaël llodra nenad zimonjić';
```
## Task
Generate a SQL query to answer the following question:
`What date was the ship 'Wyandotte' launched?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" text,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the ship 'Wyandotte' launched?`:
```sql
                SELECT "launched" FROM "ships" WHERE "ship"='wyandotte';
```
## Task
Generate a SQL query to answer the following question:
`What was the original name of the ship 'Ajax'?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" text,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original name of the ship 'Ajax'?`:
```sql
                SELECT "renamed" FROM "ships" WHERE "ship"='ajax';
```
## Task
Generate a SQL query to answer the following question:
`What date was the ship named Manhattan completed?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" text,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the ship named Manhattan completed?`:
```sql
                SELECT "commissioned_or_completed" FROM "ships" WHERE "ship"='manhattan';
```
## Task
Generate a SQL query to answer the following question:
`What position had fewer than 373 laps and a class position of 1st?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position had fewer than 373 laps and a class position of 1st?`:
```sql
                SELECT "pos" FROM "24_hours_of_le_mans_results" WHERE "laps"<373 AND "class_pos"='1st';
```
## Task
Generate a SQL query to answer the following question:
`What class had fewer than 336 laps in 2004?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What class had fewer than 336 laps in 2004?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "laps"<336 AND "year"=2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance of game 1?`

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

CREATE TABLE "summary" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance of game 1?`:
```sql
                SELECT AVG("attendance") FROM "summary" WHERE "game"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance amount of the race with a time of 2:07?`

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

CREATE TABLE "summary" (
  "game" real,
  "date" text,
  "location" text,
  "time" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance amount of the race with a time of 2:07?`:
```sql
                SELECT MAX("attendance") FROM "summary" WHERE "time"='2:07';
```
## Task
Generate a SQL query to answer the following question:
`What club has less than 61 goals for and 55 goals against?`

### 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 `What club has less than 61 goals for and 55 goals against?`:
```sql
                SELECT "club" FROM "final_table" WHERE "goals_for"<61 AND "goals_against"=55;
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of Draws for the game that had a score of 45+7 and a position below 3?`

### 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 `What is the amount of Draws for the game that had a score of 45+7 and a position below 3?`:
```sql
                SELECT COUNT("draws") FROM "final_table" WHERE "points"='45+7' AND "position"<3;
```
## Task
Generate a SQL query to answer the following question:
`What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?`

### 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 `What was the number of draws when the Elche CF club played 38 and had a goal difference of -16?`:
```sql
                SELECT MIN("draws") FROM "final_table" WHERE "goal_difference">-16 AND "club"='elche cf' AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`Who was the recipient for Outstanding actress television series prior to 2008?`

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

CREATE TABLE "alma_awards" (
  "year" real,
  "recipient" text,
  "role" text,
  "category" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the recipient for Outstanding actress television series prior to 2008?`:
```sql
                SELECT "recipient" FROM "alma_awards" WHERE "year"<2008;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game when the record was 71-78?`

### 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" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game when the record was 71-78?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='71-78';
```