cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`NJame the total number of population for towns/villages for 217`

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

CREATE TABLE "table1_16278825_1" (
  "name_of_county" text,
  "county_seat" text,
  "area_km" real,
  "population" real,
  "population_density" real,
  "towns_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `NJame the total number of population for towns/villages for 217`:
```sql
                SELECT COUNT("population") FROM "table1_16278825_1" WHERE "towns_villages"=217;
```
## Task
Generate a SQL query to answer the following question:
`Name the towns/villages for budapest`

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

CREATE TABLE "table1_16278825_1" (
  "name_of_county" text,
  "county_seat" text,
  "area_km" real,
  "population" real,
  "population_density" real,
  "towns_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the towns/villages for budapest`:
```sql
                SELECT "towns_villages" FROM "table1_16278825_1" WHERE "county_seat"='Budapest';
```
## Task
Generate a SQL query to answer the following question:
`Name the least area for vas`

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

CREATE TABLE "table1_16278825_1" (
  "name_of_county" text,
  "county_seat" text,
  "area_km" real,
  "population" real,
  "population_density" real,
  "towns_villages" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least area for vas`:
```sql
                SELECT MIN("area_km") FROM "table1_16278825_1" WHERE "name_of_county"='Vas';
```
## Task
Generate a SQL query to answer the following question:
`When the year was 1992, what were the points won?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "foursomes_w_l_h" text,
  "fourballs_w_l_h" text,
  "points_won" text,
  "points_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the year was 1992, what were the points won?`:
```sql
                SELECT "points_won" FROM "solheim_cup_record" WHERE "year"='1992';
```
## Task
Generate a SQL query to answer the following question:
`When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "foursomes_w_l_h" text,
  "fourballs_w_l_h" text,
  "points_won" text,
  "points_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the foursome was w-l-h is 1–0–0 won w/ p. creamer 3&2, what was the points %?`:
```sql
                SELECT "points_pct" FROM "solheim_cup_record" WHERE "foursomes_w_l_h"='1–0–0 won w/ P. Creamer 3&2';
```
## Task
Generate a SQL query to answer the following question:
`What was the foursome's record in 2002?`

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

CREATE TABLE "solheim_cup_record" (
  "year" text,
  "total_matches" real,
  "total_w_l_h" text,
  "singles_w_l_h" text,
  "foursomes_w_l_h" text,
  "fourballs_w_l_h" text,
  "points_won" text,
  "points_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the foursome's record in 2002?`:
```sql
                SELECT "foursomes_w_l_h" FROM "solheim_cup_record" WHERE "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What was the length time of the 3.5 release?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" text,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "timeline" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the length time of the 3.5 release?`:
```sql
                SELECT "length" FROM "external_links" WHERE "release"='3.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the 1.1 realease?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" text,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "timeline" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the 1.1 realease?`:
```sql
                SELECT "title" FROM "external_links" WHERE "release"='1.1';
```
## Task
Generate a SQL query to answer the following question:
`Under what series was the 3.5 release?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" text,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "timeline" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Under what series was the 3.5 release?`:
```sql
                SELECT "series" FROM "external_links" WHERE "release"='3.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the releases number under Season 2?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" text,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "timeline" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the releases number under Season 2?`:
```sql
                SELECT "release" FROM "external_links" WHERE "timeline"='Season 2';
```
## Task
Generate a SQL query to answer the following question:
`Who was the director of the audiobook released August 31, 2009?`

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

CREATE TABLE "external_links" (
  "title" text,
  "series" text,
  "release" text,
  "featuring" text,
  "writer" text,
  "director" text,
  "length" text,
  "timeline" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the director of the audiobook released August 31, 2009?`:
```sql
                SELECT "director" FROM "external_links" WHERE "release_date"='August 31, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the capital of Bungoma county?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capital of Bungoma county?`:
```sql
                SELECT "capital" FROM "table1_16278894_1" WHERE "county"='Bungoma';
```
## Task
Generate a SQL query to answer the following question:
`What is the capital of Uasin Gishu county?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the capital of Uasin Gishu county?`:
```sql
                SELECT "capital" FROM "table1_16278894_1" WHERE "county"='Uasin Gishu';
```
## Task
Generate a SQL query to answer the following question:
`In what former province was the area 694.9 kilometers squared?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what former province was the area 694.9 kilometers squared?`:
```sql
                SELECT "former_province" FROM "table1_16278894_1" WHERE "area_km_2"='694.9';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers were listed under area with a population of 240075 as of 2009?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers were listed under area with a population of 240075 as of 2009?`:
```sql
                SELECT COUNT("area_km_2") FROM "table1_16278894_1" WHERE "population_census_2009"=240075;
```
## Task
Generate a SQL query to answer the following question:
`What was the population in Kisumu county as of 2009?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population in Kisumu county as of 2009?`:
```sql
                SELECT "population_census_2009" FROM "table1_16278894_1" WHERE "county"='Kisumu';
```
## Task
Generate a SQL query to answer the following question:
`What capital's county had a population of 730129 as of 2009?`

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

CREATE TABLE "table1_16278894_1" (
  "code" real,
  "county" text,
  "former_province" text,
  "area_km_2" text,
  "population_census_2009" real,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What capital's county had a population of 730129 as of 2009?`:
```sql
                SELECT "capital" FROM "table1_16278894_1" WHERE "population_census_2009"=730129;
```
## Task
Generate a SQL query to answer the following question:
`Name the dates for margin of victory being 5 strokes`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" real,
  "to_par" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse_us" real,
  "winners_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the dates for margin of victory being 5 strokes`:
```sql
                SELECT COUNT("dates") FROM "winners" WHERE "margin_of_victory"='5 strokes';
```
## Task
Generate a SQL query to answer the following question:
`Name the champion for  london hunt and country club ( london , on )`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" real,
  "to_par" text,
  "margin_of_victory" text,
  "tournament_location" text,
  "purse_us" real,
  "winners_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the champion for  london hunt and country club ( london , on )`:
```sql
                SELECT "champion" FROM "winners" WHERE "tournament_location"='London Hunt and Country Club ( London , ON )';
```
## Task
Generate a SQL query to answer the following question:
`What was the evening gown score for the woman who scored 7.600 (9) in her interview?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the evening gown score for the woman who scored 7.600 (9) in her interview?`:
```sql
                SELECT "evening_gown" FROM "final_competition" WHERE "interview"='7.600 (9)';
```
## Task
Generate a SQL query to answer the following question:
`What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the swimsuit score for the one who had a semifinal average of 8.759 (5)?`:
```sql
                SELECT "swimsuit" FROM "final_competition" WHERE "semifinal_average"='8.759 (5)';
```
## Task
Generate a SQL query to answer the following question:
`What was the evening gown score for the one who had a preliminary average of 8.121 (8)?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the evening gown score for the one who had a preliminary average of 8.121 (8)?`:
```sql
                SELECT "evening_gown" FROM "final_competition" WHERE "preliminary_average"='8.121 (8)';
```
## Task
Generate a SQL query to answer the following question:
`What was the preliminary average for the one who had a semifinal average of 8.966 (3)?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the preliminary average for the one who had a semifinal average of 8.966 (3)?`:
```sql
                SELECT "preliminary_average" FROM "final_competition" WHERE "semifinal_average"='8.966 (3)';
```
## Task
Generate a SQL query to answer the following question:
`What was the preliminary average for Miss Mississippi?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the preliminary average for Miss Mississippi?`:
```sql
                SELECT "preliminary_average" FROM "final_competition" WHERE "state"='Mississippi';
```
## Task
Generate a SQL query to answer the following question:
`What was the preliminary average for Miss Maryland?`

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

CREATE TABLE "final_competition" (
  "state" text,
  "preliminary_average" text,
  "interview" text,
  "swimsuit" text,
  "evening_gown" text,
  "semifinal_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the preliminary average for Miss Maryland?`:
```sql
                SELECT "preliminary_average" FROM "final_competition" WHERE "state"='Maryland';
```
## Task
Generate a SQL query to answer the following question:
`What day was the gross sales $1,271,451?`

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

CREATE TABLE "table1_16331025_2" (
  "dates_mdy" text,
  "position" real,
  "gross_sales" text,
  "tickets_sold_available" text,
  "sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was the gross sales $1,271,451?`:
```sql
                SELECT "dates_mdy" FROM "table1_16331025_2" WHERE "gross_sales"='$1,271,451';
```
## Task
Generate a SQL query to answer the following question:
`What is the sellout % when the gross sales is $1,727,400?`

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

CREATE TABLE "table1_16331025_2" (
  "dates_mdy" text,
  "position" real,
  "gross_sales" text,
  "tickets_sold_available" text,
  "sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sellout % when the gross sales is $1,727,400?`:
```sql
                SELECT "sellout_pct" FROM "table1_16331025_2" WHERE "gross_sales"='$1,727,400';
```
## Task
Generate a SQL query to answer the following question:
`Who many dates are in position 9 and the sellout is 81%?`

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

CREATE TABLE "table1_16331025_2" (
  "dates_mdy" text,
  "position" real,
  "gross_sales" text,
  "tickets_sold_available" text,
  "sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who many dates are in position 9 and the sellout is 81%?`:
```sql
                SELECT COUNT("dates_mdy") FROM "table1_16331025_2" WHERE "position"=9 AND "sellout_pct"='81%';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of tickets sold/available when the sellout is 82%?`

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

CREATE TABLE "table1_16331025_2" (
  "dates_mdy" text,
  "position" real,
  "gross_sales" text,
  "tickets_sold_available" text,
  "sellout_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of tickets sold/available when the sellout is 82%?`:
```sql
                SELECT COUNT("tickets_sold_available") FROM "table1_16331025_2" WHERE "sellout_pct"='82%';
```
## Task
Generate a SQL query to answer the following question:
`Name the probably futures for गरेस् gares 'may you do'`

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

CREATE TABLE "finite_forms_of_garnu_to_do" (
  "simple_present_future" text,
  "probable_future" text,
  "simple_past" text,
  "past_habitual" text,
  "injunctive" text,
  "imperative" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the probably futures for गरेस् gares 'may you do'`:
```sql
                SELECT "probable_future" FROM "finite_forms_of_garnu_to_do" WHERE "imperative"='गरेस् gares ''may you do''';
```
## Task
Generate a SQL query to answer the following question:
`Name the imperative for  गरिस् garis 'you did'`

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

CREATE TABLE "finite_forms_of_garnu_to_do" (
  "simple_present_future" text,
  "probable_future" text,
  "simple_past" text,
  "past_habitual" text,
  "injunctive" text,
  "imperative" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the imperative for  गरिस् garis 'you did'`:
```sql
                SELECT "imperative" FROM "finite_forms_of_garnu_to_do" WHERE "past_habitual"='गरिस् garis ''you did''';
```
## Task
Generate a SQL query to answer the following question:
`Name the past habitual for गर्छस् garchas 'you (will) do'`

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

CREATE TABLE "finite_forms_of_garnu_to_do" (
  "simple_present_future" text,
  "probable_future" text,
  "simple_past" text,
  "past_habitual" text,
  "injunctive" text,
  "imperative" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the past habitual for गर्छस् garchas 'you (will) do'`:
```sql
                SELECT "past_habitual" FROM "finite_forms_of_garnu_to_do" WHERE "probable_future"='गर्छस् garchas ''you (will) do''';
```
## Task
Generate a SQL query to answer the following question:
`Name the past habitual for  गर्छ garcha 'he does'`

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

CREATE TABLE "finite_forms_of_garnu_to_do" (
  "simple_present_future" text,
  "probable_future" text,
  "simple_past" text,
  "past_habitual" text,
  "injunctive" text,
  "imperative" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the past habitual for  गर्छ garcha 'he does'`:
```sql
                SELECT "past_habitual" FROM "finite_forms_of_garnu_to_do" WHERE "probable_future"='गर्छ garcha ''he does''';
```
## Task
Generate a SQL query to answer the following question:
`Name the injunctive for गर्यो garyo 'he did'`

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

CREATE TABLE "finite_forms_of_garnu_to_do" (
  "simple_present_future" text,
  "probable_future" text,
  "simple_past" text,
  "past_habitual" text,
  "injunctive" text,
  "imperative" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the injunctive for गर्यो garyo 'he did'`:
```sql
                SELECT "injunctive" FROM "finite_forms_of_garnu_to_do" WHERE "past_habitual"='गर्यो garyo ''he did''';
```
## Task
Generate a SQL query to answer the following question:
`How many years did he have an average finish of 29.2?`

### 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_10" 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 `How many years did he have an average finish of 29.2?`:
```sql
                SELECT COUNT("winnings") FROM "nascar_sprint_cup_series" WHERE "avg_finish"='29.2';
```
## Task
Generate a SQL query to answer the following question:
`How many years did he finish in 59th?`

### 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_10" 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 `How many years did he finish in 59th?`:
```sql
                SELECT COUNT("avg_start") FROM "nascar_sprint_cup_series" WHERE "position"='59th';
```
## Task
Generate a SQL query to answer the following question:
`How many instances do you see the year 2003?`

### 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_10" 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 `How many instances do you see the year 2003?`:
```sql
                SELECT COUNT("starts") FROM "nascar_sprint_cup_series" WHERE "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of top 10s when he finished in 63rd?`

### 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_10" 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 `What is the maximum number of top 10s when he finished in 63rd?`:
```sql
                SELECT MAX("top_10") FROM "nascar_sprint_cup_series" WHERE "position"='63rd';
```
## Task
Generate a SQL query to answer the following question:
`What are the average start(s) when he had $1,663,868?`

### 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_10" 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 `What are the average start(s) when he had $1,663,868?`:
```sql
                SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,663,868';
```
## Task
Generate a SQL query to answer the following question:
`What was the position in the season when the average start is 9.2?`

### 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 `What was the position in the season when the average start is 9.2?`:
```sql
                SELECT "position" FROM "nascar_camping_world_truck_series" WHERE "avg_start"='9.2';
```
## Task
Generate a SQL query to answer the following question:
`What is the average start for the season with $7,220 in winnings?`

### 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 `What is the average start for the season with $7,220 in winnings?`:
```sql
                SELECT "avg_start" FROM "nascar_camping_world_truck_series" WHERE "winnings"='$7,220';
```
## Task
Generate a SQL query to answer the following question:
`What are the winnings for the season where the average finish is 11.1?`

### 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 `What are the winnings for the season where the average finish is 11.1?`:
```sql
                SELECT "winnings" FROM "nascar_camping_world_truck_series" WHERE "avg_finish"='11.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of wins in the season with 22 starts?`

### 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 `What is the maximum number of wins in the season with 22 starts?`:
```sql
                SELECT MAX("wins") FROM "nascar_camping_world_truck_series" WHERE "starts"=22;
```
## Task
Generate a SQL query to answer the following question:
`What is the all home when all games percentage is .484?`

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

CREATE TABLE "final_standings" (
  "team" text,
  "acc_regular_season" text,
  "acc_pct" text,
  "acc_home" text,
  "acc_road" text,
  "all_games" text,
  "all_games_pct" text,
  "all_home" text,
  "all_road" text,
  "all_neutral" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the all home when all games percentage is .484?`:
```sql
                SELECT "all_home" FROM "final_standings" WHERE "all_games_pct"='.484';
```
## Task
Generate a SQL query to answer the following question:
`What is the acc percentage when all games percentage is .484?`

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

CREATE TABLE "final_standings" (
  "team" text,
  "acc_regular_season" text,
  "acc_pct" text,
  "acc_home" text,
  "acc_road" text,
  "all_games" text,
  "all_games_pct" text,
  "all_home" text,
  "all_road" text,
  "all_neutral" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the acc percentage when all games percentage is .484?`:
```sql
                SELECT "acc_pct" FROM "final_standings" WHERE "all_games_pct"='.484';
```
## Task
Generate a SQL query to answer the following question:
`What is the all games for Maryland?`

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

CREATE TABLE "final_standings" (
  "team" text,
  "acc_regular_season" text,
  "acc_pct" text,
  "acc_home" text,
  "acc_road" text,
  "all_games" text,
  "all_games_pct" text,
  "all_home" text,
  "all_road" text,
  "all_neutral" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the all games for Maryland?`:
```sql
                SELECT "all_games" FROM "final_standings" WHERE "team"='Maryland';
```
## Task
Generate a SQL query to answer the following question:
`What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fare to Kalamazoo during the time frame when Saginaw's was $481.39?`:
```sql
                SELECT "kalamazoo_azo" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$481.39';
```
## Task
Generate a SQL query to answer the following question:
`When Lansing's fare is $433.59, what is the Detroit fare?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Lansing's fare is $433.59, what is the Detroit fare?`:
```sql
                SELECT "detroit_dtw" FROM "average_domestic_passenger_fares_for_cap" WHERE "lansing_lan"='$433.59';
```
## Task
Generate a SQL query to answer the following question:
`At a Saginaw fare of $470.47, what is the fare to Lansing?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `At a Saginaw fare of $470.47, what is the fare to Lansing?`:
```sql
                SELECT "lansing_lan" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$470.47';
```
## Task
Generate a SQL query to answer the following question:
`During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the year when Lansing's fare is $433.59, what is the fare to Kalamazoo?`:
```sql
                SELECT "kalamazoo_azo" FROM "average_domestic_passenger_fares_for_cap" WHERE "lansing_lan"='$433.59';
```
## Task
Generate a SQL query to answer the following question:
`When Saginaw's fare is $470.47, what was the fare to Grand Rapids?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Saginaw's fare is $470.47, what was the fare to Grand Rapids?`:
```sql
                SELECT "grand_rapids_grr" FROM "average_domestic_passenger_fares_for_cap" WHERE "saginaw_mbs"='$470.47';
```
## Task
Generate a SQL query to answer the following question:
`When Grand Rapids's fare was $377.29, what is the fare to Detroit?`

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

CREATE TABLE "average_domestic_passenger_fares_for_cap" (
  "year" real,
  "lansing_lan" text,
  "detroit_dtw" text,
  "grand_rapids_grr" text,
  "flint_fnt" text,
  "kalamazoo_azo" text,
  "saginaw_mbs" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Grand Rapids's fare was $377.29, what is the fare to Detroit?`:
```sql
                SELECT "detroit_dtw" FROM "average_domestic_passenger_fares_for_cap" WHERE "grand_rapids_grr"='$377.29';
```
## Task
Generate a SQL query to answer the following question:
`Name the maximum enrollment for niagara university`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the maximum enrollment for niagara university`:
```sql
                SELECT MAX("enrollment") FROM "membership" WHERE "school"='Niagara University';
```
## Task
Generate a SQL query to answer the following question:
`Name the primary conference for st. bonaventure university`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the primary conference for st. bonaventure university`:
```sql
                SELECT "primary_conference" FROM "membership" WHERE "school"='St. Bonaventure University';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of nicknames for st. bonaventure university`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of nicknames for st. bonaventure university`:
```sql
                SELECT COUNT("nickname") FROM "membership" WHERE "school"='St. Bonaventure University';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of affiliation for enrollment being 14898`

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

CREATE TABLE "membership" (
  "school" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of affiliation for enrollment being 14898`:
```sql
                SELECT COUNT("affiliation") FROM "membership" WHERE "enrollment"=14898;
```
## Task
Generate a SQL query to answer the following question:
`what was the ACC home game record for the team who's ACC winning percentage was .813?`

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

CREATE TABLE "final_standings" (
  "team" text,
  "acc_regular_season" text,
  "acc_pct" text,
  "acc_home" text,
  "acc_road" text,
  "all_games" text,
  "all_games_pct" text,
  "all_home" text,
  "all_road" text,
  "all_neutral" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the ACC home game record for the team who's ACC winning percentage was .813?`:
```sql
                SELECT "acc_home" FROM "final_standings" WHERE "acc_pct"='.813';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the totle "tjockare än vatten"?`

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

CREATE TABLE "table1_16384596_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the totle "tjockare än vatten"?`:
```sql
                SELECT "directed_by" FROM "table1_16384596_4" WHERE "title"='\"Tjockare än vatten\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode for s02 e07?`

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

CREATE TABLE "table1_16384596_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode for s02 e07?`:
```sql
                SELECT "written_by" FROM "table1_16384596_4" WHERE "broadcast_order"='S02 E07';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode for s02 e08?`

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

CREATE TABLE "table1_16384596_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode for s02 e08?`:
```sql
                SELECT "directed_by" FROM "table1_16384596_4" WHERE "broadcast_order"='S02 E08';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with the production code 209?`

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

CREATE TABLE "table1_16384596_4" (
  "number_in_series" real,
  "broadcast_order" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with the production code 209?`:
```sql
                SELECT "directed_by" FROM "table1_16384596_4" WHERE "production_code"=209;
```
## Task
Generate a SQL query to answer the following question:
`How many schools have the team nickname bobcats? `

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many schools have the team nickname bobcats? `:
```sql
                SELECT COUNT("institution") FROM "current_teams" WHERE "team_nickname"='Bobcats';
```
## Task
Generate a SQL query to answer the following question:
`Which city has the team nickname bearcats? `

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has the team nickname bearcats? `:
```sql
                SELECT "location" FROM "current_teams" WHERE "team_nickname"='Bearcats';
```
## Task
Generate a SQL query to answer the following question:
`What year did the university of Pittsburgh school join the hockey league? `

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the university of Pittsburgh school join the hockey league? `:
```sql
                SELECT "joined_tschl" FROM "current_teams" WHERE "institution"='University of Pittsburgh';
```
## Task
Generate a SQL query to answer the following question:
`What's the earliest year anybody joined the hockey league? `

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the earliest year anybody joined the hockey league? `:
```sql
                SELECT MIN("joined_tschl") FROM "current_teams";
```
## Task
Generate a SQL query to answer the following question:
`Which city has the cincinnati hockey website?`

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has the cincinnati hockey website?`:
```sql
                SELECT "location" FROM "current_teams" WHERE "team_website"='Cincinnati Hockey';
```
## Task
Generate a SQL query to answer the following question:
`For the flyers, what's the minimum capacity? `

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

CREATE TABLE "current_teams" (
  "institution" text,
  "location" text,
  "team_nickname" text,
  "joined_tschl" real,
  "home_arena" text,
  "capacity" real,
  "team_website" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the flyers, what's the minimum capacity? `:
```sql
                SELECT MIN("capacity") FROM "current_teams" WHERE "team_nickname"='Flyers';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of pinyin where simplified is 河西区`

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

CREATE TABLE "subdivisions" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "area" text,
  "population" real,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of pinyin where simplified is 河西区`:
```sql
                SELECT COUNT("pinyin") FROM "subdivisions" WHERE "simplified"='河西区';
```
## Task
Generate a SQL query to answer the following question:
`Name the pinyin for where population is 44617`

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

CREATE TABLE "subdivisions" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "area" text,
  "population" real,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pinyin for where population is 44617`:
```sql
                SELECT "pinyin" FROM "subdivisions" WHERE "population"=44617;
```
## Task
Generate a SQL query to answer the following question:
`Name the pinyin for 487 area`

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

CREATE TABLE "subdivisions" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "area" text,
  "population" real,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the pinyin for 487 area`:
```sql
                SELECT "pinyin" FROM "subdivisions" WHERE "area"='487';
```
## Task
Generate a SQL query to answer the following question:
`Name the traditional for population 74779`

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

CREATE TABLE "subdivisions" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "area" text,
  "population" real,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the traditional for population 74779`:
```sql
                SELECT "traditional" FROM "subdivisions" WHERE "population"=74779;
```
## Task
Generate a SQL query to answer the following question:
`Name the english name for  崖城镇`

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

CREATE TABLE "subdivisions" (
  "english_name" text,
  "simplified" text,
  "traditional" text,
  "pinyin" text,
  "area" text,
  "population" real,
  "density" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the english name for  崖城镇`:
```sql
                SELECT "english_name" FROM "subdivisions" WHERE "simplified"='崖城镇';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for richmond`

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

CREATE TABLE "1st_round" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for richmond`:
```sql
                SELECT "date" FROM "1st_round" WHERE "away_team"='Richmond';
```
## Task
Generate a SQL query to answer the following question:
`Name the most crowd for saturday 16 february`

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

CREATE TABLE "1st_round" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most crowd for saturday 16 february`:
```sql
                SELECT MAX("crowd") FROM "1st_round" WHERE "date"='Saturday 16 February';
```
## Task
Generate a SQL query to answer the following question:
`What home team played the West Coast away team?`

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

CREATE TABLE "round_of_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" real,
  "date" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team played the West Coast away team?`:
```sql
                SELECT "home_team" FROM "round_of_16" WHERE "away_team"='West Coast';
```