cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest amount of wins that was before the 2007 season, as well as the Team being silverstone motorsport academy?`:
```sql
                SELECT MAX("wins") FROM "career_summary" WHERE "season"<2007 AND "team"='silverstone motorsport academy';
```
## Task
Generate a SQL query to answer the following question:
`What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "podiums" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?`:
```sql
                SELECT MAX("season") FROM "career_summary" WHERE "podiums"=0 AND "races"=1 AND "wins">0;
```
## Task
Generate a SQL query to answer the following question:
`Name the week for december 4, 2009`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week for december 4, 2009`:
```sql
                SELECT "week" FROM "2009_season" WHERE "date"='december 4, 2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with record of 6-2`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with record of 6-2`:
```sql
                SELECT "opponent" FROM "2009_season" WHERE "record"='6-2';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent with result of w 35-21`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent with result of w 35-21`:
```sql
                SELECT "opponent" FROM "2009_season" WHERE "result"='w 35-21';
```
## Task
Generate a SQL query to answer the following question:
`Name the date with resultof w 35-7`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with resultof w 35-7`:
```sql
                SELECT "date" FROM "2009_season" WHERE "result"='w 35-7';
```
## Task
Generate a SQL query to answer the following question:
`Name the date with record of 3-1`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date with record of 3-1`:
```sql
                SELECT "date" FROM "2009_season" WHERE "record"='3-1';
```
## Task
Generate a SQL query to answer the following question:
`Name the week for date of bye`

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

CREATE TABLE "2009_season" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week for date of bye`:
```sql
                SELECT "week" FROM "2009_season" WHERE "date"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the friendly game for Germany of France?`

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

CREATE TABLE "2004" (
  "136" real,
  "18_february" text,
  "friendly" text,
  "croatia" text,
  "germany" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the friendly game for Germany of France?`:
```sql
                SELECT "friendly" FROM "2004" WHERE "germany"='france';
```
## Task
Generate a SQL query to answer the following question:
`What company is numbered larger than 5 and priced at $389M?`

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

CREATE TABLE "acquisition_table" (
  "number" real,
  "company" text,
  "business" text,
  "country" text,
  "price" text,
  "used_as_or_integrated_with" text
);
### SQL
Given the database schema, here is the SQL query that answers `What company is numbered larger than 5 and priced at $389M?`:
```sql
                SELECT "company" FROM "acquisition_table" WHERE "number">5 AND "price"='$389m';
```
## Task
Generate a SQL query to answer the following question:
`Which category was william ivey long a nominee and nominated in?`

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

CREATE TABLE "los_angeles_try_out" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category was william ivey long a nominee and nominated in?`:
```sql
                SELECT "category" FROM "los_angeles_try_out" WHERE "result"='nominated' AND "nominee"='william ivey long';
```
## Task
Generate a SQL query to answer the following question:
`What is the half-life discovered in 2003?`

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

CREATE TABLE "list_of_hassium_isotopes" (
  "isotope" text,
  "half_life" text,
  "decay_mode" text,
  "discovery_year" text,
  "reaction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the half-life discovered in 2003?`:
```sql
                SELECT "half_life" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What is the decay mode of the 265m hs isotope discovered in 1984?`

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

