cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Top-5, when Tournament is Totals, and when Events is greater than 86?`:
```sql
                SELECT SUM("top_5") FROM "summary" WHERE "tournament"='totals' AND "events">86;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Top-10, when Wins is less than 0?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Top-10, when Wins is less than 0?`:
```sql
                SELECT AVG("top_10") FROM "summary" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Top-25, when Events is greater than 86?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Top-25, when Events is greater than 86?`:
```sql
                SELECT COUNT("top_25") FROM "summary" WHERE "events">86;
```
## Task
Generate a SQL query to answer the following question:
`What 2011 has 4r as the 2008?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2011 has 4r as the 2008?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "2008"='4r';
```
## Task
Generate a SQL query to answer the following question:
`What 2007 has wimbledon as the tournament?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2007 has wimbledon as the tournament?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What 2006 has 1r as the 2007?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2006 has 1r as the 2007?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "2007"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has q2 as the 2004?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has q2 as the 2004?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2004"='q2';
```
## Task
Generate a SQL query to answer the following question:
`What 2009 has grand slam tournaments of 2008?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2009 has grand slam tournaments of 2008?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What 2006 has 0-0 as the 2011?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2006 has 0-0 as the 2011?`:
```sql
                SELECT "2006" FROM "singles_performance_timeline" WHERE "2011"='0-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the Lineup from a Match that is 27?`

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

