cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?`

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

CREATE TABLE "willingen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1st (m) is the lowest one that has a Nationality of aut, and Points larger than 273.5?`:
```sql
                SELECT MIN("1st_m") FROM "willingen" WHERE "nationality"='aut' AND "points">273.5;
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd (m) is the lowest one that has a Rank larger than 3, and a 1st (m) larger than 140.5?`

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

CREATE TABLE "willingen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd (m) is the lowest one that has a Rank larger than 3, and a 1st (m) larger than 140.5?`:
```sql
                SELECT MIN("2nd_m") FROM "willingen" WHERE "rank">3 AND "1st_m">140.5;
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd (m) has an Overall WC points (Rank) of 1632 (1), and Points larger than 273.5?`

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

CREATE TABLE "willingen" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "2nd_m" real,
  "points" real,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd (m) has an Overall WC points (Rank) of 1632 (1), and Points larger than 273.5?`:
```sql
                SELECT SUM("2nd_m") FROM "willingen" WHERE "overall_wc_points_rank"='1632 (1)' AND "points">273.5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins associated with under 0 poles?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins associated with under 0 poles?`:
```sql
                SELECT MAX("wins") FROM "career_summary" WHERE "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many poles did he have in 2006 with under 2 wins?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles did he have in 2006 with under 2 wins?`:
```sql
                SELECT "poles" FROM "career_summary" WHERE "season"='2006' AND "wins"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the fewest number of wins when he has 3 poles in 2010?`

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

