cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the average incorporataed year of the Air India Charters company?`

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

CREATE TABLE "transport" (
  "s_no" real,
  "company" text,
  "incorporated" real,
  "ministry" text,
  "sector" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average incorporataed year of the Air India Charters company?`:
```sql
                SELECT AVG("incorporated") FROM "transport" WHERE "company"='air india charters';
```
## Task
Generate a SQL query to answer the following question:
`How many votes were tallied in 1956 with a % of national vote larger than 11.47?`

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

CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
  "date" text,
  "candidates_nominated" real,
  "candidates_elected" text,
  "votes" real,
  "pct_of_national_vote" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes were tallied in 1956 with a % of national vote larger than 11.47?`:
```sql
                SELECT SUM("votes") FROM "lanka_sama_samaja_party_electoral_result" WHERE "date"='1956' AND "pct_of_national_vote">11.47;
```
## Task
Generate a SQL query to answer the following question:
`How many candidates were nominated in 1952 with under 305,133 votes?`

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

CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
  "date" text,
  "candidates_nominated" real,
  "candidates_elected" text,
  "votes" real,
  "pct_of_national_vote" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates were nominated in 1952 with under 305,133 votes?`:
```sql
                SELECT SUM("candidates_nominated") FROM "lanka_sama_samaja_party_electoral_result" WHERE "date"='1952' AND "votes"<'305,133';
```
## Task
Generate a SQL query to answer the following question:
`How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated?`

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

