cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall year?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall year?`:
```sql
                SELECT MIN("year") FROM "table1_16677738_1";
```
## Task
Generate a SQL query to answer the following question:
`When 70489 is without walls what is the inns of court and chancery?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 70489 is without walls what is the inns of court and chancery?`:
```sql
                SELECT "inns_of_court_and_chancery" FROM "table1_16677738_1" WHERE "without_the_walls"=70489;
```
## Task
Generate a SQL query to answer the following question:
`When within the walls is larger than 56174.0 what is the lowest amount without the walls?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When within the walls is larger than 56174.0 what is the lowest amount without the walls?`:
```sql
                SELECT MIN("without_the_walls") FROM "table1_16677738_1" WHERE "within_the_walls">56174.0;
```
## Task
Generate a SQL query to answer the following question:
`When 272966 is the tower division what is the highest holborn division?`

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

CREATE TABLE "table1_16677738_1" (
  "year" real,
  "edmonton_hundred" real,
  "elthorne_hundred" real,
  "gore_hundred" real,
  "isleworth_hundred" real,
  "holborn_division" real,
  "finsbury_division" real,
  "kensington_division" real,
  "tower_division" real,
  "spelthorne_hundred" real,
  "within_the_walls" real,
  "without_the_walls" real,
  "inns_of_court_and_chancery" real,
  "westminster_city_and_liberty" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 272966 is the tower division what is the highest holborn division?`:
```sql
                SELECT MAX("holborn_division") FROM "table1_16677738_1" WHERE "tower_division"=272966;
```
## Task
Generate a SQL query to answer the following question:
`How many stolen ends against where there when Thomas Dufour was skip? `

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

CREATE TABLE "standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends_f_a" text,
  "stolen_ends_for" real,
  "stolen_ends_against" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many stolen ends against where there when Thomas Dufour was skip? `:
```sql
                SELECT "stolen_ends_against" FROM "standings" WHERE "skip"='Thomas Dufour';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of stolen ends against for Japan? `

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

CREATE TABLE "standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends_f_a" text,
  "stolen_ends_for" real,
  "stolen_ends_against" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of stolen ends against for Japan? `:
```sql
                SELECT MAX("stolen_ends_against") FROM "standings" WHERE "country"='Japan';
```
## Task
Generate a SQL query to answer the following question:
`Who was the skip when the stolen ends against was 13? `

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