CREATE TABLE "career_summary" (
  "season" text,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fewest number of wins when he has 3 poles in 2010?`:
```sql
                SELECT MIN("wins") FROM "career_summary" WHERE "poles"=3 AND "season"='2010';
```
## Task
Generate a SQL query to answer the following question:
`What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's listed for the 2012 that has a 2011 of 7.7% with a 2008 of 7.9%?`:
```sql
                SELECT "2012" FROM "professional_organizations" WHERE "2011"='7.7%' AND "2008"='7.9%';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the 2011 that has a 2005 of 4.2%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the 2011 that has a 2005 of 4.2%?`:
```sql
                SELECT "2011" FROM "professional_organizations" WHERE "2005"='4.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the 2012 that has a 2011 of 28.9%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the 2012 that has a 2011 of 28.9%?`:
```sql
                SELECT "2012" FROM "professional_organizations" WHERE "2011"='28.9%';
```
## Task
Generate a SQL query to answer the following question:
`What is listed for the 2005 that has a 2012 of 4.2%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed for the 2005 that has a 2012 of 4.2%?`:
```sql
                SELECT "2005" FROM "professional_organizations" WHERE "2012"='4.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed the Favorite Professional Sport that's got a 2005 of 17.1%?`:
```sql
                SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2005"='17.1%';
```
## Task
Generate a SQL query to answer the following question:
`What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?`

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

CREATE TABLE "professional_organizations" (
  "favorite_professional_sport" text,
  "2005" text,
  "2008" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed as the Favorite Professional Sport that has a 2008 of 8.9%?`:
```sql
                SELECT "favorite_professional_sport" FROM "professional_organizations" WHERE "2008"='8.9%';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that led to a 79-77 record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that led to a 79-77 record?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='79-77';
```
## Task
Generate a SQL query to answer the following question:
`What was the record after the game in which Rosales (1-1) took the loss?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the game in which Rosales (1-1) took the loss?`:
```sql
                SELECT "record" FROM "game_log" WHERE "loss"='rosales (1-1)';
```
## Task
Generate a SQL query to answer the following question:
`Which supercentenarians were born in Manitoba?`

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

CREATE TABLE "living_canadian_supercentenarians" (
  "name" text,
  "birth_date" text,
  "age_as_of_1_february_2014" text,
  "province_or_country_of_birth" text,
  "province_of_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which supercentenarians were born in Manitoba?`:
```sql
                SELECT "name" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='manitoba';
```
## Task
Generate a SQL query to answer the following question:
`What is the average age as of February 1, 2014 for the supercentenarians born in the United States?`

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

CREATE TABLE "living_canadian_supercentenarians" (
  "name" text,
  "birth_date" text,
  "age_as_of_1_february_2014" text,
  "province_or_country_of_birth" text,
  "province_of_residence" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average age as of February 1, 2014 for the supercentenarians born in the United States?`:
```sql
                SELECT "age_as_of_1_february_2014" FROM "living_canadian_supercentenarians" WHERE "province_or_country_of_birth"='united states';
```
## Task
Generate a SQL query to answer the following question:
`Which 2010 Tournament has a 2001 of grand slam tournaments?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010 Tournament has a 2001 of grand slam tournaments?`:
```sql
                SELECT "2010" FROM "singles" WHERE "2001"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 2006 Tournament has a 2004, and a 2002 of not tier i?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2006 Tournament has a 2004, and a 2002 of not tier i?`:
```sql
                SELECT "2006" FROM "singles" WHERE "2004"='a' AND "2002"='not tier i';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008 Tournament has a 2007 of a and a 2010 of qf?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008 Tournament has a 2007 of a and a 2010 of qf?`:
```sql
                SELECT "2008" FROM "singles" WHERE "2007"='a' AND "2010"='qf';
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a 2002 of grand slam tournaments?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a 2002 of grand slam tournaments?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "2002"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2000 Tournament has a 2002 of not tier i, and a 2006 of 2r?`:
```sql
                SELECT "2000" FROM "singles" WHERE "2002"='not tier i' AND "2006"='2r';
```
## Task
Generate a SQL query to answer the following question:
`Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?`

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

CREATE TABLE "non_mandarin_satellite_television" (
  "name" text,
  "hanzi" text,
  "language" text,
  "launch" real,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which language's launch was in 2006 when then hanzi was 青海电视台藏语综合频道?`:
```sql
                SELECT "language" FROM "non_mandarin_satellite_television" WHERE "launch"=2006 AND "hanzi"='青海电视台藏语综合频道';
```
## Task
Generate a SQL query to answer the following question:
`Which hanzi's name is nmtv mongolian satellite television?`

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

CREATE TABLE "non_mandarin_satellite_television" (
  "name" text,
  "hanzi" text,
  "language" text,
  "launch" real,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which hanzi's name is nmtv mongolian satellite television?`:
```sql
                SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "name"='nmtv mongolian satellite television';
```
## Task
Generate a SQL query to answer the following question:
`Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?`

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

CREATE TABLE "non_mandarin_satellite_television" (
  "name" text,
  "hanzi" text,
  "language" text,
  "launch" real,
  "owner" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which hanzi's launch is before 2009, when the language was tibetan, and the name was qinghai tibetian general channel?`:
```sql
                SELECT "hanzi" FROM "non_mandarin_satellite_television" WHERE "launch"<2009 AND "language"='tibetan' AND "name"='qinghai tibetian general channel';
```
## Task
Generate a SQL query to answer the following question:
`What Team had a 1:24.365 Qual 2?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team had a 1:24.365 Qual 2?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:24.365';
```
## Task
Generate a SQL query to answer the following question:
`What Team had a 1:24.152 Best?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team had a 1:24.152 Best?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "best"='1:24.152';
```
## Task
Generate a SQL query to answer the following question:
`What was Robert Doornbos' Best?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Robert Doornbos' Best?`:
```sql
                SELECT "best" FROM "qualifying_results" WHERE "name"='robert doornbos';
```
## Task
Generate a SQL query to answer the following question:
`What was Alex Figge's Best?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Alex Figge's Best?`:
```sql
                SELECT "best" FROM "qualifying_results" WHERE "name"='alex figge';
```
## Task
Generate a SQL query to answer the following question:
`What Team had a 1:25.602 Best?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team had a 1:25.602 Best?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "best"='1:25.602';
```
## Task
Generate a SQL query to answer the following question:
`What was the Name of the person with a Qual 1 of 1:26.056?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Name of the person with a Qual 1 of 1:26.056?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_1"='1:26.056';
```
## Task
Generate a SQL query to answer the following question:
`How many picks were there for the Bentley team?`

### 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 `How many picks were there for the Bentley team?`:
```sql
                SELECT COUNT("pick") FROM "nfl_draft" WHERE "school_club_team"='bentley';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest round number for Dan Connor, the player?`

### 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 `What is the largest round number for Dan Connor, the player?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "player"='dan connor';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest round number for the dt position when the pick number is bigger than 181?`

### 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 `What is the largest round number for the dt position when the pick number is bigger than 181?`:
```sql
                SELECT MAX("round") FROM "nfl_draft" WHERE "position"='dt' AND "pick">181;
```
## Task
Generate a SQL query to answer the following question:
`what circuit is in italy`

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

CREATE TABLE "season_calendar" (
  "date" text,
  "round" text,
  "circuit" text,
  "race_1_winner" text,
  "race_2_winner" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what circuit is in italy`:
```sql
                SELECT "circuit" FROM "season_calendar" WHERE "round"='italy';
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick for clarence mason?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick for clarence mason?`:
```sql
                SELECT AVG("pick") FROM "nfl_draft" WHERE "player"='clarence mason';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency for the city of Lamar, Colorado?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency for the city of Lamar, Colorado?`:
```sql
                SELECT AVG("frequency_m_hz") FROM "translators" WHERE "city_of_license"='lamar, colorado';
```
## Task
Generate a SQL query to answer the following question:
`What is the average ERP W for callsign K207BK?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average ERP W for callsign K207BK?`:
```sql
                SELECT AVG("erp_w") FROM "translators" WHERE "call_sign"='k207bk';
```
## Task
Generate a SQL query to answer the following question:
`Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which callsign has ERP W of 99 and a frequency of greater than 88.7MHz?`:
```sql
                SELECT "call_sign" FROM "translators" WHERE "frequency_m_hz">88.7 AND "erp_w"=99;
```
## Task
Generate a SQL query to answer the following question:
`Which city has ERP W under 14 and a frequency over 93.7MHz?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has ERP W under 14 and a frequency over 93.7MHz?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "erp_w"<14 AND "frequency_m_hz">93.7;
```
## Task
Generate a SQL query to answer the following question:
`What were the total number of field goals when there were 0 touchdowns and 2 extra points?`

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

CREATE TABLE "michigan_28_wisconsin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What were the total number of field goals when there were 0 touchdowns and 2 extra points?`:
```sql
                SELECT COUNT("field_goals") FROM "michigan_28_wisconsin_0" WHERE "touchdowns"=0 AND "extra_points"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many field goals did Carter get when he had 0 extra points?`

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

CREATE TABLE "michigan_28_wisconsin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many field goals did Carter get when he had 0 extra points?`:
```sql
                SELECT SUM("field_goals") FROM "michigan_28_wisconsin_0" WHERE "player"='carter' AND "extra_points"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?`

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

CREATE TABLE "michigan_28_wisconsin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest amount of extra points someone got when they scored 28 points but had 0 field goals?`:
```sql
                SELECT MAX("extra_points") FROM "michigan_28_wisconsin_0" WHERE "points"=28 AND "field_goals"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?`

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

CREATE TABLE "michigan_28_wisconsin_0" (
  "player" text,
  "touchdowns" real,
  "extra_points" real,
  "field_goals" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average field goal someone has when they have 0 extra points but more than 5 touch downs?`:
```sql
                SELECT AVG("field_goals") FROM "michigan_28_wisconsin_0" WHERE "extra_points">0 AND "touchdowns">5;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of wins with more than 113 points in 4th rank?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of wins with more than 113 points in 4th rank?`:
```sql
                SELECT MIN("wins") FROM "grand_prix_career_statistics" WHERE "points">113 AND "rank"='4th';
```
## Task
Generate a SQL query to answer the following question:
`How many wins had less than 91 points in 25th rank?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins had less than 91 points in 25th rank?`:
```sql
                SELECT "wins" FROM "grand_prix_career_statistics" WHERE "points"<91 AND "rank"='25th';
```
## Task
Generate a SQL query to answer the following question:
`How many wins in 1992?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins in 1992?`:
```sql
                SELECT "wins" FROM "grand_prix_career_statistics" WHERE "year"=1992;
```
## Task
Generate a SQL query to answer the following question:
`How many wins occurred for 6th rank?`

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

CREATE TABLE "grand_prix_career_statistics" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins occurred for 6th rank?`:
```sql
                SELECT COUNT("wins") FROM "grand_prix_career_statistics" WHERE "rank"='6th';
```
## Task
Generate a SQL query to answer the following question:
`Who was the constructor of the car driven by Heikki Kovalainen?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the constructor of the car driven by Heikki Kovalainen?`:
```sql
                SELECT "constructor" FROM "race" WHERE "driver"='heikki kovalainen';
```
## Task
Generate a SQL query to answer the following question:
`Which Reg Season has a Division of 2?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Reg Season has a Division of 2?`:
```sql
                SELECT "reg_season" FROM "year_by_year" WHERE "division"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year is the highest one that has a Reg Season of 3rd, western, and a Division larger than 2?`:
```sql
                SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='3rd, western' AND "division">2;
```
## Task
Generate a SQL query to answer the following question:
`Which year is the lowest one when the playoffs did not qualify?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year is the lowest one when the playoffs did not qualify?`:
```sql
                SELECT MIN("year") FROM "year_by_year" WHERE "playoffs"='did not qualify';
```
## Task
Generate a SQL query to answer the following question:
`Which Year has a Reg Season of 3rd, western?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Year has a Reg Season of 3rd, western?`:
```sql
                SELECT AVG("year") FROM "year_by_year" WHERE "reg_season"='3rd, western';
```
## Task
Generate a SQL query to answer the following question:
`Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "reg_season" text,
  "playoffs" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Division that has a Reg Season of 1st, western, and Playoffs of champions, and a Year smaller than 2013?`:
```sql
                SELECT AVG("division") FROM "year_by_year" WHERE "reg_season"='1st, western' AND "playoffs"='champions' AND "year"<2013;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent during the game that had more than 31,891 people in attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent during the game that had more than 31,891 people in attendance?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance">'31,891';
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for the game before week 4 that was on october 16, 1955?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for the game before week 4 that was on october 16, 1955?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 16, 1955' AND "week"<4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of weeks that were on September 25, 1955 with more than 16,901 people in attendance?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance">'16,901' AND "date"='september 25, 1955';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent for the game on November 20, 1955?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent for the game on November 20, 1955?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1955';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of successful defenses in brandon, florida and a reign less than 1?`

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

CREATE TABLE "title_history" (
  "reign" real,
  "days_held" text,
  "location" text,
  "successful_defenses" real,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of successful defenses in brandon, florida and a reign less than 1?`:
```sql
                SELECT MAX("successful_defenses") FROM "title_history" WHERE "location"='brandon, florida' AND "reign"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against Norway with a 1:1 result?`

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

CREATE TABLE "1965" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game against Norway with a 1:1 result?`:
```sql
                SELECT "date" FROM "1965" WHERE "opponent"='norway' AND "results"='1:1';
```
## Task
Generate a SQL query to answer the following question:
`What type of game had a 0:0 result?`

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

CREATE TABLE "1965" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of game had a 0:0 result?`:
```sql
                SELECT "type_of_game" FROM "1965" WHERE "results"='0:0';
```
## Task
Generate a SQL query to answer the following question:
`What city held that game with a 5:2 result?`

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

CREATE TABLE "1965" (
  "date" text,
  "city" text,
  "opponent" text,
  "results" text,
  "type_of_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city held that game with a 5:2 result?`:
```sql
                SELECT "city" FROM "1965" WHERE "results"='5:2';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game that has a record of 1-2-1?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game that has a record of 1-2-1?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "record"='1-2-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the team's record in games against the Hartford Whalers?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team's record in games against the Hartford Whalers?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "opponent"='hartford whalers';
```
## Task
Generate a SQL query to answer the following question:
`What was the Record on Week 13 at the Hoosier Dome?`

### 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 was the Record on Week 13 at the Hoosier Dome?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='hoosier dome' AND "week"=13;
```
## Task
Generate a SQL query to answer the following question:
`What was the Week on October 18, 1992?`

### 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 was the Week on October 18, 1992?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "date"='october 18, 1992';
```
## Task
Generate a SQL query to answer the following question:
`What loss has 16-6 as the record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What loss has 16-6 as the record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='16-6';
```
## Task
Generate a SQL query to answer the following question:
`What loss has 4-2 as the record?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What loss has 4-2 as the record?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='4-2';
```
## Task
Generate a SQL query to answer the following question:
`What attendance has astros as the opponent, and april 29 as the date?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What attendance has astros as the opponent, and april 29 as the date?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='astros' AND "date"='april 29';
```
## Task
Generate a SQL query to answer the following question:
`Which Operator has a Width of 2.65 m, and a Type designation of m5000?`

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

CREATE TABLE "high_floor_versions" (
  "city" text,
  "operator" text,
  "type_designation" text,
  "number_of_vehicles" real,
  "width" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Operator has a Width of 2.65 m, and a Type designation of m5000?`:
```sql
                SELECT "operator" FROM "high_floor_versions" WHERE "width"='2.65 m' AND "type_designation"='m5000';
```
## Task
Generate a SQL query to answer the following question:
`Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?`

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

CREATE TABLE "high_floor_versions" (
  "city" text,
  "operator" text,
  "type_designation" text,
  "number_of_vehicles" real,
  "width" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Width has a Number of vehicles larger than 15, and a Type designation of k5000?`:
```sql
                SELECT "width" FROM "high_floor_versions" WHERE "number_of_vehicles">15 AND "type_designation"='k5000';
```
## Task
Generate a SQL query to answer the following question:
`Which Number of vehicles has a Type designation of u5-25 (bi-directional)?`

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

CREATE TABLE "high_floor_versions" (
  "city" text,
  "operator" text,
  "type_designation" text,
  "number_of_vehicles" real,
  "width" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Number of vehicles has a Type designation of u5-25 (bi-directional)?`:
```sql
                SELECT "number_of_vehicles" FROM "high_floor_versions" WHERE "type_designation"='u5-25 (bi-directional)';
```
## Task
Generate a SQL query to answer the following question:
`Province of leinster, and a County of fingal has which irish name?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Province of leinster, and a County of fingal has which irish name?`:
```sql
                SELECT "irish_name" FROM "list_of_counties" WHERE "province"='leinster' AND "county"='fingal';
```
## Task
Generate a SQL query to answer the following question:
`Irish name of an dún (contae an dúin) has what county town?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Irish name of an dún (contae an dúin) has what county town?`:
```sql
                SELECT "county_town" FROM "list_of_counties" WHERE "irish_name"='an dún (contae an dúin)';
```
## Task
Generate a SQL query to answer the following question:
`Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region?`:
```sql
                SELECT "region" FROM "list_of_counties" WHERE "most_populous_city_town"='clonmel' AND "irish_name"='tiobraid árann (contae thiobraid árann)';
```
## Task
Generate a SQL query to answer the following question:
`County town of dún laoghaire has the most populous city/town?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `County town of dún laoghaire has the most populous city/town?`:
```sql
                SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='dún laoghaire';
```
## Task
Generate a SQL query to answer the following question:
`Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `Irish name of dún na ngall (contae dhún na ngall) has the most populous city/town?`:
```sql
                SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "irish_name"='dún na ngall (contae dhún na ngall)';
```
## Task
Generate a SQL query to answer the following question:
`County town of castlebar has the most populous city/town?`

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

CREATE TABLE "list_of_counties" (
  "county" text,
  "irish_name" text,
  "county_town" text,
  "most_populous_city_town" text,
  "province" text,
  "region" text
);
### SQL
Given the database schema, here is the SQL query that answers `County town of castlebar has the most populous city/town?`:
```sql
                SELECT "most_populous_city_town" FROM "list_of_counties" WHERE "county_town"='castlebar';
```
## Task
Generate a SQL query to answer the following question:
`Name the games for rubén limardo`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the games for rubén limardo`:
```sql
                SELECT "games" FROM "medalists" WHERE "name"='rubén limardo';
```
## Task
Generate a SQL query to answer the following question:
`Name the sport for men's light flyweight with medal of gold`

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

CREATE TABLE "medalists" (
  "medal" text,
  "name" text,
  "games" text,
  "sport" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sport for men's light flyweight with medal of gold`:
```sql
                SELECT "sport" FROM "medalists" WHERE "medal"='gold' AND "event"='men''s light flyweight';
```