cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip?`

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

CREATE TABLE "teams" (
  "team" text,
  "country" text,
  "home" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the third on the team from Madison, Wisconsin that has Craig Brown as skip?`:
```sql
                SELECT "third" FROM "teams" WHERE "home"='madison, wisconsin' AND "skip"='craig brown';
```
## Task
Generate a SQL query to answer the following question:
`On which date was the opponent the Chicago Bears?`

### 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 `On which date was the opponent the Chicago Bears?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`Which week was on october 30, 1983?`

### 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 `Which week was on october 30, 1983?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "date"='october 30, 1983';
```
## Task
Generate a SQL query to answer the following question:
`What is the Mascot for the team from leo that had a Previous Conference value of independent?`

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

CREATE TABLE "current_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment_08_09" real,
  "ihsaa_class_football_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Mascot for the team from leo that had a Previous Conference value of independent?`:
```sql
                SELECT "mascot" FROM "current_members" WHERE "previous_conference"='independent' AND "location"='leo';
```
## Task
Generate a SQL query to answer the following question:
`What School had 3a/2a as the value for IHSAA Class/ Football Class?`

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

CREATE TABLE "current_members" (
  "school" text,
  "location" text,
  "mascot" text,
  "enrollment_08_09" real,
  "ihsaa_class_football_class" text,
  "county" text,
  "year_joined" real,
  "previous_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What School had 3a/2a as the value for IHSAA Class/ Football Class?`:
```sql
                SELECT "school" FROM "current_members" WHERE "ihsaa_class_football_class"='3a/2a';
```
## Task
Generate a SQL query to answer the following question:
`How many July 1, 2013 projections have a Rank of 27?`

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

CREATE TABLE "table" (
  "rank" text,
  "country_or_dependent_territory" text,
  "july_1_2013_projection" real,
  "pct_of_pop" real,
  "average_relative_annual_growth_pct" real,
  "average_absolute_annual_growth" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many July 1, 2013 projections have a Rank of 27?`:
```sql
                SELECT COUNT("july_1_2013_projection") FROM "table" WHERE "rank"='27';
```
## Task
Generate a SQL query to answer the following question:
`What is the format for the one which has a call sign of cite-fm-1?`

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

CREATE TABLE "radio" (
  "frequency" text,
  "call_sign" text,
  "format" text,
  "owner" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the format for the one which has a call sign of cite-fm-1?`:
```sql
                SELECT "format" FROM "radio" WHERE "call_sign"='cite-fm-1';
```
## Task
Generate a SQL query to answer the following question:
`What'd the total Dolphin points when there was an attendance of 52,860?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What'd the total Dolphin points when there was an attendance of 52,860?`:
```sql
                SELECT COUNT("dolphins_points") FROM "schedule" WHERE "attendance"='52,860';
```
## Task
Generate a SQL query to answer the following question:
`What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "opponent" text,
  "result" text,
  "dolphins_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the most in attendance when the Dolphins points were less than 24 and, they played the New England Patriots?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "dolphins_points"<24 AND "opponent"='new england patriots';
```
## Task
Generate a SQL query to answer the following question:
`Which district had SC reserved and 169 Constituents?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2003" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which district had SC reserved and 169 Constituents?`:
```sql
                SELECT "district" FROM "assembly_segments" WHERE "reserved_for_sc_st_none"='sc' AND "constituency_number"='169';
```
## Task
Generate a SQL query to answer the following question:
`What was reserved in the district that has 169 constituents?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2003" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was reserved in the district that has 169 constituents?`:
```sql
                SELECT "reserved_for_sc_st_none" FROM "assembly_segments" WHERE "constituency_number"='169';
```
## Task
Generate a SQL query to answer the following question:
`What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?`:
```sql
                SELECT "1995" FROM "singles_performance_timeline" WHERE "1997"='lq' AND "1989"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1996 Grand Slam Tournament if 1994 is LQ and 1992 is 3R?`:
```sql
                SELECT "1996" FROM "singles_performance_timeline" WHERE "1994"='lq' AND "1992"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1994 Grand Slam Tournament if 1993 is also grand slam tournaments?`:
```sql
                SELECT "1994" FROM "singles_performance_timeline" WHERE "1993"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is 1995 Grand Slam Tournament if 1990 is LQ?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1995 Grand Slam Tournament if 1990 is LQ?`:
```sql
                SELECT "1995" FROM "singles_performance_timeline" WHERE "1990"='lq';
```
## Task
Generate a SQL query to answer the following question:
`What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1995 Grand Slam Tournament if 1996 is also grand slam tournaments?`:
```sql
                SELECT "1990" FROM "singles_performance_timeline" WHERE "1996"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1987" text,
  "1988" text,
  "1989" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 1987 Grand Slam Tournament if 1989 is also grand slam tournaments?`:
```sql
                SELECT "1987" FROM "singles_performance_timeline" WHERE "1989"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the home game against the New York Jets?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the home game against the New York Jets?`:
```sql
                SELECT SUM("attendance") FROM "season_schedule" WHERE "opponent"='new york jets';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the September 14, 1968 game?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the September 14, 1968 game?`:
```sql
                SELECT COUNT("attendance") FROM "season_schedule" WHERE "date"='september 14, 1968';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director of the production number 9368?`

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

CREATE TABLE "1940" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director of the production number 9368?`:
```sql
                SELECT "director" FROM "1940" WHERE "production_number"='9368';
```
## Task
Generate a SQL query to answer the following question:
`What is the title with chuck jones as the director and the production number 9537?`

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

CREATE TABLE "1940" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title with chuck jones as the director and the production number 9537?`:
```sql
                SELECT "title" FROM "1940" WHERE "director"='chuck jones' AND "production_number"='9537';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of the mm series, which has the title tom thumb in trouble?`

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

CREATE TABLE "1940" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of the mm series, which has the title tom thumb in trouble?`:
```sql
                SELECT "release_date" FROM "1940" WHERE "series"='mm' AND "title"='tom thumb in trouble';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of the mm series which has the title confederate honey?`

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

CREATE TABLE "1940" (
  "title" text,
  "series" text,
  "director" text,
  "production_number" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of the mm series which has the title confederate honey?`:
```sql
                SELECT "release_date" FROM "1940" WHERE "series"='mm' AND "title"='confederate honey';
```
## Task
Generate a SQL query to answer the following question:
`What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the start of the Team of Andretti Green Racing with a finish higher than 3 in a year before 2007?`:
```sql
                SELECT AVG("start") FROM "indianapolis_500" WHERE "team"='andretti green racing' AND "finish">3 AND "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest start in a year after 2008?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest start in a year after 2008?`:
```sql
                SELECT MIN("start") FROM "indianapolis_500" WHERE "year">2008;
```
## Task
Generate a SQL query to answer the following question:
`What finish has a start smaller than 25?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What finish has a start smaller than 25?`:
```sql
                SELECT "finish" FROM "indianapolis_500" WHERE "start"<25;
```
## Task
Generate a SQL query to answer the following question:
`Where did the team of Rahal Letterman in 2006 start?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the team of Rahal Letterman in 2006 start?`:
```sql
                SELECT COUNT("start") FROM "indianapolis_500" WHERE "team"='rahal letterman' AND "year"=2006;
```
## Task
Generate a SQL query to answer the following question:
`What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?`

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

CREATE TABLE "indianapolis_500" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" real,
  "finish" real,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Team of Andretti Green Racing have a finish smaller than 8 with a Dallara chassis?`:
```sql
                SELECT "year" FROM "indianapolis_500" WHERE "chassis"='dallara' AND "team"='andretti green racing' AND "finish"<8;
```
## Task
Generate a SQL query to answer the following question:
`What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?`

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

CREATE TABLE "planned_for_theatrical_release_but_never" (
  "title" text,
  "series" text,
  "director" text,
  "characters" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What director has 2004-03-31 as the release date, with daffy (as duck dodgers) as the character?`:
```sql
                SELECT "director" FROM "planned_for_theatrical_release_but_never" WHERE "release_date"='2004-03-31' AND "characters"='daffy (as duck dodgers)';
```
## Task
Generate a SQL query to answer the following question:
`What title has daffy (as duck dodgers) as the character?`

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

CREATE TABLE "planned_for_theatrical_release_but_never" (
  "title" text,
  "series" text,
  "director" text,
  "characters" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title has daffy (as duck dodgers) as the character?`:
```sql
                SELECT "title" FROM "planned_for_theatrical_release_but_never" WHERE "characters"='daffy (as duck dodgers)';
```
## Task
Generate a SQL query to answer the following question:
`What series has dan povenmire as the director, with museum scream as the title?`

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

CREATE TABLE "planned_for_theatrical_release_but_never" (
  "title" text,
  "series" text,
  "director" text,
  "characters" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series has dan povenmire as the director, with museum scream as the title?`:
```sql
                SELECT "series" FROM "planned_for_theatrical_release_but_never" WHERE "director"='dan povenmire' AND "title"='museum scream';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of 2009 electorates for Raisen when the consituency number was 142?`

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

CREATE TABLE "assembly_segments" (
  "constituency_number" text,
  "name" text,
  "reserved_for_sc_st_none" text,
  "district" text,
  "number_of_electorates_2009" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of 2009 electorates for Raisen when the consituency number was 142?`:
```sql
                SELECT MAX("number_of_electorates_2009") FROM "assembly_segments" WHERE "district"='raisen' AND "constituency_number"='142';
```
## Task
Generate a SQL query to answer the following question:
`How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?`

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

CREATE TABLE "northern_villages" (
  "name" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" real,
  "land_area_km" real,
  "population_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Population density (per km²) has a Name of total northern villages, and a Population (2006) larger than 11414?`:
```sql
                SELECT COUNT("population_density_per_km") FROM "northern_villages" WHERE "name"='total northern villages' AND "population_2006">11414;
```
## Task
Generate a SQL query to answer the following question:
`Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?`

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

CREATE TABLE "northern_villages" (
  "name" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" real,
  "land_area_km" real,
  "population_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Population density (per km²) has a Change (%) larger than 4.9, and a Land area (km²) smaller than 15.59, and a Population (2011) larger than 790?`:
```sql
                SELECT MAX("population_density_per_km") FROM "northern_villages" WHERE "change_pct">4.9 AND "land_area_km"<15.59 AND "population_2011">790;
```
## Task
Generate a SQL query to answer the following question:
`How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?`

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

CREATE TABLE "northern_villages" (
  "name" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" real,
  "land_area_km" real,
  "population_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much Population (2011) has a Land area (km²) larger than 15.69, and a Population density (per km²) larger than 57.3?`:
```sql
                SELECT SUM("population_2011") FROM "northern_villages" WHERE "land_area_km">15.69 AND "population_density_per_km">57.3;
```
## Task
Generate a SQL query to answer the following question:
`Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?`

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

CREATE TABLE "northern_villages" (
  "name" text,
  "population_2011" real,
  "population_2006" real,
  "change_pct" real,
  "land_area_km" real,
  "population_density_per_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Land area (km²) has a Population density (per km²) larger than 112.6, and a Population (2006) larger than 785, and a Name of pinehouse?`:
```sql
                SELECT MAX("land_area_km") FROM "northern_villages" WHERE "population_density_per_km">112.6 AND "population_2006">785 AND "name"='pinehouse';
```
## Task
Generate a SQL query to answer the following question:
`With a number of 30, what would be listed for previous number(s)?`

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

CREATE TABLE "great_northern_section" (
  "number" text,
  "previous_number_s" real,
  "previous_class" text,
  "converted" real,
  "withdrawn" real,
  "disposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a number of 30, what would be listed for previous number(s)?`:
```sql
                SELECT "previous_number_s" FROM "great_northern_section" WHERE "number"='30';
```
## Task
Generate a SQL query to answer the following question:
`With a previous number of 68165, what is the oldest converted date?`

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

CREATE TABLE "great_northern_section" (
  "number" text,
  "previous_number_s" real,
  "previous_class" text,
  "converted" real,
  "withdrawn" real,
  "disposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a previous number of 68165, what is the oldest converted date?`:
```sql
                SELECT MAX("converted") FROM "great_northern_section" WHERE "previous_number_s"=68165;
```
## Task
Generate a SQL query to answer the following question:
`With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?`

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

CREATE TABLE "great_northern_section" (
  "number" text,
  "previous_number_s" real,
  "previous_class" text,
  "converted" real,
  "withdrawn" real,
  "disposal" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn?`:
```sql
                SELECT MAX("withdrawn") FROM "great_northern_section" WHERE "number"='32 (2nd)' AND "converted"<1966;
```
## Task
Generate a SQL query to answer the following question:
`What is the average when the matches are 11?`

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

CREATE TABLE "most_wickets" (
  "player" text,
  "matches" text,
  "overs" text,
  "wickets" text,
  "economy_rate" text,
  "average" text,
  "strike_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when the matches are 11?`:
```sql
                SELECT "average" FROM "most_wickets" WHERE "matches"='11';
```
## Task
Generate a SQL query to answer the following question:
`What is the overs when the matches are 10?`

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

CREATE TABLE "most_wickets" (
  "player" text,
  "matches" text,
  "overs" text,
  "wickets" text,
  "economy_rate" text,
  "average" text,
  "strike_rate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overs when the matches are 10?`:
```sql
                SELECT "overs" FROM "most_wickets" WHERE "matches"='10';
```
## Task
Generate a SQL query to answer the following question:
`Which Car # has a Driver of ryan newman, and a Position larger than 10?`

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

CREATE TABLE "chevy_rock_roll_400" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Car # has a Driver of ryan newman, and a Position larger than 10?`:
```sql
                SELECT MIN("car_num") FROM "chevy_rock_roll_400" WHERE "driver"='ryan newman' AND "pos">10;
```
## Task
Generate a SQL query to answer the following question:
`Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?`

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

CREATE TABLE "chevy_rock_roll_400" (
  "pos" real,
  "car_num" real,
  "driver" text,
  "make" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Car # has a Team of hendrick motorsports, and a Driver of mark martin, and a Position larger than 4?`:
```sql
                SELECT AVG("car_num") FROM "chevy_rock_roll_400" WHERE "team"='hendrick motorsports' AND "driver"='mark martin' AND "pos">4;
```
## Task
Generate a SQL query to answer the following question:
`Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?`

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

CREATE TABLE "saturday_and_sundays_programming_as_of_s" (
  "time" text,
  "show_name" text,
  "local_networked" text,
  "ad_freq" text,
  "news_freq" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has a local/networked value of Local, ad frequency of every 20 minutes, and news frequency of n/a after 7PM news?`:
```sql
                SELECT "time" FROM "saturday_and_sundays_programming_as_of_s" WHERE "local_networked"='local' AND "ad_freq"='20 minutes' AND "news_freq"='n/a after 7pm news';
```
## Task
Generate a SQL query to answer the following question:
`Which time has a news frequency of 1 hour and show name of Best Mix Overnight?`

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

CREATE TABLE "saturday_and_sundays_programming_as_of_s" (
  "time" text,
  "show_name" text,
  "local_networked" text,
  "ad_freq" text,
  "news_freq" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time has a news frequency of 1 hour and show name of Best Mix Overnight?`:
```sql
                SELECT "time" FROM "saturday_and_sundays_programming_as_of_s" WHERE "news_freq"='1 hour' AND "show_name"='best mix overnight';
```
## Task
Generate a SQL query to answer the following question:
`What is the ad frequency for the show named Health Matters?`

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

CREATE TABLE "saturday_and_sundays_programming_as_of_s" (
  "time" text,
  "show_name" text,
  "local_networked" text,
  "ad_freq" text,
  "news_freq" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ad frequency for the show named Health Matters?`:
```sql
                SELECT "ad_freq" FROM "saturday_and_sundays_programming_as_of_s" WHERE "show_name"='health matters';
```
## Task
Generate a SQL query to answer the following question:
`What is the news frequency for the show Locker Room?`

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

CREATE TABLE "saturday_and_sundays_programming_as_of_s" (
  "time" text,
  "show_name" text,
  "local_networked" text,
  "ad_freq" text,
  "news_freq" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the news frequency for the show Locker Room?`:
```sql
                SELECT "news_freq" FROM "saturday_and_sundays_programming_as_of_s" WHERE "show_name"='locker room';
```
## Task
Generate a SQL query to answer the following question:
`What is the local/networked value for the show with an ad frequency of N/A?`

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

CREATE TABLE "saturday_and_sundays_programming_as_of_s" (
  "time" text,
  "show_name" text,
  "local_networked" text,
  "ad_freq" text,
  "news_freq" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the local/networked value for the show with an ad frequency of N/A?`:
```sql
                SELECT "local_networked" FROM "saturday_and_sundays_programming_as_of_s" WHERE "ad_freq"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`When france had a rank larger than 2, what was their time?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `When france had a rank larger than 2, what was their time?`:
```sql
                SELECT "time" FROM "heat_2" WHERE "rank">2 AND "country"='france';
```
## Task
Generate a SQL query to answer the following question:
`What was the time for the country of kazakhstan?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time for the country of kazakhstan?`:
```sql
                SELECT "time" FROM "heat_2" WHERE "country"='kazakhstan';
```
## Task
Generate a SQL query to answer the following question:
`What athletes represented the country of germany?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What athletes represented the country of germany?`:
```sql
                SELECT "athletes" FROM "heat_2" WHERE "country"='germany';
```
## Task
Generate a SQL query to answer the following question:
`What was the rank for the finish time of 1:42.054?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rank for the finish time of 1:42.054?`:
```sql
                SELECT AVG("rank") FROM "heat_2" WHERE "time"='1:42.054';
```
## Task
Generate a SQL query to answer the following question:
`Which country had a rank smaller than 7 and a time of 1:43.189?`

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

CREATE TABLE "heat_2" (
  "rank" real,
  "athletes" text,
  "country" text,
  "time" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country had a rank smaller than 7 and a time of 1:43.189?`:
```sql
                SELECT "country" FROM "heat_2" WHERE "rank"<7 AND "time"='1:43.189';
```
## Task
Generate a SQL query to answer the following question:
`what is the club when the runners-up is 1 and the last final won is 1999?`

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

CREATE TABLE "results_by_team" (
  "club" text,
  "winners" real,
  "last_final_won" text,
  "runners_up" real,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the club when the runners-up is 1 and the last final won is 1999?`:
```sql
                SELECT "club" FROM "results_by_team" WHERE "runners_up"=1 AND "last_final_won"='1999';
```
## Task
Generate a SQL query to answer the following question:
`what is the last final won when runners-up is 1 and club is rijeka?`

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

CREATE TABLE "results_by_team" (
  "club" text,
  "winners" real,
  "last_final_won" text,
  "runners_up" real,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the last final won when runners-up is 1 and club is rijeka?`:
```sql
                SELECT "last_final_won" FROM "results_by_team" WHERE "runners_up"=1 AND "club"='rijeka';
```
## Task
Generate a SQL query to answer the following question:
`How many times is runners-up less than 0?`

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

CREATE TABLE "results_by_team" (
  "club" text,
  "winners" real,
  "last_final_won" text,
  "runners_up" real,
  "last_final_lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is runners-up less than 0?`:
```sql
                SELECT COUNT("winners") FROM "results_by_team" WHERE "runners_up"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many games have a Result of 4–0, and an Attendance larger than 12,256?`

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

CREATE TABLE "football_league_division_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games have a Result of 4–0, and an Attendance larger than 12,256?`:
```sql
                SELECT COUNT("game") FROM "football_league_division_two" WHERE "result"='4–0' AND "attendance">'12,256';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Game larger than 6, and an Attendance larger than 12,782, and a Date of 5 december 1987?`

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

CREATE TABLE "football_league_division_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Game larger than 6, and an Attendance larger than 12,782, and a Date of 5 december 1987?`:
```sql
                SELECT "result" FROM "football_league_division_two" WHERE "game">6 AND "attendance">'12,782' AND "date"='5 december 1987';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?`

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

CREATE TABLE "football_league_division_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?`:
```sql
                SELECT "result" FROM "football_league_division_two" WHERE "venue"='away' AND "game"<43 AND "opponent"='bournemouth';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Venue of home, and a Date of 3 october 1987?`

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

CREATE TABLE "football_league_division_two" (
  "game" real,
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Venue of home, and a Date of 3 october 1987?`:
```sql
                SELECT "result" FROM "football_league_division_two" WHERE "venue"='home' AND "date"='3 october 1987';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of 1993?`

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

CREATE TABLE "doubles" (
  "location" text,
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of 1993?`:
```sql
                SELECT "score" FROM "doubles" WHERE "year"='1993';
```
## Task
Generate a SQL query to answer the following question:
`What is the Name when the runner-up was Sania Mirza Elena Vesnina?`

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

CREATE TABLE "doubles" (
  "location" text,
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Name when the runner-up was Sania Mirza Elena Vesnina?`:
```sql
                SELECT "name" FROM "doubles" WHERE "runner_up"='sania mirza elena vesnina';
```
## Task
Generate a SQL query to answer the following question:
`What is the name with a Score of 6–3, 6–3?`

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

CREATE TABLE "doubles" (
  "location" text,
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name with a Score of 6–3, 6–3?`:
```sql
                SELECT "name" FROM "doubles" WHERE "score"='6–3, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`What was the location in 2009?`

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

CREATE TABLE "doubles" (
  "location" text,
  "year" text,
  "champion" text,
  "runner_up" text,
  "score" text,
  "name" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location in 2009?`:
```sql
                SELECT "location" FROM "doubles" WHERE "year"='2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the railway number of a D(rebuild) class?`

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

CREATE TABLE "first_conversion_period_1867_1887" (
  "class" text,
  "railway_number_s" text,
  "quantity_rebuilt" real,
  "rebuild_year_s" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the railway number of a D(rebuild) class?`:
```sql
                SELECT "railway_number_s" FROM "first_conversion_period_1867_1887" WHERE "class"='d(rebuild)';
```
## Task
Generate a SQL query to answer the following question:
`What the least quantity having a T2A class?`

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

CREATE TABLE "first_conversion_period_1867_1887" (
  "class" text,
  "railway_number_s" text,
  "quantity_rebuilt" real,
  "rebuild_year_s" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What the least quantity having a T2A class?`:
```sql
                SELECT MIN("quantity_rebuilt") FROM "first_conversion_period_1867_1887" WHERE "class"='t2a';
```
## Task
Generate a SQL query to answer the following question:
`Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which lane did the swimmer who had a Reaction time of 0.185 and a time of 20.9 swim in?`:
```sql
                SELECT SUM("lane") FROM "heat_3" WHERE "react"=0.185 AND "time"<20.9;
```
## Task
Generate a SQL query to answer the following question:
`What was the 200-metre time for the swimmer from Slovenia in lane 9?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 200-metre time for the swimmer from Slovenia in lane 9?`:
```sql
                SELECT COUNT("time") FROM "heat_3" WHERE "nationality"='slovenia' AND "lane"<9;
```
## Task
Generate a SQL query to answer the following question:
`Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?`

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

CREATE TABLE "heat_3" (
  "rank" real,
  "lane" real,
  "athlete" text,
  "nationality" text,
  "time" real,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the swimmer from Dominica who had a time of 21.2 and swam in lane 7?`:
```sql
                SELECT "athlete" FROM "heat_3" WHERE "time"<21.2 AND "lane"<7 AND "nationality"='dominica';
```
## Task
Generate a SQL query to answer the following question:
`What player had a pick higher than 53, and a position of defensive tackle?`

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

CREATE TABLE "seventh_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had a pick higher than 53, and a position of defensive tackle?`:
```sql
                SELECT "player" FROM "seventh_round" WHERE "pick">53 AND "position"='defensive tackle';
```
## Task
Generate a SQL query to answer the following question:
`What team is Jim Garcia category:Articles with Hcards on?`

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

CREATE TABLE "seventh_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is Jim Garcia category:Articles with Hcards on?`:
```sql
                SELECT "team" FROM "seventh_round" WHERE "player"='jim garcia category:articles with hcards';
```
## Task
Generate a SQL query to answer the following question:
`Who is the pick from the Purdue College?`

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

CREATE TABLE "seventh_round" (
  "pick" real,
  "team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the pick from the Purdue College?`:
```sql
                SELECT "pick" FROM "seventh_round" WHERE "college"='purdue';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "marcin_do_ga_pol" text,
  "199kg" text,
  "w_adys_awowo_poland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Marcin Dołęga ( POL )when the world record shows olympic record, and a Snatch of total?`:
```sql
                SELECT "marcin_do_ga_pol" FROM "records" WHERE "world_record"='olympic record' AND "snatch"='total';
```
## Task
Generate a SQL query to answer the following question:
`What is the snatch when Marcin Dołęga ( POL ) was 430kg?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "marcin_do_ga_pol" text,
  "199kg" text,
  "w_adys_awowo_poland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the snatch when Marcin Dołęga ( POL ) was 430kg?`:
```sql
                SELECT "snatch" FROM "records" WHERE "marcin_do_ga_pol"='430kg';
```
## Task
Generate a SQL query to answer the following question:
`What shows for Władysławowo, Poland when the world record was clean & jerk?`

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

CREATE TABLE "records" (
  "world_record" text,
  "snatch" text,
  "marcin_do_ga_pol" text,
  "199kg" text,
  "w_adys_awowo_poland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for Władysławowo, Poland when the world record was clean & jerk?`:
```sql
                SELECT "w_adys_awowo_poland" FROM "records" WHERE "world_record"='clean & jerk';
```