CREATE TABLE "lanka_sama_samaja_party_electoral_result" (
  "date" text,
  "candidates_nominated" real,
  "candidates_elected" text,
  "votes" real,
  "pct_of_national_vote" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many votes were tallied with a % of national vote of 13.11, and over 39 candidates nominated?`:
```sql
                SELECT COUNT("votes") FROM "lanka_sama_samaja_party_electoral_result" WHERE "pct_of_national_vote"=13.11 AND "candidates_nominated">39;
```
## Task
Generate a SQL query to answer the following question:
`Who is the visitor with a record of 14–17–5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the visitor with a record of 14–17–5?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "record"='14–17–5';
```
## Task
Generate a SQL query to answer the following question:
`How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many in attendance when Penguins were home with a record of 14–19–6 with less than 34 points?`:
```sql
                SELECT COUNT("attendance") FROM "game_log" WHERE "home"='penguins' AND "record"='14–19–6' AND "points"<34;
```
## Task
Generate a SQL query to answer the following question:
`Which Format has a Catalog of 561 445-1?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Format has a Catalog of 561 445-1?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='561 445-1';
```
## Task
Generate a SQL query to answer the following question:
`Which Region has a Date of early september 1999?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Region has a Date of early september 1999?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='early september 1999';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game with a loss of White (4-5)?`

### 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 `What was the date of the game with a loss of White (4-5)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='white (4-5)';
```
## Task
Generate a SQL query to answer the following question:
`what score has a location and attendance of montreal forum and the date of may 10?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `what score has a location and attendance of montreal forum and the date of may 10?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "location_attendance"='montreal forum' AND "date"='may 10';
```
## Task
Generate a SQL query to answer the following question:
`Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27`

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

CREATE TABLE "preliminaries_scores" (
  "province" text,
  "swimsuit" real,
  "evening_gown" real,
  "interview" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interview has a Province of monte cristi and a Swimsuit larger than 7.27`:
```sql
                SELECT SUM("interview") FROM "preliminaries_scores" WHERE "province"='monte cristi' AND "swimsuit">7.27;
```
## Task
Generate a SQL query to answer the following question:
`WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98?`

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

CREATE TABLE "preliminaries_scores" (
  "province" text,
  "swimsuit" real,
  "evening_gown" real,
  "interview" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHich Evening Gown has a Swimsuit smaller than 7.99 and a Interview larger than 7.98?`:
```sql
                SELECT AVG("evening_gown") FROM "preliminaries_scores" WHERE "swimsuit"<7.99 AND "interview">7.98;
```
## Task
Generate a SQL query to answer the following question:
`Which Interview has a Swimsuit larger than 7.6, and a Province of la vega, and an Average smaller than 8.38?`

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

CREATE TABLE "preliminaries_scores" (
  "province" text,
  "swimsuit" real,
  "evening_gown" real,
  "interview" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Interview has a Swimsuit larger than 7.6, and a Province of la vega, and an Average smaller than 8.38?`:
```sql
                SELECT SUM("interview") FROM "preliminaries_scores" WHERE "swimsuit">7.6 AND "province"='la vega' AND "average"<8.38;
```
## Task
Generate a SQL query to answer the following question:
`Which items in segment A have a segment D of marble sculptures?`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which items in segment A have a segment D of marble sculptures?`:
```sql
                SELECT "segment_a" FROM "season_13_2009" WHERE "segment_d"='marble sculptures';
```
## Task
Generate a SQL query to answer the following question:
`Which segment A also has a segment D of kitchen shears?`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which segment A also has a segment D of kitchen shears?`:
```sql
                SELECT "segment_a" FROM "season_13_2009" WHERE "segment_d"='kitchen shears';
```
## Task
Generate a SQL query to answer the following question:
`Which items in segment C is episode 160?`

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

CREATE TABLE "season_13_2009" (
  "series_ep" text,
  "episode" real,
  "segment_a" text,
  "segment_b" text,
  "segment_c" text,
  "segment_d" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which items in segment C is episode 160?`:
```sql
                SELECT "segment_c" FROM "season_13_2009" WHERE "episode"=160;
```
## Task
Generate a SQL query to answer the following question:
`Which season last aired on May 6, 1987?`

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

CREATE TABLE "ratings" (
  "season" text,
  "episodes" real,
  "first_airdate" text,
  "last_airdate" text,
  "nielsen_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season last aired on May 6, 1987?`:
```sql
                SELECT "season" FROM "ratings" WHERE "last_airdate"='may 6, 1987';
```
## Task
Generate a SQL query to answer the following question:
`What is the Nielsen ranking for Season 8?`

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

CREATE TABLE "ratings" (
  "season" text,
  "episodes" real,
  "first_airdate" text,
  "last_airdate" text,
  "nielsen_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nielsen ranking for Season 8?`:
```sql
                SELECT "nielsen_ranking" FROM "ratings" WHERE "season"='season 8';
```
## Task
Generate a SQL query to answer the following question:
`What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38?`

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

CREATE TABLE "ratings" (
  "season" text,
  "episodes" real,
  "first_airdate" text,
  "last_airdate" text,
  "nielsen_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first airdate or the season that had less than 24 episodes and a Nielsen ranking of #38?`:
```sql
                SELECT "first_airdate" FROM "ratings" WHERE "episodes"<24 AND "nielsen_ranking"='#38';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were in the season that first aired on September 22, 1989?`

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

CREATE TABLE "ratings" (
  "season" text,
  "episodes" real,
  "first_airdate" text,
  "last_airdate" text,
  "nielsen_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were in the season that first aired on September 22, 1989?`:
```sql
                SELECT "episodes" FROM "ratings" WHERE "first_airdate"='september 22, 1989';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were in the season that ended on April 29, 1986?`

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

CREATE TABLE "ratings" (
  "season" text,
  "episodes" real,
  "first_airdate" text,
  "last_airdate" text,
  "nielsen_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were in the season that ended on April 29, 1986?`:
```sql
                SELECT AVG("episodes") FROM "ratings" WHERE "last_airdate"='april 29, 1986';
```
## Task
Generate a SQL query to answer the following question:
`Where the ship is Dahlgren what is the build as?`

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

CREATE TABLE "references" (
  "ship" text,
  "built_as" text,
  "reclassified_as" text,
  "class" text,
  "commissioned_decommissioned" text,
  "nvr_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the ship is Dahlgren what is the build as?`:
```sql
                SELECT "built_as" FROM "references" WHERE "ship"='dahlgren';
```
## Task
Generate a SQL query to answer the following question:
`Where the NRV link is CGN38, what is the reclassified as?`

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

CREATE TABLE "references" (
  "ship" text,
  "built_as" text,
  "reclassified_as" text,
  "class" text,
  "commissioned_decommissioned" text,
  "nvr_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the NRV link is CGN38, what is the reclassified as?`:
```sql
                SELECT "reclassified_as" FROM "references" WHERE "nvr_link"='cgn38';
```
## Task
Generate a SQL query to answer the following question:
`Where the built as is DLG-23, what is the class?`

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

CREATE TABLE "references" (
  "ship" text,
  "built_as" text,
  "reclassified_as" text,
  "class" text,
  "commissioned_decommissioned" text,
  "nvr_link" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the built as is DLG-23, what is the class?`:
```sql
                SELECT "class" FROM "references" WHERE "built_as"='dlg-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the Total medals won by the nation in Rank 6 with less than 2 Bronze medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total medals won by the nation in Rank 6 with less than 2 Bronze medals?`:
```sql
                SELECT SUM("total") FROM "medal_table" WHERE "rank"='6' AND "bronze"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many Gold medals were won by the Nation that had more than 12 Bronze medals and less than 124 Total medals?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Gold medals were won by the Nation that had more than 12 Bronze medals and less than 124 Total medals?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "bronze">12 AND "total"<124;
```
## Task
Generate a SQL query to answer the following question:
`December smaller than 21, and a Opponent of buffalo sabres had what score?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `December smaller than 21, and a Opponent of buffalo sabres had what score?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "december"<21 AND "opponent"='buffalo sabres';
```
## Task
Generate a SQL query to answer the following question:
`Score of 8 - 1 happened on what day in December?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 8 - 1 happened on what day in December?`:
```sql
                SELECT "december" FROM "schedule_and_results" WHERE "score"='8 - 1';
```
## Task
Generate a SQL query to answer the following question:
`December larger than 21, and a Opponent of Pittsburgh penguins had what average game?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `December larger than 21, and a Opponent of Pittsburgh penguins had what average game?`:
```sql
                SELECT AVG("game") FROM "schedule_and_results" WHERE "december">21 AND "opponent"='pittsburgh penguins';
```
## Task
Generate a SQL query to answer the following question:
`December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `December smaller than 14, and a Game smaller than 28, and a Score of 6 - 6 involved what opponent?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "december"<14 AND "game"<28 AND "score"='6 - 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the date that the item was laid down if it was launched on 1899-04-25?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name_translation" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that the item was laid down if it was launched on 1899-04-25?`:
```sql
                SELECT "laid_down" FROM "list_of_ships" WHERE "launched"='1899-04-25';
```
## Task
Generate a SQL query to answer the following question:
`Which builder is associated with ikazuchi "thunder"?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name_translation" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which builder is associated with ikazuchi "thunder"?`:
```sql
                SELECT "builder" FROM "list_of_ships" WHERE "name_translation"='ikazuchi \"thunder\"';
```
## Task
Generate a SQL query to answer the following question:
`Which builder has the the kanji of 曙?`

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

CREATE TABLE "list_of_ships" (
  "kanji" text,
  "name_translation" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which builder has the the kanji of 曙?`:
```sql
                SELECT "builder" FROM "list_of_ships" WHERE "kanji"='曙';
```
## Task
Generate a SQL query to answer the following question:
`Which Density per km² is the lowest one that has a Number (map) smaller than 13, and an Area in km² of 11.1?`

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

CREATE TABLE "list_of_montreal_boroughs" (
  "number_map" real,
  "borough" text,
  "population_canada_2011_census" real,
  "area_in_km" real,
  "density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Density per km² is the lowest one that has a Number (map) smaller than 13, and an Area in km² of 11.1?`:
```sql
                SELECT MIN("density_per_km") FROM "list_of_montreal_boroughs" WHERE "number_map"<13 AND "area_in_km"=11.1;
```
## Task
Generate a SQL query to answer the following question:
`Which Area in km² has a Population Canada 2011 Census larger than 18,097, and a Borough of verdun?`

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

CREATE TABLE "list_of_montreal_boroughs" (
  "number_map" real,
  "borough" text,
  "population_canada_2011_census" real,
  "area_in_km" real,
  "density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Area in km² has a Population Canada 2011 Census larger than 18,097, and a Borough of verdun?`:
```sql
                SELECT "area_in_km" FROM "list_of_montreal_boroughs" WHERE "population_canada_2011_census">'18,097' AND "borough"='verdun';
```
## Task
Generate a SQL query to answer the following question:
`How much #s have an Area in km² larger than 13.5, and a Population Canada 2011 Census of 134,038?`

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

CREATE TABLE "list_of_montreal_boroughs" (
  "number_map" real,
  "borough" text,
  "population_canada_2011_census" real,
  "area_in_km" real,
  "density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much #s have an Area in km² larger than 13.5, and a Population Canada 2011 Census of 134,038?`:
```sql
                SELECT COUNT("number_map") FROM "list_of_montreal_boroughs" WHERE "area_in_km">13.5 AND "population_canada_2011_census"='134,038';
```
## Task
Generate a SQL query to answer the following question:
`Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?`

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

CREATE TABLE "list_of_montreal_boroughs" (
  "number_map" real,
  "borough" text,
  "population_canada_2011_census" real,
  "area_in_km" real,
  "density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?`:
```sql
                SELECT MIN("number_map") FROM "list_of_montreal_boroughs" WHERE "area_in_km"=9.7 AND "population_canada_2011_census">'66,158';
```
## Task
Generate a SQL query to answer the following question:
`Attendance of 19,741 had what average week?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance of 19,741 had what average week?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "attendance"='19,741';
```
## Task
Generate a SQL query to answer the following question:
`Attendance of 29,000 occurred on what date?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Attendance of 29,000 occurred on what date?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='29,000';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of Philadelphia eagles had what attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of Philadelphia eagles had what attendance?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "opponent"='philadelphia eagles';
```
## Task
Generate a SQL query to answer the following question:
`What day did Alex Best exit?`

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

CREATE TABLE "series_3_2004" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day did Alex Best exit?`:
```sql
                SELECT "exited" FROM "series_3_2004" WHERE "celebrity"='alex best';
```
## Task
Generate a SQL query to answer the following question:
`What place did the celebrity who is famous for being an athlete finish?`

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

CREATE TABLE "series_3_2004" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the celebrity who is famous for being an athlete finish?`:
```sql
                SELECT "finished" FROM "series_3_2004" WHERE "famous_for"='athlete';
```
## Task
Generate a SQL query to answer the following question:
`What place did the singer in atomic kitten finish?`

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

CREATE TABLE "series_3_2004" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place did the singer in atomic kitten finish?`:
```sql
                SELECT "finished" FROM "series_3_2004" WHERE "famous_for"='singer in atomic kitten';
```
## Task
Generate a SQL query to answer the following question:
`Who was the celebrity who exited on day 13?`

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

CREATE TABLE "series_3_2004" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the celebrity who exited on day 13?`:
```sql
                SELECT "celebrity" FROM "series_3_2004" WHERE "exited"='day 13';
```
## Task
Generate a SQL query to answer the following question:
`Who was the celebrity who finished in 7th place?`

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

CREATE TABLE "series_3_2004" (
  "celebrity" text,
  "famous_for" text,
  "entered" text,
  "exited" text,
  "finished" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the celebrity who finished in 7th place?`:
```sql
                SELECT "celebrity" FROM "series_3_2004" WHERE "finished"='7th';
```
## Task
Generate a SQL query to answer the following question:
`Name of gilmar, and a Caps smaller than 94 had how many highest goals?`

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

CREATE TABLE "most_capped_players" (
  "name" text,
  "caps" real,
  "goals" real,
  "first_cap" text,
  "latest_cap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of gilmar, and a Caps smaller than 94 had how many highest goals?`:
```sql
                SELECT MAX("goals") FROM "most_capped_players" WHERE "name"='gilmar' AND "caps"<94;
```
## Task
Generate a SQL query to answer the following question:
`Caps of 93 had how many goals?`

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

CREATE TABLE "most_capped_players" (
  "name" text,
  "caps" real,
  "goals" real,
  "first_cap" text,
  "latest_cap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Caps of 93 had how many goals?`:
```sql
                SELECT "goals" FROM "most_capped_players" WHERE "caps"=93;
```
## Task
Generate a SQL query to answer the following question:
`Latest cap of september 5, 2011 had how many goals?`

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

CREATE TABLE "most_capped_players" (
  "name" text,
  "caps" real,
  "goals" real,
  "first_cap" text,
  "latest_cap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Latest cap of september 5, 2011 had how many goals?`:
```sql
                SELECT "goals" FROM "most_capped_players" WHERE "latest_cap"='september 5, 2011';
```
## Task
Generate a SQL query to answer the following question:
`Name of rivelino had how many highest caps?`

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

CREATE TABLE "most_capped_players" (
  "name" text,
  "caps" real,
  "goals" real,
  "first_cap" text,
  "latest_cap" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name of rivelino had how many highest caps?`:
```sql
                SELECT MAX("caps") FROM "most_capped_players" WHERE "name"='rivelino';
```
## Task
Generate a SQL query to answer the following question:
`Which athlete played at the Birmingham venue?`

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

CREATE TABLE "women_indoor" (
  "pos" real,
  "mark" text,
  "athlete" text,
  "venue" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which athlete played at the Birmingham venue?`:
```sql
                SELECT "athlete" FROM "women_indoor" WHERE "venue"='birmingham';
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency has a Webcast of •, and a Callsign of xemr?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency has a Webcast of •, and a Callsign of xemr?`:
```sql
                SELECT AVG("frequency") FROM "long_range_am_stations" WHERE "webcast"='•' AND "callsign"='xemr';
```
## Task
Generate a SQL query to answer the following question:
`Which Website has a Frequency smaller than 760 and a Callsign of kkyx?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Website has a Frequency smaller than 760 and a Callsign of kkyx?`:
```sql
                SELECT "website" FROM "long_range_am_stations" WHERE "frequency"<760 AND "callsign"='kkyx';
```
## Task
Generate a SQL query to answer the following question:
`Which Webcast has a Callsign of kgbt?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Webcast has a Callsign of kgbt?`:
```sql
                SELECT "webcast" FROM "long_range_am_stations" WHERE "callsign"='kgbt';
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency has a Website of •, and a Webcast of •in san antonio?`

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

CREATE TABLE "long_range_am_stations" (
  "frequency" real,
  "callsign" text,
  "brand" text,
  "city_of_license" text,
  "website" text,
  "webcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency has a Website of •, and a Webcast of •in san antonio?`:
```sql
                SELECT AVG("frequency") FROM "long_range_am_stations" WHERE "website"='•' AND "webcast"='•' AND "city_of_license"='san antonio';
```
## Task
Generate a SQL query to answer the following question:
`What years did the player play when he scored 78 points and 22 goals?`

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

CREATE TABLE "all_time_career_leaders" (
  "rank" text,
  "player" text,
  "goals" text,
  "assists" text,
  "points" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did the player play when he scored 78 points and 22 goals?`:
```sql
                SELECT "years" FROM "all_time_career_leaders" WHERE "points"='78' AND "goals"='22';
```
## Task
Generate a SQL query to answer the following question:
`How many goals did Joey Worthen have when he had 15 assists?`

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

CREATE TABLE "all_time_career_leaders" (
  "rank" text,
  "player" text,
  "goals" text,
  "assists" text,
  "points" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals did Joey Worthen have when he had 15 assists?`:
```sql
                SELECT "goals" FROM "all_time_career_leaders" WHERE "assists"='15' AND "player"='joey worthen';
```
## Task
Generate a SQL query to answer the following question:
`How many goals were scored when 158 points were collected?`

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

CREATE TABLE "all_time_career_leaders" (
  "rank" text,
  "player" text,
  "goals" text,
  "assists" text,
  "points" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals were scored when 158 points were collected?`:
```sql
                SELECT "goals" FROM "all_time_career_leaders" WHERE "points"='158';
```
## Task
Generate a SQL query to answer the following question:
`What years had players who scored 36 goals?`

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

CREATE TABLE "all_time_career_leaders" (
  "rank" text,
  "player" text,
  "goals" text,
  "assists" text,
  "points" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years had players who scored 36 goals?`:
```sql
                SELECT "years" FROM "all_time_career_leaders" WHERE "goals"='36';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank of the player who had 13 assists?`

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

CREATE TABLE "all_time_career_leaders" (
  "rank" text,
  "player" text,
  "goals" text,
  "assists" text,
  "points" text,
  "years" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank of the player who had 13 assists?`:
```sql
                SELECT "rank" FROM "all_time_career_leaders" WHERE "assists"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the weeks during which the Redskins played against the Houston Oilers and had more than 54,582 fans in attendance?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "opponent"='houston oilers' AND "attendance">'54,582';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance for week 1?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance for week 1?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "week"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number in attendance for the game after week 8 that was on November 25, 1979?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number in attendance for the game after week 8 that was on November 25, 1979?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week">8 AND "date"='november 25, 1979';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Score of 2009 wta tour?`

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

CREATE TABLE "top_10_wins_per_season" (
  "player" text,
  "ranking" text,
  "event" text,
  "surface" text,
  "round" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Score of 2009 wta tour?`:
```sql
                SELECT "surface" FROM "top_10_wins_per_season" WHERE "score"='2009 wta tour';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Ranking of 2008 wta tour?`

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

CREATE TABLE "top_10_wins_per_season" (
  "player" text,
  "ranking" text,
  "event" text,
  "surface" text,
  "round" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Ranking of 2008 wta tour?`:
```sql
                SELECT "round" FROM "top_10_wins_per_season" WHERE "ranking"='2008 wta tour';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Round of 4th round, and a Player of maria sharapova?`

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

CREATE TABLE "top_10_wins_per_season" (
  "player" text,
  "ranking" text,
  "event" text,
  "surface" text,
  "round" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Round of 4th round, and a Player of maria sharapova?`:
```sql
                SELECT "surface" FROM "top_10_wins_per_season" WHERE "round"='4th round' AND "player"='maria sharapova';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Score of 6–4, 7–6 (7–5)?`

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

CREATE TABLE "top_10_wins_per_season" (
  "player" text,
  "ranking" text,
  "event" text,
  "surface" text,
  "round" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Score of 6–4, 7–6 (7–5)?`:
```sql
                SELECT "player" FROM "top_10_wins_per_season" WHERE "score"='6–4, 7–6 (7–5)';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Player of anna chakvetadze?`

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

CREATE TABLE "top_10_wins_per_season" (
  "player" text,
  "ranking" text,
  "event" text,
  "surface" text,
  "round" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Player of anna chakvetadze?`:
```sql
                SELECT "round" FROM "top_10_wins_per_season" WHERE "player"='anna chakvetadze';
```
## Task
Generate a SQL query to answer the following question:
`Record of 89-67 had what loss?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Record of 89-67 had what loss?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='89-67';
```
## Task
Generate a SQL query to answer the following question:
`Score of 3 - 2 had what record?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Score of 3 - 2 had what record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='3 - 2';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='@ blue jays' AND "loss"='lyon (5-4)';
```
## Task
Generate a SQL query to answer the following question:
`Loss of lyon (5-4) had what score?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of lyon (5-4) had what score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='lyon (5-4)';
```
## Task
Generate a SQL query to answer the following question:
`Loss of finley (8-7) had what record?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Loss of finley (8-7) had what record?`:
```sql
                SELECT "record" FROM "game_log" WHERE "loss"='finley (8-7)';
```
## Task
Generate a SQL query to answer the following question:
`Opponent of @ blue jays, and a Date of october 6 had what score?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Opponent of @ blue jays, and a Date of october 6 had what score?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='@ blue jays' AND "date"='october 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for game 5?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for game 5?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the score that has a game greater than 3, with buffalo sabres as the opponent?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score that has a game greater than 3, with buffalo sabres as the opponent?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game">3 AND "opponent"='buffalo sabres';
```
## Task
Generate a SQL query to answer the following question:
`What score has may 9 as the date?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has may 9 as the date?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "date"='may 9';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on October 16, 1983?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on October 16, 1983?`:
```sql
                SELECT "score" FROM "singles_5_4_1" WHERE "date"='october 16, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when she was a runner-up?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when she was a runner-up?`:
```sql
                SELECT "score" FROM "singles_5_4_1" WHERE "outcome"='runner-up';
```
## Task
Generate a SQL query to answer the following question:
`What tournament was being played on August 11, 1984?`

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

CREATE TABLE "singles_5_4_1" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament was being played on August 11, 1984?`:
```sql
                SELECT "tournament" FROM "singles_5_4_1" WHERE "date"='august 11, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What was the Venue on June 8, 2005?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Venue on June 8, 2005?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='june 8, 2005';
```