cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which was the home team for game 3?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which was the home team for game 3?`:
```sql
                SELECT "home_team" FROM "series_summary" WHERE "game"='game 3';
```
## Task
Generate a SQL query to answer the following question:
`What was the TV time for Chicago's road game against Phoenix on June 18?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the TV time for Chicago's road game against Phoenix on June 18?`:
```sql
                SELECT "tv_time" FROM "series_summary" WHERE "road_team"='phoenix' AND "date"='june 18';
```
## Task
Generate a SQL query to answer the following question:
`What was the TV time for the road game against Phoenix where the score was 98-99?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the TV time for the road game against Phoenix where the score was 98-99?`:
```sql
                SELECT "tv_time" FROM "series_summary" WHERE "home_team"='phoenix' AND "result"='98-99';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on June 9?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on June 9?`:
```sql
                SELECT "home_team" FROM "series_summary" WHERE "date"='june 9';
```
## Task
Generate a SQL query to answer the following question:
`What was the TV time for the game on June 9?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text,
  "tv_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the TV time for the game on June 9?`:
```sql
                SELECT "tv_time" FROM "series_summary" WHERE "date"='june 9';
```
## Task
Generate a SQL query to answer the following question:
`At which Conference was the Division in the East, and the Home Stadium named fedexfield?`

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