CREATE TABLE "standings" (
  "country" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends_f_a" text,
  "stolen_ends_for" real,
  "stolen_ends_against" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the skip when the stolen ends against was 13? `:
```sql
                SELECT "skip" FROM "standings" WHERE "stolen_ends_against"=13;
```
## Task
Generate a SQL query to answer the following question:
`Name the most glucolse where cl is 154`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most glucolse where cl is 154`:
```sql
                SELECT MAX("glucose_mg_dl") FROM "composition_of_common_crystalloid_soluti" WHERE "cl_mmol_l"=154;
```
## Task
Generate a SQL query to answer the following question:
`Name the other name where glucose is 5000`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the other name where glucose is 5000`:
```sql
                SELECT "other_name" FROM "composition_of_common_crystalloid_soluti" WHERE "glucose_mg_dl"=5000;
```
## Task
Generate a SQL query to answer the following question:
`Name the other name where na plus is 77`

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

CREATE TABLE "composition_of_common_crystalloid_soluti" (
  "solution" text,
  "other_name" text,
  "na_mmol_l" real,
  "cl_mmol_l" real,
  "glucose_mmol_l" real,
  "glucose_mg_dl" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the other name where na plus is 77`:
```sql
                SELECT "other_name" FROM "composition_of_common_crystalloid_soluti" WHERE "na_mmol_l"=77;
```
## Task
Generate a SQL query to answer the following question:
`Who are the batting partners for the 1997 season?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the batting partners for the 1997 season?`:
```sql
                SELECT "batting_partners" FROM "test_record_partnerships_by_wicket" WHERE "season"='1997';
```
## Task
Generate a SQL query to answer the following question:
`Which season reported wickets of 7th?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season reported wickets of 7th?`:
```sql
                SELECT "season" FROM "test_record_partnerships_by_wicket" WHERE "wicket"='7th';
```
## Task
Generate a SQL query to answer the following question:
`Which team is 9th in wickets?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is 9th in wickets?`:
```sql
                SELECT "fielding_team" FROM "test_record_partnerships_by_wicket" WHERE "wicket"='9th';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue for batting partners Mahela Jayawardene and Prasanna Jayawardene`:
```sql
                SELECT "venue" FROM "test_record_partnerships_by_wicket" WHERE "batting_partners"='Mahela Jayawardene and Prasanna Jayawardene';
```
## Task
Generate a SQL query to answer the following question:
`How many teams are listed for 3rd wickets?`

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

CREATE TABLE "test_record_partnerships_by_wicket" (
  "wicket" text,
  "runs" real,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams are listed for 3rd wickets?`:
```sql
                SELECT COUNT("batting_team") FROM "test_record_partnerships_by_wicket" WHERE "wicket"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`How many total batting partners were most successful in the 2006 season?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total batting partners were most successful in the 2006 season?`:
```sql
                SELECT COUNT("batting_partners") FROM "top_10_test_partnerships_for_any_wicket" WHERE "season"='2006';
```
## Task
Generate a SQL query to answer the following question:
`What batting partners batted for pakistan?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners batted for pakistan?`:
```sql
                SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "batting_team"='Pakistan';
```
## Task
Generate a SQL query to answer the following question:
`How many runs when bangladesh was the fielding team?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runs when bangladesh was the fielding team?`:
```sql
                SELECT "runs" FROM "top_10_test_partnerships_for_any_wicket" WHERE "fielding_team"='Bangladesh';
```
## Task
Generate a SQL query to answer the following question:
`What are the wickets when there are 451 runs and india is the fielding team?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the wickets when there are 451 runs and india is the fielding team?`:
```sql
                SELECT "wicket" FROM "top_10_test_partnerships_for_any_wicket" WHERE "runs"='451' AND "fielding_team"='India';
```
## Task
Generate a SQL query to answer the following question:
`What batting partners played in sydney?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners played in sydney?`:
```sql
                SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "venue"='Sydney';
```
## Task
Generate a SQL query to answer the following question:
`What batting partners were the most successful in 2004?`

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

CREATE TABLE "top_10_test_partnerships_for_any_wicket" (
  "runs" text,
  "wicket" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What batting partners were the most successful in 2004?`:
```sql
                SELECT "batting_partners" FROM "top_10_test_partnerships_for_any_wicket" WHERE "season"='2004';
```
## Task
Generate a SQL query to answer the following question:
`Name the falcons points for record of 3-2`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the falcons points for record of 3-2`:
```sql
                SELECT "falcons_points" FROM "schedule" WHERE "record"='3-2';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for game 9`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for game 9`:
```sql
                SELECT "date" FROM "schedule" WHERE "game"=9;
```
## Task
Generate a SQL query to answer the following question:
`Name the max game for attendance being 54774`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max game for attendance being 54774`:
```sql
                SELECT MAX("game") FROM "schedule" WHERE "attendance"=54774;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of results for new orleans saints`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of results for new orleans saints`:
```sql
                SELECT COUNT("result") FROM "schedule" WHERE "opponent"='New Orleans Saints';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of opponents for the game recorded as 1-3?`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of opponents for the game recorded as 1-3?`:
```sql
                SELECT COUNT("opponent") FROM "schedule" WHERE "record"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the 1978 Atlanta Falcons season when the record was 1-2?`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the 1978 Atlanta Falcons season when the record was 1-2?`:
```sql
                SELECT "result" FROM "schedule" WHERE "record"='1-2';
```
## Task
Generate a SQL query to answer the following question:
`How many points did the Falcons score when the record was 4-4? `

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the Falcons score when the record was 4-4? `:
```sql
                SELECT "falcons_points" FROM "schedule" WHERE "record"='4-4';
```
## Task
Generate a SQL query to answer the following question:
`How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents were there for the game recorded as 6-4 in the Atlanta Falcons 1978 season?`:
```sql
                SELECT COUNT("opponents") FROM "schedule" WHERE "record"='6-4';
```
## Task
Generate a SQL query to answer the following question:
`In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?`

### 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,
  "falcons_points" real,
  "opponents" real,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?`:
```sql
                SELECT MIN("falcons_points") FROM "schedule" WHERE "opponent"='San Francisco 49ers';
```
## Task
Generate a SQL query to answer the following question:
`How many points did kiefer-bos-castrol honda have?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" real,
  "class" text,
  "team" text,
  "motorcycle" text,
  "type" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real,
  "pts" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did kiefer-bos-castrol honda have?`:
```sql
                SELECT "pts" FROM "by_seasons_and_teams" WHERE "team"='Kiefer-Bos-Castrol Honda';
```
## Task
Generate a SQL query to answer the following question:
`What result did the ktm motorcycle achieve?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" real,
  "class" text,
  "team" text,
  "motorcycle" text,
  "type" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real,
  "pts" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What result did the ktm motorcycle achieve?`:
```sql
                SELECT "position" FROM "by_seasons_and_teams" WHERE "motorcycle"='KTM';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of poles?`

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

CREATE TABLE "by_seasons_and_teams" (
  "season" real,
  "class" text,
  "team" text,
  "motorcycle" text,
  "type" text,
  "races" real,
  "wins" real,
  "podiums" real,
  "poles" real,
  "fastest_laps" real,
  "pts" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of poles?`:
```sql
                SELECT MIN("poles") FROM "by_seasons_and_teams";
```
## Task
Generate a SQL query to answer the following question:
`Name the least top 5`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least top 5`:
```sql
                SELECT MIN("top_5") FROM "nascar_sprint_cup_series";
```
## Task
Generate a SQL query to answer the following question:
`name the top 5 where the winnings is $52,595`

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

CREATE TABLE "nascar_camping_world_truck_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the top 5 where the winnings is $52,595`:
```sql
                SELECT "top_5" FROM "nascar_camping_world_truck_series" WHERE "winnings"='$52,595';
```
## Task
Generate a SQL query to answer the following question:
`name the total number of top 10 also where the position is 51st `

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

CREATE TABLE "nascar_camping_world_truck_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the total number of top 10 also where the position is 51st `:
```sql
                SELECT COUNT("top_10") FROM "nascar_camping_world_truck_series" WHERE "position"='51st';
```
## Task
Generate a SQL query to answer the following question:
`name all the winnings that the start appears to be 7`

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

CREATE TABLE "nascar_camping_world_truck_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `name all the winnings that the start appears to be 7`:
```sql
                SELECT "winnings" FROM "nascar_camping_world_truck_series" WHERE "starts"=7;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of winnings for 1995`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of winnings for 1995`:
```sql
                SELECT COUNT("winnings") FROM "nascar_nationwide_series" WHERE "year"=1995;
```
## Task
Generate a SQL query to answer the following question:
`Name the max top 5 for 5.0 avg finish`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max top 5 for 5.0 avg finish`:
```sql
                SELECT MAX("top_5") FROM "nascar_nationwide_series" WHERE "avg_finish"='5.0';
```
## Task
Generate a SQL query to answer the following question:
`Name the poles for avg finish is 26.8`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the poles for avg finish is 26.8`:
```sql
                SELECT "poles" FROM "nascar_nationwide_series" WHERE "avg_finish"='26.8';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of teams for top 10 being 5`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of teams for top 10 being 5`:
```sql
                SELECT COUNT("team_s") FROM "nascar_nationwide_series" WHERE "top_10"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the mens u20 recorded when the Womens 40 were Sydney Scorpions def North Queensland Cyclones?`:
```sql
                SELECT COUNT("mens_u20") FROM "results_by_year" WHERE "womens_40"='Sydney Scorpions def North Queensland Cyclones';
```
## Task
Generate a SQL query to answer the following question:
`What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks?`:
```sql
                SELECT "mens_40" FROM "results_by_year" WHERE "mens_u20"='Southern Suns def Gold Coast Sharks';
```
## Task
Generate a SQL query to answer the following question:
`What were the results of the mens open when the  womens 40 was Sydney Scorpions defeated Hunter Hornets?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of the mens open when the  womens 40 was Sydney Scorpions defeated Hunter Hornets?`:
```sql
                SELECT "mens_open" FROM "results_by_year" WHERE "womens_40"='Sydney Scorpions defeated Hunter Hornets';
```
## Task
Generate a SQL query to answer the following question:
`What were the results of the womens u20 when the mens 45 was  Sunwest Razorbacks def Northern Eagles?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of the womens u20 when the mens 45 was  Sunwest Razorbacks def Northern Eagles?`:
```sql
                SELECT "womens_u20" FROM "results_by_year" WHERE "mens_45"='SunWest Razorbacks def Northern Eagles';
```
## Task
Generate a SQL query to answer the following question:
`What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mens 45 when mens 40 was Sunwest Razorbacks def Sydney Mets?`:
```sql
                SELECT "mens_45" FROM "results_by_year" WHERE "mens_40"='SunWest Razorbacks def Sydney Mets';
```
## Task
Generate a SQL query to answer the following question:
`What was the mens open when the mens u20 was  Qld Country Rustlers def Southern Suns?`

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

CREATE TABLE "results_by_year" (
  "year" real,
  "mens_open" text,
  "womens_open" text,
  "mixed_open" text,
  "mens_u20" text,
  "womens_u20" text,
  "senior_mixed" text,
  "mens_30" text,
  "womens_30" text,
  "mens_35" text,
  "womens_35" text,
  "mens_40" text,
  "womens_40" text,
  "mens_45" text,
  "mens_50" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mens open when the mens u20 was  Qld Country Rustlers def Southern Suns?`:
```sql
                SELECT "mens_open" FROM "results_by_year" WHERE "mens_u20"='Qld Country Rustlers def Southern Suns';
```
## Task
Generate a SQL query to answer the following question:
`What date was the opponent the Los Angeles Raiders?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the opponent the Los Angeles Raiders?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='Los Angeles Raiders';
```
## Task
Generate a SQL query to answer the following question:
`How many games were played at Cleveland Stadium?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played at Cleveland Stadium?`:
```sql
                SELECT COUNT("date") FROM "schedule" WHERE "game_site"='Cleveland Stadium';
```
## Task
Generate a SQL query to answer the following question:
`In what week number was the attendance 74716?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what week number was the attendance 74716?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"=74716;
```
## Task
Generate a SQL query to answer the following question:
`What is the region where Iquitos is located?`

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

CREATE TABLE "by_population" (
  "province" text,
  "population" real,
  "region" text,
  "name_of_city" text,
  "districts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region where Iquitos is located?`:
```sql
                SELECT "region" FROM "by_population" WHERE "name_of_city"='Iquitos';
```
## Task
Generate a SQL query to answer the following question:
`What is the region containing the Constitutional Province of Callao?`

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

CREATE TABLE "by_population" (
  "province" text,
  "population" real,
  "region" text,
  "name_of_city" text,
  "districts" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region containing the Constitutional Province of Callao?`:
```sql
                SELECT "region" FROM "by_population" WHERE "province"='Constitutional Province of Callao';
```
## Task
Generate a SQL query to answer the following question:
`How did the game end against the New Orleans Saints?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How did the game end against the New Orleans Saints?`:
```sql
                SELECT "result" FROM "schedule" WHERE "opponent"='New Orleans Saints';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks had an attendance of 60038?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks had an attendance of 60038?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance"=60038;
```
## Task
Generate a SQL query to answer the following question:
`Name the least points for daniël willemsen / kenny van gaalen`

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

CREATE TABLE "the_2012_season" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least points for daniël willemsen / kenny van gaalen`:
```sql
                SELECT MIN("points") FROM "the_2012_season" WHERE "driver_passenger"='Daniël Willemsen / Kenny van Gaalen';
```
## Task
Generate a SQL query to answer the following question:
`Name the driver passenger for position 4`

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

CREATE TABLE "the_2012_season" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver passenger for position 4`:
```sql
                SELECT "driver_passenger" FROM "the_2012_season" WHERE "position"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for position 8`

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

CREATE TABLE "the_2011_season" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver/passenger for position 8`:
```sql
                SELECT "driver_passenger" FROM "the_2011_season" WHERE "position"=8;
```
## Task
Generate a SQL query to answer the following question:
`Name the driver/passenger for 6 position`

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

CREATE TABLE "the_2011_season" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the driver/passenger for 6 position`:
```sql
                SELECT "driver_passenger" FROM "the_2011_season" WHERE "position"=6;
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the total attendance was 16597?`

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

CREATE TABLE "table1_1672976_5" (
  "date" text,
  "time" text,
  "acc_team" text,
  "big_ten_team" text,
  "location" text,
  "television" text,
  "attendance" real,
  "winner" text,
  "challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the total attendance was 16597?`:
```sql
                SELECT "winner" FROM "table1_1672976_5" WHERE "attendance"=16597;
```
## Task
Generate a SQL query to answer the following question:
`What is the socket for microprocessors with a frequency of 1.3 ghz?`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the socket for microprocessors with a frequency of 1.3 ghz?`:
```sql
                SELECT "socket" FROM "45_nm" WHERE "frequency"='1.3 GHz';
```
## Task
Generate a SQL query to answer the following question:
`For a release price of $72, what is the TDP of the microprocessor?`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a release price of $72, what is the TDP of the microprocessor?`:
```sql
                SELECT "tdp" FROM "45_nm" WHERE "release_price_usd"='$72';
```
## Task
Generate a SQL query to answer the following question:
`For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU  frequencies?`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a processor with part number cy80632007221ab and TDP of 3.6 W, What are the available GPU  frequencies?`:
```sql
                SELECT "gpu_frequency" FROM "45_nm" WHERE "tdp"='3.6 W' AND "part_number_s"='CY80632007221AB';
```
## Task
Generate a SQL query to answer the following question:
`For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `For a processor with model number atom e665c and a TDP of 3.6 W, what is the sSpec number?`:
```sql
                SELECT "s_spec_number" FROM "45_nm" WHERE "tdp"='3.6 W' AND "model_number"='Atom E665C';
```
## Task
Generate a SQL query to answer the following question:
`What is the release price for a processor with part number  cy80632007227ab?`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release price for a processor with part number  cy80632007227ab?`:
```sql
                SELECT "release_price_usd" FROM "45_nm" WHERE "part_number_s"='CY80632007227AB';
```
## Task
Generate a SQL query to answer the following question:
`Name the fsb for atom z540`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "fsb" text,
  "mult" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fsb for atom z540`:
```sql
                SELECT "fsb" FROM "45_nm" WHERE "model_number"='Atom Z540';
```
## Task
Generate a SQL query to answer the following question:
`Name the frequency for part number of ac80566ue041dw`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "fsb" text,
  "mult" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the frequency for part number of ac80566ue041dw`:
```sql
                SELECT "frequency" FROM "45_nm" WHERE "part_number_s"='AC80566UE041DW';
```
## Task
Generate a SQL query to answer the following question:
`Name the memory for part number of  ct80618003201aa`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for part number of  ct80618003201aa`:
```sql
                SELECT "memory" FROM "45_nm" WHERE "part_number_s"='CT80618003201AA';
```
## Task
Generate a SQL query to answer the following question:
`Name the memory for meodel number for atom e640t`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for meodel number for atom e640t`:
```sql
                SELECT "memory" FROM "45_nm" WHERE "model_number"='Atom E640T';
```
## Task
Generate a SQL query to answer the following question:
`Name the memory for frequency of 1.6 ghz`

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

CREATE TABLE "45_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "gpu_frequency" text,
  "l2_cache" text,
  "i_o_bus" text,
  "memory" text,
  "voltage" text,
  "tdp" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the memory for frequency of 1.6 ghz`:
```sql
                SELECT "memory" FROM "45_nm" WHERE "frequency"='1.6 GHz';
```
## Task
Generate a SQL query to answer the following question:
`Who won the game where the Challenge Leader is ACC (2-1)?`

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

CREATE TABLE "table1_1672976_6" (
  "date" text,
  "time" text,
  "acc_team" text,
  "big_ten_team" text,
  "location" text,
  "television" text,
  "attendance" real,
  "winner" text,
  "challenge_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the game where the Challenge Leader is ACC (2-1)?`:
```sql
                SELECT "winner" FROM "table1_1672976_6" WHERE "challenge_leader"='ACC (2-1)';
```