CREATE TABLE "matches_and_goals_scored_at_world_cup_an" (
  "match" text,
  "date" text,
  "location" text,
  "lineup" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Lineup from a Match that is 27?`:
```sql
                SELECT "lineup" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "match"='27';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for Orangeville?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for Orangeville?`:
```sql
                SELECT "date" FROM "locomotives" WHERE "name"='orangeville';
```
## Task
Generate a SQL query to answer the following question:
`Who is the builder with a works number of 2534?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the builder with a works number of 2534?`:
```sql
                SELECT "builder" FROM "locomotives" WHERE "works_number"='2534';
```
## Task
Generate a SQL query to answer the following question:
`Who is the name with a works number of 809?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the name with a works number of 809?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "works_number"='809';
```
## Task
Generate a SQL query to answer the following question:
`In early 1873, Owen sound had what works number?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `In early 1873, Owen sound had what works number?`:
```sql
                SELECT "works_number" FROM "locomotives" WHERE "date"='early 1873' AND "name"='owen sound';
```
## Task
Generate a SQL query to answer the following question:
`What was the name for the locomotive with a type of 2-8-0 and a number of 20?`

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

CREATE TABLE "locomotives" (
  "number" real,
  "name" text,
  "builder" text,
  "type" text,
  "date" text,
  "works_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name for the locomotive with a type of 2-8-0 and a number of 20?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "type"='2-8-0' AND "number"=20;
```
## Task
Generate a SQL query to answer the following question:
`What is the Year won for the player with a larger than 4 To par and less the 157 Total?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year won for the player with a larger than 4 To par and less the 157 Total?`:
```sql
                SELECT "year_won" FROM "missed_the_cut" WHERE "to_par">4 AND "total"<157;
```
## Task
Generate a SQL query to answer the following question:
`What is the Total for the Player who won after 1983 with less than 4 To par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total for the Player who won after 1983 with less than 4 To par?`:
```sql
                SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par"<4 AND "year_won">1983;
```
## Task
Generate a SQL query to answer the following question:
`What is the Total of the player who won before 1983 with a smaller than 4 To par?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_won" real,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Total of the player who won before 1983 with a smaller than 4 To par?`:
```sql
                SELECT COUNT("total") FROM "missed_the_cut" WHERE "to_par"<4 AND "year_won"<1983;
```
## Task
Generate a SQL query to answer the following question:
`Which venue led to a draw?`

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

CREATE TABLE "england_in_south_africa_1913_4" (
  "date" text,
  "home_captain" text,
  "away_captain" text,
  "venue" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue led to a draw?`:
```sql
                SELECT "venue" FROM "england_in_south_africa_1913_4" WHERE "result"='draw';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Stolen Ends when ludmila privivkova shows for skip?`

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

CREATE TABLE "standings" (
  "nation" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Stolen Ends when ludmila privivkova shows for skip?`:
```sql
                SELECT MAX("stolen_ends") FROM "standings" WHERE "skip"='ludmila privivkova';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?`

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

CREATE TABLE "standings" (
  "nation" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Blank Ends for Denmark when less than 42 is the ends lost?`:
```sql
                SELECT SUM("blank_ends") FROM "standings" WHERE "nation"='denmark' AND "ends_lost"<42;
```
## Task
Generate a SQL query to answer the following question:
`What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.`

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

CREATE TABLE "standings" (
  "nation" text,
  "skip" text,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.`:
```sql
                SELECT "blank_ends" FROM "standings" WHERE "ends_won"<39 AND "ends_lost">35 AND "stolen_ends"=4;
```
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?`:
```sql
                SELECT "20_questions" FROM "1995" WHERE "interview_subject"='camille paglia';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model on 5-95?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold Model on 5-95?`:
```sql
                SELECT "centerfold_model" FROM "1995" WHERE "date"='5-95';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?`:
```sql
                SELECT "20_questions" FROM "1995" WHERE "cover_model"='kimberley conrad hefner';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Centerfold Model when the Cover Model was Julie Lynn Cialini?`:
```sql
                SELECT "centerfold_model" FROM "1995" WHERE "cover_model"='julie lynn cialini';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Interview Subject when the Centerfold Model was Melissa Deanne Holliday?`:
```sql
                SELECT "interview_subject" FROM "1995" WHERE "centerfold_model"='melissa deanne holliday';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?`

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

CREATE TABLE "1995" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?`:
```sql
                SELECT "20_questions" FROM "1995" WHERE "centerfold_model"='rachel jeán marteen';
```
## Task
Generate a SQL query to answer the following question:
`What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "previous_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average Jersey # of Steve Griffith, when his Weight (kg) was less than 84?`:
```sql
                SELECT AVG("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "name"='steve griffith' AND "weight_kg"<84;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest Weight (kg) for a player that had Jersey #10?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "previous_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest Weight (kg) for a player that had Jersey #10?`:
```sql
                SELECT MIN("weight_kg") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?`

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

CREATE TABLE "list_of_united_states_national_ice_hocke" (
  "position" text,
  "jersey_num" real,
  "name" text,
  "height_cm" real,
  "weight_kg" real,
  "birthdate" text,
  "birthplace" text,
  "previous_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?`:
```sql
                SELECT COUNT("height_cm") FROM "list_of_united_states_national_ice_hocke" WHERE "jersey_num"<16 AND "name"='mark fusco';
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode that martin worth wrote the story for?`

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

CREATE TABLE "series_4" (
  "episode" real,
  "title" text,
  "story" text,
  "adapted_by" text,
  "director" text,
  "airdate" text,
  "exists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode that martin worth wrote the story for?`:
```sql
                SELECT "title" FROM "series_4" WHERE "story"='martin worth';
```
## Task
Generate a SQL query to answer the following question:
`In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?`

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

CREATE TABLE "doubles_13_9_titles_4_runners_up" (
  "outcome" text,
  "year" text,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?`:
```sql
                SELECT "year" FROM "doubles_13_9_titles_4_runners_up" WHERE "outcome"='runner-up' AND "score"='4–6, 6–4, [8–10]';
```
## Task
Generate a SQL query to answer the following question:
`On what surface was the game played that had a score of 4–6, 6–4, [8–10]?`

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

CREATE TABLE "doubles_13_9_titles_4_runners_up" (
  "outcome" text,
  "year" text,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what surface was the game played that had a score of 4–6, 6–4, [8–10]?`:
```sql
                SELECT "surface" FROM "doubles_13_9_titles_4_runners_up" WHERE "score"='4–6, 6–4, [8–10]';
```
## Task
Generate a SQL query to answer the following question:
`What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?`:
```sql
                SELECT "caps" FROM "players" WHERE "province_club"='example' AND "position"='prop' AND "player"='sam walters';
```
## Task
Generate a SQL query to answer the following question:
`What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?`:
```sql
                SELECT "position" FROM "players" WHERE "date_of_birth_age"='example' AND "player"='mark spencer';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Caps is Example, and when Position is Center?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Caps is Example, and when Position is Center?`:
```sql
                SELECT "player" FROM "players" WHERE "caps"='example' AND "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`What is Caps, when Province / Club is DRFC, and when Position is Center?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Caps, when Province / Club is DRFC, and when Position is Center?`:
```sql
                SELECT "caps" FROM "players" WHERE "province_club"='drfc' AND "position"='center';
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Caps is Example, and When Player is Shane Kelly?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Caps is Example, and When Player is Shane Kelly?`:
```sql
                SELECT "position" FROM "players" WHERE "caps"='example' AND "player"='shane kelly';
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?`

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

CREATE TABLE "players" (
  "player" text,
  "position" text,
  "date_of_birth_age" text,
  "caps" text,
  "province_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?`:
```sql
                SELECT "position" FROM "players" WHERE "province_club"='example' AND "date_of_birth_age"='example' AND "player"='michael elumeze';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number played of the team with 1 drawn and 24 against?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number played of the team with 1 drawn and 24 against?`:
```sql
                SELECT AVG("played") FROM "campeonato_paulista" WHERE "drawn"=1 AND "against"=24;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest lost number of the team with less than 14 points and less than 18 played?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest lost number of the team with less than 14 points and less than 18 played?`:
```sql
                SELECT MAX("lost") FROM "campeonato_paulista" WHERE "points"<14 AND "played"<18;
```
## Task
Generate a SQL query to answer the following question:
`Which team had 1 position?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team had 1 position?`:
```sql
                SELECT "team" FROM "campeonato_paulista" WHERE "position"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of played of the team with 18 points and a position greater than 5?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of played of the team with 18 points and a position greater than 5?`:
```sql
                SELECT MIN("played") FROM "campeonato_paulista" WHERE "points"=18 AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of points of the team with less than 4 drawn and an against of 34?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of points of the team with less than 4 drawn and an against of 34?`:
```sql
                SELECT COUNT("points") FROM "campeonato_paulista" WHERE "drawn"<4 AND "against"=34;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of drawn with a difference of 17 and 22 points?`

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

CREATE TABLE "campeonato_paulista" (
  "position" real,
  "team" text,
  "points" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "against" real,
  "difference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of drawn with a difference of 17 and 22 points?`:
```sql
                SELECT AVG("drawn") FROM "campeonato_paulista" WHERE "difference"='17' AND "points"=22;
```
## Task
Generate a SQL query to answer the following question:
`What is the team that has forward-center as a position?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team that has forward-center as a position?`:
```sql
                SELECT "school_club_team" FROM "s" WHERE "position"='forward-center';
```
## Task
Generate a SQL query to answer the following question:
`What team does Kenny Smith play for?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team does Kenny Smith play for?`:
```sql
                SELECT "school_club_team" FROM "s" WHERE "player"='kenny smith';
```
## Task
Generate a SQL query to answer the following question:
`What years was Lebanon the nationality?`

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

CREATE TABLE "s" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years was Lebanon the nationality?`:
```sql
                SELECT "years_in_orlando" FROM "s" WHERE "nationality"='lebanon';
```
## Task
Generate a SQL query to answer the following question:
`Which margin of victory has cyber agent ladies as the tournament?`

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

CREATE TABLE "lpga_of_japan_tour_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which margin of victory has cyber agent ladies as the tournament?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='cyber agent ladies';
```
## Task
Generate a SQL query to answer the following question:
`What date has yani tseng as the runner (s)-up?`

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

CREATE TABLE "lpga_of_japan_tour_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has yani tseng as the runner (s)-up?`:
```sql
                SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng';
```
## Task
Generate a SQL query to answer the following question:
`What is the margin of victory that has masters gc ladies as the tournament?`

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

CREATE TABLE "lpga_of_japan_tour_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the margin of victory that has masters gc ladies as the tournament?`:
```sql
                SELECT "margin_of_victory" FROM "lpga_of_japan_tour_5" WHERE "tournament"='masters gc ladies';
```
## Task
Generate a SQL query to answer the following question:
`What is the date that has yani tseng as the runner (s)-up?`

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

CREATE TABLE "lpga_of_japan_tour_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that has yani tseng as the runner (s)-up?`:
```sql
                SELECT "date" FROM "lpga_of_japan_tour_5" WHERE "runner_s_up"='yani tseng';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning score that has victory of 2 strokes for the margin, and cyber agent ladies for the tournament?`

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

CREATE TABLE "lpga_of_japan_tour_5" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning score that has victory of 2 strokes for the margin, and cyber agent ladies for the tournament?`:
```sql
                SELECT "winning_score" FROM "lpga_of_japan_tour_5" WHERE "margin_of_victory"='2 strokes' AND "tournament"='cyber agent ladies';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Poles with a win that is smaller than 0?`

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

CREATE TABLE "career_results" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "fast_laps" real,
  "points" real,
  "pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Poles with a win that is smaller than 0?`:
```sql
                SELECT MAX("poles") FROM "career_results" WHERE "wins"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the headphone model with a plastic construction and a prestige headphone class?`

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

CREATE TABLE "past_production" (
  "headphone_model" text,
  "headphone_class" text,
  "sensitivity_d_b" text,
  "impedance_ohms" real,
  "driver_matched_d_b" text,
  "construction" text,
  "earpads" text,
  "termination" text,
  "succeeded_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the headphone model with a plastic construction and a prestige headphone class?`:
```sql
                SELECT "headphone_model" FROM "past_production" WHERE "construction"='plastic' AND "headphone_class"='prestige';
```
## Task
Generate a SQL query to answer the following question:
`What earpads does the headphone with plastic contruction and was succeeded by igrado have?`

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

CREATE TABLE "past_production" (
  "headphone_model" text,
  "headphone_class" text,
  "sensitivity_d_b" text,
  "impedance_ohms" real,
  "driver_matched_d_b" text,
  "construction" text,
  "earpads" text,
  "termination" text,
  "succeeded_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What earpads does the headphone with plastic contruction and was succeeded by igrado have?`:
```sql
                SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "succeeded_by"='igrado';
```
## Task
Generate a SQL query to answer the following question:
`What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?`

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

CREATE TABLE "past_production" (
  "headphone_model" text,
  "headphone_class" text,
  "sensitivity_d_b" text,
  "impedance_ohms" real,
  "driver_matched_d_b" text,
  "construction" text,
  "earpads" text,
  "termination" text,
  "succeeded_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?`:
```sql
                SELECT "earpads" FROM "past_production" WHERE "construction"='plastic' AND "sensitivity_d_b"='unknown' AND "succeeded_by"='sr325';
```
## Task
Generate a SQL query to answer the following question:
`What is the headphone model which was succeeded by sr325?`

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

CREATE TABLE "past_production" (
  "headphone_model" text,
  "headphone_class" text,
  "sensitivity_d_b" text,
  "impedance_ohms" real,
  "driver_matched_d_b" text,
  "construction" text,
  "earpads" text,
  "termination" text,
  "succeeded_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the headphone model which was succeeded by sr325?`:
```sql
                SELECT "headphone_model" FROM "past_production" WHERE "succeeded_by"='sr325';
```
## Task
Generate a SQL query to answer the following question:
`What regulations have hudson as the winning constructor?`

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

CREATE TABLE "results" (
  "year" real,
  "circuit" text,
  "winning_drivers" text,
  "winning_constructor" text,
  "regulations" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regulations have hudson as the winning constructor?`:
```sql
                SELECT "regulations" FROM "results" WHERE "winning_constructor"='hudson';
```
## Task
Generate a SQL query to answer the following question:
`What regulations have carlos arzani as the winning driver?`

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

CREATE TABLE "results" (
  "year" real,
  "circuit" text,
  "winning_drivers" text,
  "winning_constructor" text,
  "regulations" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What regulations have carlos arzani as the winning driver?`:
```sql
                SELECT "regulations" FROM "results" WHERE "winning_drivers"='carlos arzani';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that has ferrari 166 fl as the winning constructor?`

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

CREATE TABLE "results" (
  "year" real,
  "circuit" text,
  "winning_drivers" text,
  "winning_constructor" text,
  "regulations" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that has ferrari 166 fl as the winning constructor?`:
```sql
                SELECT MAX("year") FROM "results" WHERE "winning_constructor"='ferrari 166 fl';
```
## Task
Generate a SQL query to answer the following question:
`What is the city of license that has lp as the class?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the city of license that has lp as the class?`:
```sql
                SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='lp';
```
## Task
Generate a SQL query to answer the following question:
`What is the identifier that has 50,000 watts of power?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the identifier that has 50,000 watts of power?`:
```sql
                SELECT "identifier" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='50,000 watts';
```
## Task
Generate a SQL query to answer the following question:
`What RECNet has 40 watts of power and temagami as the city of license?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What RECNet has 40 watts of power and temagami as the city of license?`:
```sql
                SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "power"='40 watts' AND "city_of_license"='temagami';
```
## Task
Generate a SQL query to answer the following question:
`What city of license has A as a class, and cbec-fm as the identifier?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license has A as a class, and cbec-fm as the identifier?`:
```sql
                SELECT "city_of_license" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "class"='a' AND "identifier"='cbec-fm';
```
## Task
Generate a SQL query to answer the following question:
`What RECNet has elk lake as the city of license?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What RECNet has elk lake as the city of license?`:
```sql
                SELECT "rec_net" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='elk lake';
```
## Task
Generate a SQL query to answer the following question:
`What frequency has temagami as the city of license?`

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

CREATE TABLE "s_rebroadcaster_of_cbcs_fm" (
  "city_of_license" text,
  "identifier" text,
  "frequency" text,
  "power" text,
  "class" text,
  "rec_net" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency has temagami as the city of license?`:
```sql
                SELECT "frequency" FROM "s_rebroadcaster_of_cbcs_fm" WHERE "city_of_license"='temagami';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?`

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

CREATE TABLE "smaller_branches" (
  "branch" text,
  "address" text,
  "neighborhood" text,
  "first_branch_opened" real,
  "current_branch_opened" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Current Branch Opened, when Neighborhood is W. Portland Park?`:
```sql
                SELECT MAX("current_branch_opened") FROM "smaller_branches" WHERE "neighborhood"='w. portland park';
```
## Task
Generate a SQL query to answer the following question:
`What is the First Branch Opened, when Branch is Belmont Library?`

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

CREATE TABLE "smaller_branches" (
  "branch" text,
  "address" text,
  "neighborhood" text,
  "first_branch_opened" real,
  "current_branch_opened" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the First Branch Opened, when Branch is Belmont Library?`:
```sql
                SELECT "first_branch_opened" FROM "smaller_branches" WHERE "branch"='belmont library';
```
## Task
Generate a SQL query to answer the following question:
`What is Neighborhood, when Branch is Hollywood Library?`

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

CREATE TABLE "smaller_branches" (
  "branch" text,
  "address" text,
  "neighborhood" text,
  "first_branch_opened" real,
  "current_branch_opened" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Neighborhood, when Branch is Hollywood Library?`:
```sql
                SELECT "neighborhood" FROM "smaller_branches" WHERE "branch"='hollywood library';
```
## Task
Generate a SQL query to answer the following question:
`What is Current Branch Opened, when Branch is Midland Library?`

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

CREATE TABLE "smaller_branches" (
  "branch" text,
  "address" text,
  "neighborhood" text,
  "first_branch_opened" real,
  "current_branch_opened" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Current Branch Opened, when Branch is Midland Library?`:
```sql
                SELECT "current_branch_opened" FROM "smaller_branches" WHERE "branch"='midland library';
```
## Task
Generate a SQL query to answer the following question:
`Which player has the fewest assists and played 2 games or fewer?`

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

CREATE TABLE "assists" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "assists" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has the fewest assists and played 2 games or fewer?`:
```sql
                SELECT MIN("assists") FROM "assists" WHERE "games"<2;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?`

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

CREATE TABLE "monthly_mobile_subscriber_additions" (
  "year" real,
  "january" real,
  "february" real,
  "march" real,
  "april" real,
  "june" real,
  "july" real,
  "august" real,
  "september" real,
  "october" real,
  "november" real,
  "december" real,
  "annual_additions_in_millions" real,
  "average_monthly_additions_in_millions" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?`:
```sql
                SELECT COUNT("march") FROM "monthly_mobile_subscriber_additions" WHERE "january"<8.77 AND "december">1.69 AND "average_monthly_additions_in_millions"<5.35 AND "year"<2004;
```