CREATE TABLE "list_of_professional_sports_teams_in_the" (
  "conference" text,
  "division" text,
  "team" text,
  "city" text,
  "home_stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which Conference was the Division in the East, and the Home Stadium named fedexfield?`:
```sql
                SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='east' AND "home_stadium"='fedexfield';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?`

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

CREATE TABLE "list_of_professional_sports_teams_in_the" (
  "conference" text,
  "division" text,
  "team" text,
  "city" text,
  "home_stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Home Stadium in which the Division is in the south, and Conference is national, as well as being in the city named charlotte, North Carolina?`:
```sql
                SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "conference"='national' AND "city"='charlotte, north carolina';
```
## Task
Generate a SQL query to answer the following question:
`Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?`

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

CREATE TABLE "list_of_professional_sports_teams_in_the" (
  "conference" text,
  "division" text,
  "team" text,
  "city" text,
  "home_stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home Stadium has American as its Conference as well as nashville, tennessee as the city?`:
```sql
                SELECT "home_stadium" FROM "list_of_professional_sports_teams_in_the" WHERE "conference"='american' AND "city"='nashville, tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?`

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

CREATE TABLE "list_of_professional_sports_teams_in_the" (
  "conference" text,
  "division" text,
  "team" text,
  "city" text,
  "home_stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Conference which Division is south, and the Home Stadium is georgia dome?`:
```sql
                SELECT "conference" FROM "list_of_professional_sports_teams_in_the" WHERE "division"='south' AND "home_stadium"='georgia dome';
```
## Task
Generate a SQL query to answer the following question:
`Which Division does the City being jacksonville, florida belong to?`

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

CREATE TABLE "list_of_professional_sports_teams_in_the" (
  "conference" text,
  "division" text,
  "team" text,
  "city" text,
  "home_stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Division does the City being jacksonville, florida belong to?`:
```sql
                SELECT "division" FROM "list_of_professional_sports_teams_in_the" WHERE "city"='jacksonville, florida';
```
## Task
Generate a SQL query to answer the following question:
`Who won Women's doubles when Raina Tzvetkova won women's singles before 2000?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Women's doubles when Raina Tzvetkova won women's singles before 2000?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "year"<2000 AND "women_s_singles"='raina tzvetkova';
```
## Task
Generate a SQL query to answer the following question:
`Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won men's singles when petya nedelcheva diana dimova won women's doubles and vladimir metodiev krasimir yankov won men's doubles?`:
```sql
                SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_doubles"='petya nedelcheva diana dimova' AND "men_s_doubles"='vladimir metodiev krasimir yankov';
```
## Task
Generate a SQL query to answer the following question:
`Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won men's singles when petya nedelcheva won women's singles, petya nedelcheva diana dimova won women's doubles, stilian makarski diana dimova won mixed doubles, and stilian makarski peyo boichinov won men's doubles?`:
```sql
                SELECT "men_s_singles" FROM "past_winners" WHERE "women_s_singles"='petya nedelcheva' AND "women_s_doubles"='petya nedelcheva diana dimova' AND "mixed_doubles"='stilian makarski diana dimova' AND "men_s_doubles"='stilian makarski peyo boichinov';
```
## Task
Generate a SQL query to answer the following question:
`Who won women's singles in 1986?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won women's singles in 1986?`:
```sql
                SELECT "women_s_singles" FROM "past_winners" WHERE "year"=1986;
```
## Task
Generate a SQL query to answer the following question:
`What score has 1/22 as the date?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "record" text,
  "television" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 1/22 as the date?`:
```sql
                SELECT "score" FROM "schedule" WHERE "date"='1/22';
```
## Task
Generate a SQL query to answer the following question:
`What score has 12/1 as the date?`

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

CREATE TABLE "schedule" (
  "date" text,
  "opponent" text,
  "score" text,
  "record" text,
  "television" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has 12/1 as the date?`:
```sql
                SELECT "score" FROM "schedule" WHERE "date"='12/1';
```
## Task
Generate a SQL query to answer the following question:
`Which source has a Cost free, and an Activity of some, and an Editor of markitup?`

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

CREATE TABLE "list_of_source_code_editors" (
  "editor" text,
  "site" text,
  "style_clone_of" text,
  "cost_us" text,
  "open_source" text,
  "activity" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which source has a Cost free, and an Activity of some, and an Editor of markitup?`:
```sql
                SELECT "open_source" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "activity"='some' AND "editor"='markitup';
```
## Task
Generate a SQL query to answer the following question:
`Which site has a Cost free and a Editor of jsvi?`

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

CREATE TABLE "list_of_source_code_editors" (
  "editor" text,
  "site" text,
  "style_clone_of" text,
  "cost_us" text,
  "open_source" text,
  "activity" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which site has a Cost free and a Editor of jsvi?`:
```sql
                SELECT "site" FROM "list_of_source_code_editors" WHERE "cost_us"='free' AND "editor"='jsvi';
```
## Task
Generate a SQL query to answer the following question:
`What is the cost of an Open Source that is no?`

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

CREATE TABLE "list_of_source_code_editors" (
  "editor" text,
  "site" text,
  "style_clone_of" text,
  "cost_us" text,
  "open_source" text,
  "activity" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cost of an Open Source that is no?`:
```sql
                SELECT "cost_us" FROM "list_of_source_code_editors" WHERE "open_source"='no';
```
## Task
Generate a SQL query to answer the following question:
`What venue has a weight (kg) greater than 55, and won as the result?`

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

CREATE TABLE "2006_07_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue has a weight (kg) greater than 55, and won as the result?`:
```sql
                SELECT "venue" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg">55 AND "result"='won';
```
## Task
Generate a SQL query to answer the following question:
`Which group has a weight (kg) less than 55?`

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

CREATE TABLE "2006_07_season_as_a_five_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" real,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which group has a weight (kg) less than 55?`:
```sql
                SELECT "group" FROM "2006_07_season_as_a_five_year_old" WHERE "weight_kg"<55;
```
## Task
Generate a SQL query to answer the following question:
`Which position has 45 picks?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "mls_team" text,
  "player" text,
  "position" text,
  "affiliation" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has 45 picks?`:
```sql
                SELECT "position" FROM "round_four" WHERE "pick_num"=45;
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game before week 5 and a bye game site?`

### 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,
  "record" text,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game before week 5 and a bye game site?`:
```sql
                SELECT "record" FROM "schedule" WHERE "week"<5 AND "game_site"='bye';
```
## Task
Generate a SQL query to answer the following question:
`Which Seasons have Entries larger than 52, and Poles of 33?`

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

CREATE TABLE "percentage_pole_positions" (
  "driver" text,
  "seasons" text,
  "entries" real,
  "poles" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Seasons have Entries larger than 52, and Poles of 33?`:
```sql
                SELECT "seasons" FROM "percentage_pole_positions" WHERE "entries">52 AND "poles"=33;
```
## Task
Generate a SQL query to answer the following question:
`Which Seasons have a Poles larger than 29, and Entries larger than 191?`

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

CREATE TABLE "percentage_pole_positions" (
  "driver" text,
  "seasons" text,
  "entries" real,
  "poles" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Seasons have a Poles larger than 29, and Entries larger than 191?`:
```sql
                SELECT "seasons" FROM "percentage_pole_positions" WHERE "poles">29 AND "entries">191;
```
## Task
Generate a SQL query to answer the following question:
`What ist the Away Leg with an Opposition that is aarhus gymnastik forening?`

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

CREATE TABLE "matches_in_europe" (
  "competition" text,
  "round" text,
  "opposition" text,
  "home_leg" text,
  "away_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What ist the Away Leg with an Opposition that is aarhus gymnastik forening?`:
```sql
                SELECT "away_leg" FROM "matches_in_europe" WHERE "opposition"='aarhus gymnastik forening';
```
## Task
Generate a SQL query to answer the following question:
`What 2007 has 236 for 2006?`

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

CREATE TABLE "doubles_statistics" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2007 has 236 for 2006?`:
```sql
                SELECT "2007" FROM "doubles_statistics" WHERE "2006"='236';
```
## Task
Generate a SQL query to answer the following question:
`What 2011 has 2r as 2010, and a 2008 of A?`

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

CREATE TABLE "doubles_statistics" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2011 has 2r as 2010, and a 2008 of A?`:
```sql
                SELECT "2011" FROM "doubles_statistics" WHERE "2010"='2r' AND "2008"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2012 that has tournament played as the tournament?`

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

CREATE TABLE "doubles_statistics" (
  "tournament" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2012 that has tournament played as the tournament?`:
```sql
                SELECT "2012" FROM "doubles_statistics" WHERE "tournament"='tournament played';
```
## Task
Generate a SQL query to answer the following question:
`Which artist had a place larger than 1 with 229 points?`

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

CREATE TABLE "semifinal_1" (
  "draw" real,
  "artist" text,
  "song" text,
  "points" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which artist had a place larger than 1 with 229 points?`:
```sql
                SELECT "artist" FROM "semifinal_1" WHERE "place">1 AND "points"=229;
```
## Task
Generate a SQL query to answer the following question:
`Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which January is the lowest one that has an Opponent of florida panthers, and Points smaller than 59?`:
```sql
                SELECT MIN("january") FROM "regular_season" WHERE "opponent"='florida panthers' AND "points"<59;
```
## Task
Generate a SQL query to answer the following question:
`Which Record has a Game of 41?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Record has a Game of 41?`:
```sql
                SELECT "record" FROM "regular_season" WHERE "game"=41;
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a January larger than 21, and Points of 63?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a January larger than 21, and Points of 63?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "january">21 AND "points"=63;
```
## Task
Generate a SQL query to answer the following question:
`How many Points have a Record of 25–10–11, and a January larger than 28?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "january" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Points have a Record of 25–10–11, and a January larger than 28?`:
```sql
                SELECT COUNT("points") FROM "regular_season" WHERE "record"='25–10–11' AND "january">28;
```
## Task
Generate a SQL query to answer the following question:
`what province was established in 1870`

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

CREATE TABLE "former_medical_schools" (
  "province" text,
  "school" text,
  "city" text,
  "degree" text,
  "established" real,
  "closed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what province was established in 1870`:
```sql
                SELECT "province" FROM "former_medical_schools" WHERE "established"=1870;
```
## Task
Generate a SQL query to answer the following question:
`Who is the Incumbent that has a District of ohio 13 in Democratic Party?`

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

CREATE TABLE "ohio" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Incumbent that has a District of ohio 13 in Democratic Party?`:
```sql
                SELECT "incumbent" FROM "ohio" WHERE "district"='ohio 13';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of champion Ken Rosewall in 1957?`

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

CREATE TABLE "champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of champion Ken Rosewall in 1957?`:
```sql
                SELECT "score" FROM "champions" WHERE "champion"='ken rosewall' AND "year"='1957';
```
## Task
Generate a SQL query to answer the following question:
`What is the surface of the match with Brian Gottfried as the runner-up?`

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

CREATE TABLE "champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface of the match with Brian Gottfried as the runner-up?`:
```sql
                SELECT "surface" FROM "champions" WHERE "runner_up"='brian gottfried';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match with anders järryd as the runner-up?`

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

CREATE TABLE "champions" (
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "surface" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match with anders järryd as the runner-up?`:
```sql
                SELECT "score" FROM "champions" WHERE "runner_up"='anders järryd';
```
## Task
Generate a SQL query to answer the following question:
`What is the low bronze total for the team with 4 total and under 1 gold?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low bronze total for the team with 4 total and under 1 gold?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "total"=4 AND "gold"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for teams with over 3 bronzes and over 8 golds?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total for teams with over 3 bronzes and over 8 golds?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "bronze">3 AND "gold">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the low silver total associated with under 1 total?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low silver total associated with under 1 total?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of points associated with the highest position under 9 and a current position of 22?`

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

CREATE TABLE "top_singles_of_1959" (
  "position" real,
  "artist" text,
  "song_title" text,
  "highest_position" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of points associated with the highest position under 9 and a current position of 22?`:
```sql
                SELECT "points" FROM "top_singles_of_1959" WHERE "highest_position"<9 AND "position"=22;
```
## Task
Generate a SQL query to answer the following question:
`Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?`

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

CREATE TABLE "series_2" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 3 of paul merton, and a Performer 4 of sandi toksvig is which performer 1?`:
```sql
                SELECT "performer_1" FROM "series_2" WHERE "performer_3"='paul merton' AND "performer_4"='sandi toksvig';
```
## Task
Generate a SQL query to answer the following question:
`Episode of 16 involves which performer 1?`

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

CREATE TABLE "series_2" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Episode of 16 involves which performer 1?`:
```sql
                SELECT "performer_1" FROM "series_2" WHERE "episode"=16;
```
## Task
Generate a SQL query to answer the following question:
`Performer 2 of compilation 1 had what performer 1?`

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

CREATE TABLE "series_2" (
  "date" text,
  "episode" real,
  "performer_1" text,
  "performer_2" text,
  "performer_3" text,
  "performer_4" text
);
### SQL
Given the database schema, here is the SQL query that answers `Performer 2 of compilation 1 had what performer 1?`:
```sql
                SELECT "performer_1" FROM "series_2" WHERE "performer_2"='compilation 1';
```
## Task
Generate a SQL query to answer the following question:
`Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten`

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

CREATE TABLE "bavarian_cup_era" (
  "season" real,
  "oberbayern" text,
  "niederbayern" text,
  "schwaben" text,
  "mittelfranken" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Schwaben has an Oberbayern of fc ingolstadt 04 and a Mittelfranken of sv seligenporten`:
```sql
                SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc ingolstadt 04' AND "mittelfranken"='sv seligenporten';
```
## Task
Generate a SQL query to answer the following question:
`Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?`

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

CREATE TABLE "bavarian_cup_era" (
  "season" real,
  "oberbayern" text,
  "niederbayern" text,
  "schwaben" text,
  "mittelfranken" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Schwaben has a Oberbayern of fc bayern munich ii and a Mittelfranken of 1. fc nuremberg ii?`:
```sql
                SELECT "schwaben" FROM "bavarian_cup_era" WHERE "oberbayern"='fc bayern munich ii' AND "mittelfranken"='1. fc nuremberg ii';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent for south carolina 3 district?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent for south carolina 3 district?`:
```sql
                SELECT "incumbent" FROM "south_carolina" WHERE "district"='south carolina 3';
```
## Task
Generate a SQL query to answer the following question:
`When was the incumbent from the south carolina 1 district first elected?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the incumbent from the south carolina 1 district first elected?`:
```sql
                SELECT "first_elected" FROM "south_carolina" WHERE "district"='south carolina 1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent that was first elected in 1892 and retired to run for the senate democratic hold?`:
```sql
                SELECT "incumbent" FROM "south_carolina" WHERE "first_elected"='1892' AND "result"='retired to run for the senate democratic hold';
```
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent that retired to run for the senate democratic hold?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the incumbent that retired to run for the senate democratic hold?`:
```sql
                SELECT "incumbent" FROM "south_carolina" WHERE "result"='retired to run for the senate democratic hold';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of W. Jasper Talbert who was first elected in 1892?`

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

CREATE TABLE "south_carolina" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of W. Jasper Talbert who was first elected in 1892?`:
```sql
                SELECT "result" FROM "south_carolina" WHERE "first_elected"='1892' AND "incumbent"='w. jasper talbert';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a 2.24 of xo, and a 2.20 of xo?`

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

CREATE TABLE "final" (
  "athlete" text,
  "nationality" text,
  "2_15" text,
  "2_20" text,
  "2_24" text,
  "2_27" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a 2.24 of xo, and a 2.20 of xo?`:
```sql
                SELECT "nationality" FROM "final" WHERE "2_24"='xo' AND "2_20"='xo';
```
## Task
Generate a SQL query to answer the following question:
`Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?`

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

CREATE TABLE "final" (
  "athlete" text,
  "nationality" text,
  "2_15" text,
  "2_20" text,
  "2_24" text,
  "2_27" text,
  "result" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Athlete has a 2.24 of xo, and a 2.20 of o, and a 2.15 of o?`:
```sql
                SELECT "athlete" FROM "final" WHERE "2_24"='xo' AND "2_20"='o' AND "2_15"='o';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?`

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

CREATE TABLE "election_results" (
  "election" real,
  "num_of_candidates_nominated" real,
  "num_of_seats_won" real,
  "num_of_total_votes" real,
  "pct_of_popular_vote" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest election with more than 7 candidates nominated, a percentage of the popular vote of 2.75%, and 0 seats won?`:
```sql
                SELECT MIN("election") FROM "election_results" WHERE "num_of_candidates_nominated">7 AND "pct_of_popular_vote"='2.75%' AND "num_of_seats_won"<0;
```
## Task
Generate a SQL query to answer the following question:
`How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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 `How much Played has a Lost larger than 14, and Drawn of 8, and a Team of ipatinga?`:
```sql
                SELECT SUM("played") FROM "campeonato_brasileiro_s_rie_a" WHERE "lost">14 AND "drawn"=8 AND "team"='ipatinga';
```
## Task
Generate a SQL query to answer the following question:
`How many Drawn have a Difference of 3, and Points smaller than 52?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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 `How many Drawn have a Difference of 3, and Points smaller than 52?`:
```sql
                SELECT COUNT("drawn") FROM "campeonato_brasileiro_s_rie_a" WHERE "difference"='3' AND "points"<52;
```
## Task
Generate a SQL query to answer the following question:
`Which Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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 Points is the highest one that has a Position smaller than 4, and a Team of são paulo, and Drawn larger than 12?`:
```sql
                SELECT MAX("points") FROM "campeonato_brasileiro_s_rie_a" WHERE "position"<4 AND "team"='são paulo' AND "drawn">12;
```
## Task
Generate a SQL query to answer the following question:
`How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?`

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

CREATE TABLE "campeonato_brasileiro_s_rie_a" (
  "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 `How many Lost have Points larger than 40, and a Position of 11, and a Played smaller than 38?`:
```sql
                SELECT SUM("lost") FROM "campeonato_brasileiro_s_rie_a" WHERE "points">40 AND "position"=11 AND "played"<38;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?`

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

CREATE TABLE "world_championship_group_c_bulgaria" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of games loss with a Points difference of 40 - 17, and over 6 games?`:
```sql
                SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='40 - 17' AND "games">6;
```
## Task
Generate a SQL query to answer the following question:
`How many games lost for teams with over 6 games?`

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

CREATE TABLE "world_championship_group_c_bulgaria" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games lost for teams with over 6 games?`:
```sql
                SELECT MIN("lost") FROM "world_championship_group_c_bulgaria" WHERE "games">6;
```
## Task
Generate a SQL query to answer the following question:
`What are the highest number of games drawn for games numbered under 6?`

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

CREATE TABLE "world_championship_group_c_bulgaria" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the highest number of games drawn for games numbered under 6?`:
```sql
                SELECT MAX("drawn") FROM "world_championship_group_c_bulgaria" WHERE "games"<6;
```
## Task
Generate a SQL query to answer the following question:
`How many games drawn with a Points difference of 31 - 33, and under 4 games lost?`

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

CREATE TABLE "world_championship_group_c_bulgaria" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games drawn with a Points difference of 31 - 33, and under 4 games lost?`:
```sql
                SELECT SUM("drawn") FROM "world_championship_group_c_bulgaria" WHERE "points_difference"='31 - 33' AND "lost"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Outcome has a Surface of hard (i), and a Date of 28 january 2003?`:
```sql
                SELECT "outcome" FROM "itf_singles_finals" WHERE "surface"='hard (i)' AND "date"='28 january 2003';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has an Outcome of winner, and a Surface of hard (i)?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has an Outcome of winner, and a Surface of hard (i)?`:
```sql
                SELECT "tournament" FROM "itf_singles_finals" WHERE "outcome"='winner' AND "surface"='hard (i)';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 6–1, 6–2?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 6–1, 6–2?`:
```sql
                SELECT "date" FROM "itf_singles_finals" WHERE "score"='6–1, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent of oleksandra kravets?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has an Opponent of oleksandra kravets?`:
```sql
                SELECT "surface" FROM "itf_singles_finals" WHERE "opponent"='oleksandra kravets';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Date of 3 october 2003?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Date of 3 october 2003?`:
```sql
                SELECT "surface" FROM "itf_singles_finals" WHERE "date"='3 october 2003';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has a Score of 6–4, 6–2?`

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

CREATE TABLE "itf_singles_finals" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Surface has a Score of 6–4, 6–2?`:
```sql
                SELECT "surface" FROM "itf_singles_finals" WHERE "score"='6–4, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank is the lowest one that has a % Change of 3.3%, and a Total Cargo (Metric Tonnes) smaller than 2,456,724?`

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

CREATE TABLE "2012_preliminary_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank is the lowest one that has a % Change of 3.3%, and a Total Cargo (Metric Tonnes) smaller than 2,456,724?`:
```sql
                SELECT MIN("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='3.3%' AND "total_cargo_metric_tonnes"<'2,456,724';
```
## Task
Generate a SQL query to answer the following question:
`How many ranks have a Code (IATA/ICAO) of ord/kord?`

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

CREATE TABLE "2012_preliminary_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks have a Code (IATA/ICAO) of ord/kord?`:
```sql
                SELECT COUNT("rank") FROM "2012_preliminary_statistics" WHERE "code_iata_icao"='ord/kord';
```
## Task
Generate a SQL query to answer the following question:
`Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport?`

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

CREATE TABLE "2012_preliminary_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport?`:
```sql
                SELECT MAX("total_cargo_metric_tonnes") FROM "2012_preliminary_statistics" WHERE "rank"<4 AND "airport"='shanghai pudong international airport';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank is the average one that has a % Change of 0.7%, and a Total Cargo (Metric Tonnes) smaller than 1,556,203?`

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

CREATE TABLE "2012_preliminary_statistics" (
  "rank" real,
  "airport" text,
  "code_iata_icao" text,
  "total_cargo_metric_tonnes" real,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank is the average one that has a % Change of 0.7%, and a Total Cargo (Metric Tonnes) smaller than 1,556,203?`:
```sql
                SELECT AVG("rank") FROM "2012_preliminary_statistics" WHERE "pct_change"='0.7%' AND "total_cargo_metric_tonnes"<'1,556,203';
```
## Task
Generate a SQL query to answer the following question:
`What is the Per capita income where Median family income is $72,288?`

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

CREATE TABLE "louisiana_parishes_ranked_by_per_capita_" (
  "parish" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Per capita income where Median family income is $72,288?`:
```sql
                SELECT "per_capita_income" FROM "louisiana_parishes_ranked_by_per_capita_" WHERE "median_family_income"='$72,288';
```