CREATE TABLE "list_of_hassium_isotopes" (
  "isotope" text,
  "half_life" text,
  "decay_mode" text,
  "discovery_year" text,
  "reaction" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the decay mode of the 265m hs isotope discovered in 1984?`:
```sql
                SELECT "decay_mode" FROM "list_of_hassium_isotopes" WHERE "discovery_year"='1984' AND "isotope"='265m hs';
```
## Task
Generate a SQL query to answer the following question:
`What is the Frequency MHz of Trinidad, Colorado?`

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

CREATE TABLE "network" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Frequency MHz of Trinidad, Colorado?`:
```sql
                SELECT "frequency_m_hz" FROM "network" WHERE "city_of_license"='trinidad, colorado';
```
## Task
Generate a SQL query to answer the following question:
`What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?`

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

CREATE TABLE "network" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city of license has an ERP W smaller than 500, Class A, and Frequency MHz larger than 89.7?`:
```sql
                SELECT "city_of_license" FROM "network" WHERE "erp_w"<500 AND "class"='a' AND "frequency_m_hz">89.7;
```
## Task
Generate a SQL query to answer the following question:
`Which venue has a capacity larger than 5,000 for Molodechno team?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1992_93" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a capacity larger than 5,000 for Molodechno team?`:
```sql
                SELECT "venue" FROM "teams_and_venues" WHERE "capacity">'5,000' AND "team"='molodechno';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest capacity for Fandok?`

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

CREATE TABLE "teams_and_venues" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "position_in_1992_93" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest capacity for Fandok?`:
```sql
                SELECT MIN("capacity") FROM "teams_and_venues" WHERE "team"='fandok';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest pick number of a defensive back with less than 136 overall points?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick number of a defensive back with less than 136 overall points?`:
```sql
                SELECT MAX("pick_num") FROM "atlanta_falcons_draft_history" WHERE "overall"<136 AND "position"='defensive back';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick number of John Scully?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick number of John Scully?`:
```sql
                SELECT MIN("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='john scully';
```
## Task
Generate a SQL query to answer the following question:
`What is the total points with less than 5 games?`

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

CREATE TABLE "consolation_round_7_12_place" (
  "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 total points with less than 5 games?`:
```sql
                SELECT COUNT("points") FROM "consolation_round_7_12_place" WHERE "games"<5;
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome for the India Open?`

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

CREATE TABLE "doubles" (
  "outcome" text,
  "event" text,
  "year" text,
  "venue" text,
  "partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome for the India Open?`:
```sql
                SELECT "outcome" FROM "doubles" WHERE "venue"='india open';
```
## Task
Generate a SQL query to answer the following question:
`What was the Outcome at the 1985 India Open?`

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

CREATE TABLE "doubles" (
  "outcome" text,
  "event" text,
  "year" text,
  "venue" text,
  "partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Outcome at the 1985 India Open?`:
```sql
                SELECT "outcome" FROM "doubles" WHERE "year"='1985' AND "venue"='india open';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome in 1982 with Kang Haeng-Suk as partner?`

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

CREATE TABLE "doubles" (
  "outcome" text,
  "event" text,
  "year" text,
  "venue" text,
  "partner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome in 1982 with Kang Haeng-Suk as partner?`:
```sql
                SELECT "outcome" FROM "doubles" WHERE "partner"='kang haeng-suk' AND "year"='1982';
```
## Task
Generate a SQL query to answer the following question:
`Which Party has a First elected smaller than 1878, and a District of south carolina 3?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Party has a First elected smaller than 1878, and a District of south carolina 3?`:
```sql
                SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"<1878 AND "district"='south carolina 3';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a First elected of 1876, and a District of south carolina 3?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a First elected of 1876, and a District of south carolina 3?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1876 AND "district"='south carolina 3';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?`

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

CREATE TABLE "united_states_house_of_representatives_e" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a First elected larger than 1876, and an Incumbent of john s. richardson?`:
```sql
                SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected">1876 AND "incumbent"='john s. richardson';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent that is a republican and first elected before 1864?`

### 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 is a republican and first elected before 1864?`:
```sql
                SELECT "incumbent" FROM "ohio" WHERE "party"='republican' AND "first_elected"<1864;
```
## Task
Generate a SQL query to answer the following question:
`What district is the democratic Francis C. Le Blond from?`

### 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 `What district is the democratic Francis C. Le Blond from?`:
```sql
                SELECT "district" FROM "ohio" WHERE "party"='democratic' AND "incumbent"='francis c. le blond';
```
## Task
Generate a SQL query to answer the following question:
`In the Ohio 4 district, that is the first elected date that has a result of re-elected?`

### 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 `In the Ohio 4 district, that is the first elected date that has a result of re-elected?`:
```sql
                SELECT SUM("first_elected") FROM "ohio" WHERE "result"='re-elected' AND "district"='ohio 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the party in Ohio 6 District?`

### 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 `What is the party in Ohio 6 District?`:
```sql
                SELECT "party" FROM "ohio" WHERE "district"='ohio 6';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Year of 1994?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Year of 1994?`:
```sql
                SELECT "to_par" FROM "winners" WHERE "year"=1994;
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Margin of victory of 2 strokes?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Margin of victory of 2 strokes?`:
```sql
                SELECT "country" FROM "winners" WHERE "margin_of_victory"='2 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the lowest one that has a To par of –1?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the lowest one that has a To par of –1?`:
```sql
                SELECT MIN("year") FROM "winners" WHERE "to_par"='–1';
```
## Task
Generate a SQL query to answer the following question:
`Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" text,
  "to_par" text,
  "margin_of_victory" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Margin of victory has a Year larger than 1994, and a To par of –14, and a Score of 69-67-69-69=274?`:
```sql
                SELECT "margin_of_victory" FROM "winners" WHERE "year">1994 AND "to_par"='–14' AND "score"='69-67-69-69=274';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the game at the Astrodome?`

### 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the game at the Astrodome?`:
```sql
                SELECT "record" FROM "schedule" WHERE "location"='astrodome';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the game against the Houston Oilers?`

### 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,
  "location" text,
  "time_et" text,
  "result" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the game against the Houston Oilers?`:
```sql
                SELECT "record" FROM "schedule" WHERE "opponent"='houston oilers';
```
## Task
Generate a SQL query to answer the following question:
`What is the average total score of Belarus, which had an E score less than 8.2?`

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

CREATE TABLE "group_3_balls_2_ropes" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total score of Belarus, which had an E score less than 8.2?`:
```sql
                SELECT AVG("total") FROM "group_3_balls_2_ropes" WHERE "nation"='belarus' AND "e_score"<8.2;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the team with a T score greater than 8 and an E score less than 8.4?`

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

CREATE TABLE "group_3_balls_2_ropes" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the team with a T score greater than 8 and an E score less than 8.4?`:
```sql
                SELECT SUM("total") FROM "group_3_balls_2_ropes" WHERE "t_score">8 AND "e_score"<8.4;
```
## Task
Generate a SQL query to answer the following question:
`What is the T score of the team with an E score of 6.625?`

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

CREATE TABLE "group_3_balls_2_ropes" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the T score of the team with an E score of 6.625?`:
```sql
                SELECT "t_score" FROM "group_3_balls_2_ropes" WHERE "e_score"=6.625;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Poland, which has an E score greater than 7.725?`

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

CREATE TABLE "group_3_balls_2_ropes" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Poland, which has an E score greater than 7.725?`:
```sql
                SELECT COUNT("total") FROM "group_3_balls_2_ropes" WHERE "nation"='poland' AND "e_score">7.725;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the team with a T score less than 6.8?`

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

CREATE TABLE "group_3_balls_2_ropes" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the team with a T score less than 6.8?`:
```sql
                SELECT SUM("total") FROM "group_3_balls_2_ropes" WHERE "t_score"<6.8;
```
## Task
Generate a SQL query to answer the following question:
`What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has a competition of 2012 afc challenge cup, and dasarath rangasala stadium, kathmandu as the venue?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "competition"='2012 afc challenge cup' AND "venue"='dasarath rangasala stadium, kathmandu';
```
## Task
Generate a SQL query to answer the following question:
`Which Social Liberal Party has 4.5% of the Conservative People's Party?`

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

CREATE TABLE "opinion_polls" (
  "polling_firm" text,
  "date" text,
  "venstre_v" text,
  "social_democrats_a" text,
  "danish_people_s_party_o" text,
  "socialist_people_s_party_f" text,
  "conservative_people_s_party_c" text,
  "social_liberal_party_b" text,
  "liberal_alliance_i" text,
  "red_green_alliance" text,
  "christian_democrats_k" text,
  "government" text,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Social Liberal Party has 4.5% of the Conservative People's Party?`:
```sql
                SELECT "social_liberal_party_b" FROM "opinion_polls" WHERE "conservative_people_s_party_c"='4.5%';
```
## Task
Generate a SQL query to answer the following question:
`What opposition do 31.1% of Social Democrats have?`

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

CREATE TABLE "opinion_polls" (
  "polling_firm" text,
  "date" text,
  "venstre_v" text,
  "social_democrats_a" text,
  "danish_people_s_party_o" text,
  "socialist_people_s_party_f" text,
  "conservative_people_s_party_c" text,
  "social_liberal_party_b" text,
  "liberal_alliance_i" text,
  "red_green_alliance" text,
  "christian_democrats_k" text,
  "government" text,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opposition do 31.1% of Social Democrats have?`:
```sql
                SELECT "opposition" FROM "opinion_polls" WHERE "social_democrats_a"='31.1%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Liberal Alliance that is backed by the Polling Firm, Capacent, and 13.0% of the Socialist People's Party?`

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

CREATE TABLE "opinion_polls" (
  "polling_firm" text,
  "date" text,
  "venstre_v" text,
  "social_democrats_a" text,
  "danish_people_s_party_o" text,
  "socialist_people_s_party_f" text,
  "conservative_people_s_party_c" text,
  "social_liberal_party_b" text,
  "liberal_alliance_i" text,
  "red_green_alliance" text,
  "christian_democrats_k" text,
  "government" text,
  "opposition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Liberal Alliance that is backed by the Polling Firm, Capacent, and 13.0% of the Socialist People's Party?`:
```sql
                SELECT "liberal_alliance_i" FROM "opinion_polls" WHERE "polling_firm"='capacent' AND "socialist_people_s_party_f"='13.0%';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 14, and a School/Club Team of north texas?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Round larger than 14, and a School/Club Team of north texas?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "round">14 AND "school_club_team"='north texas';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Player of anthony christnovich?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Player of anthony christnovich?`:
```sql
                SELECT "round" FROM "nfl_draft" WHERE "player"='anthony christnovich';
```
## Task
Generate a SQL query to answer the following question:
`Which Round is the lowest one that has a School/Club Team of virginia?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round is the lowest one that has a School/Club Team of virginia?`:
```sql
                SELECT MIN("round") FROM "nfl_draft" WHERE "school_club_team"='virginia';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the leading scorer on 2006-11-22?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the leading scorer on 2006-11-22?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "date"='2006-11-22';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the leading scorer when the record was 9–6?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the leading scorer when the record was 9–6?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "record"='9–6';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of people in Attendance when Visitor was the warriors on 2006-11-04?`:
```sql
                SELECT "attendance" FROM "november" WHERE "visitor"='warriors' AND "date"='2006-11-04';
```
## Task
Generate a SQL query to answer the following question:
`What team was the visitor when there were more than 16,182 people in attendance and the record was 6–3?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the visitor when there were more than 16,182 people in attendance and the record was 6–3?`:
```sql
                SELECT "visitor" FROM "november" WHERE "attendance">'16,182' AND "record"='6–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the visitor on 2006-11-04?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the visitor on 2006-11-04?`:
```sql
                SELECT "visitor" FROM "november" WHERE "date"='2006-11-04';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Leading scorer when the Score was 89–102?`

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

CREATE TABLE "november" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Leading scorer when the Score was 89–102?`:
```sql
                SELECT "leading_scorer" FROM "november" WHERE "score"='89–102';
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest one that has a Population larger than 13,012, and a Borough of richmondshire?`

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

CREATE TABLE "settlements_by_population" (
  "rank" real,
  "town" text,
  "population" real,
  "year" real,
  "borough" text,
  "definition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Population larger than 13,012, and a Borough of richmondshire?`:
```sql
                SELECT MAX("year") FROM "settlements_by_population" WHERE "population">'13,012' AND "borough"='richmondshire';
```
## Task
Generate a SQL query to answer the following question:
`How many people live in Norton?`

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

CREATE TABLE "settlements_by_population" (
  "rank" real,
  "town" text,
  "population" real,
  "year" real,
  "borough" text,
  "definition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people live in Norton?`:
```sql
                SELECT SUM("population") FROM "settlements_by_population" WHERE "town"='norton';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?`

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

CREATE TABLE "settlements_by_population" (
  "rank" real,
  "town" text,
  "population" real,
  "year" real,
  "borough" text,
  "definition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Borough of harrogate, and a Rank smaller than 6, and a Definition of civil parish?`:
```sql
                SELECT "year" FROM "settlements_by_population" WHERE "borough"='harrogate' AND "rank"<6 AND "definition"='civil parish';
```
## Task
Generate a SQL query to answer the following question:
`Which Definition has a Rank smaller than 12, and a Town of tadcaster?`

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

CREATE TABLE "settlements_by_population" (
  "rank" real,
  "town" text,
  "population" real,
  "year" real,
  "borough" text,
  "definition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Definition has a Rank smaller than 12, and a Town of tadcaster?`:
```sql
                SELECT "definition" FROM "settlements_by_population" WHERE "rank"<12 AND "town"='tadcaster';
```
## Task
Generate a SQL query to answer the following question:
`Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?`

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

CREATE TABLE "settlements_by_population" (
  "rank" real,
  "town" text,
  "population" real,
  "year" real,
  "borough" text,
  "definition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?`:
```sql
                SELECT MIN("rank") FROM "settlements_by_population" WHERE "borough"='richmondshire' AND "population">'8,178';
```
## Task
Generate a SQL query to answer the following question:
`How many bronze medals did Bulgaria receive?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronze medals did Bulgaria receive?`:
```sql
                SELECT "bronze" FROM "medal_table" WHERE "nation"='bulgaria';
```
## Task
Generate a SQL query to answer the following question:
`What was Phil Mickelson's score to par?`

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

CREATE TABLE "fourth_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Phil Mickelson's score to par?`:
```sql
                SELECT "to_par" FROM "fourth_round" WHERE "player"='phil mickelson';
```
## Task
Generate a SQL query to answer the following question:
`What name has an overall less than 268, and 1 as the round?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has an overall less than 268, and 1 as the round?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall"<268 AND "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many pick #'s have james britt as the name, with a round greater than 2?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pick #'s have james britt as the name, with a round greater than 2?`:
```sql
                SELECT COUNT("pick_num") FROM "atlanta_falcons_draft_history" WHERE "name"='james britt' AND "round">2;
```
## Task
Generate a SQL query to answer the following question:
`what is the score on november 15`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score on november 15`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='november 15';
```
## Task
Generate a SQL query to answer the following question:
`Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?`:
```sql
                SELECT MAX("wins") FROM "leaders" WHERE "country"='united states' AND "player"='andy bean' AND "rank"<4;
```
## Task
Generate a SQL query to answer the following question:
`Which Earnings ($) is the lowest one that has a Rank smaller than 1?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "events" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Earnings ($) is the lowest one that has a Rank smaller than 1?`:
```sql
                SELECT MIN("earnings") FROM "leaders" WHERE "rank"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on September 13 when the Expos were the opponent?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on September 13 when the Expos were the opponent?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='expos' AND "date"='september 13';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on the September 3 game?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on the September 3 game?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='september 3';
```
## Task
Generate a SQL query to answer the following question:
`What is the save of the game on September 15?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "save" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the save of the game on September 15?`:
```sql
                SELECT "save" FROM "game_log" WHERE "date"='september 15';
```
## Task
Generate a SQL query to answer the following question:
`Which Game site has a Week larger than 14?`

### 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,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game site has a Week larger than 14?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "week">14;
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Game site of jeppesen stadium?`

### 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,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Game site of jeppesen stadium?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='jeppesen stadium';
```
## Task
Generate a SQL query to answer the following question:
`Which Game site  has 27,189 Attendances ?`

### 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,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game site  has 27,189 Attendances ?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "attendance"='27,189';
```
## Task
Generate a SQL query to answer the following question:
`When is it has 15,557 Attendances?`

### 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,
  "game_site" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is it has 15,557 Attendances?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='15,557';
```
## Task
Generate a SQL query to answer the following question:
`With an Overall less than 171, what is the Round pick of Lance Moon?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `With an Overall less than 171, what is the Round pick of Lance Moon?`:
```sql
                SELECT MIN("round") FROM "atlanta_falcons_draft_history" WHERE "name"='lance moon' AND "overall"<171;
```
## Task
Generate a SQL query to answer the following question:
`What is the Name of draft Pick #10?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name of draft Pick #10?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "pick_num"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many Rounds have a Defensive End Pick?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Rounds have a Defensive End Pick?`:
```sql
                SELECT COUNT("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='defensive end';
```
## Task
Generate a SQL query to answer the following question:
`What was the time when Shinya Aoki was the opponent?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time when Shinya Aoki was the opponent?`:
```sql
                SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='shinya aoki';
```
## Task
Generate a SQL query to answer the following question:
`Which method was used in round 1 with a record of 1-0?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which method was used in round 1 with a record of 1-0?`:
```sql
                SELECT "method" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "record"='1-0';
```