cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who won the Suntree Seniors Classic?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the Suntree Seniors Classic?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "tournament"='Suntree Seniors Classic';
```
## Task
Generate a SQL query to answer the following question:
`How much was the prize in the tournament where the winning score was 289 (9)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much was the prize in the tournament where the winning score was 289 (9)?`:
```sql
                SELECT "purse" FROM "tournament_results" WHERE "score"='289 (9)';
```
## Task
Generate a SQL query to answer the following question:
`When was the tournament that was won with a score of 204 (-6) played?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "purse" real,
  "winner" text,
  "score" text,
  "1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the tournament that was won with a score of 204 (-6) played?`:
```sql
                SELECT "date" FROM "tournament_results" WHERE "score"='204 (-6)';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote "Stop Being all Funky"?`

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

CREATE TABLE "table1_11630008_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote "Stop Being all Funky"?`:
```sql
                SELECT "written_by" FROM "table1_11630008_5" WHERE "title"='\"Stop Being All Funky\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the season number for the episode with the series number 61?`

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

CREATE TABLE "table1_11630008_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the season number for the episode with the series number 61?`:
```sql
                SELECT MAX("season_num") FROM "table1_11630008_5" WHERE "series_num"=61;
```
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode with the production code 311?`

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

CREATE TABLE "table1_11630008_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode with the production code 311?`:
```sql
                SELECT "title" FROM "table1_11630008_5" WHERE "production_code"=311;
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by Lamont Ferrell?`

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

CREATE TABLE "table1_11630008_5" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by Lamont Ferrell?`:
```sql
                SELECT "directed_by" FROM "table1_11630008_5" WHERE "written_by"='Lamont Ferrell';
```
## Task
Generate a SQL query to answer the following question:
`What date was the result 6–2, 4–6, 6–4?`

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

CREATE TABLE "doubles_7" (
  "edition" text,
  "round" text,
  "date" text,
  "partnering" text,
  "against" text,
  "surface" text,
  "opponents" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the result 6–2, 4–6, 6–4?`:
```sql
                SELECT "date" FROM "doubles_7" WHERE "result"='6–2, 4–6, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`How many matches had the result of 6–3, 6–2?`

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

CREATE TABLE "doubles_7" (
  "edition" text,
  "round" text,
  "date" text,
  "partnering" text,
  "against" text,
  "surface" text,
  "opponents" text,
  "w_l" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many matches had the result of 6–3, 6–2?`:
```sql
                SELECT COUNT("partnering") FROM "doubles_7" WHERE "result"='6–3, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`If the Original Air Date is 10January2008, what  directors released on that date?`

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

CREATE TABLE "table1_11642945_1" (
  "total_no" real,
  "celebrity" text,
  "director" text,
  "original_air_date" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Original Air Date is 10January2008, what  directors released on that date?`:
```sql
                SELECT "director" FROM "table1_11642945_1" WHERE "original_air_date"='10January2008';
```
## Task
Generate a SQL query to answer the following question:
`The original air date of 29November2007 has what total no.?`

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

CREATE TABLE "table1_11642945_1" (
  "total_no" real,
  "celebrity" text,
  "director" text,
  "original_air_date" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `The original air date of 29November2007 has what total no.?`:
```sql
                SELECT "total_no" FROM "table1_11642945_1" WHERE "original_air_date"='29November2007';
```
## Task
Generate a SQL query to answer the following question:
`Margot Kidder had what director?`

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

CREATE TABLE "table1_11642945_1" (
  "total_no" real,
  "celebrity" text,
  "director" text,
  "original_air_date" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Margot Kidder had what director?`:
```sql
                SELECT "director" FROM "table1_11642945_1" WHERE "celebrity"='Margot Kidder';
```
## Task
Generate a SQL query to answer the following question:
`How many celebrities had an 18October2007 Original air Date?`

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

CREATE TABLE "table1_11642945_1" (
  "total_no" real,
  "celebrity" text,
  "director" text,
  "original_air_date" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many celebrities had an 18October2007 Original air Date?`:
```sql
                SELECT COUNT("celebrity") FROM "table1_11642945_1" WHERE "original_air_date"='18October2007';
```
## Task
Generate a SQL query to answer the following question:
`Which viewers had Matt Gallagher as the director?`

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

CREATE TABLE "table1_11642945_1" (
  "total_no" real,
  "celebrity" text,
  "director" text,
  "original_air_date" text,
  "viewers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which viewers had Matt Gallagher as the director?`:
```sql
                SELECT "viewers" FROM "table1_11642945_1" WHERE "director"='Matt Gallagher';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of series of the title of "your wife's a payne"?`

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

CREATE TABLE "season_5_2008_09" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of series of the title of "your wife's a payne"?`:
```sql
                SELECT MAX("series_num") FROM "season_5_2008_09" WHERE "title"='\"Your Wife''s a Payne\"';
```
## Task
Generate a SQL query to answer the following question:
`Who write "a grand payne"?`

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

CREATE TABLE "season_5_2008_09" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who write "a grand payne"?`:
```sql
                SELECT "written_by" FROM "season_5_2008_09" WHERE "title"='\"A Grand Payne\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of series with a title of "with friends like these"?`

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

CREATE TABLE "season_5_2008_09" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of series with a title of "with friends like these"?`:
```sql
                SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "title"='\"With Friends Like These\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of series with production code 503?`

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

CREATE TABLE "season_5_2008_09" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of series with production code 503?`:
```sql
                SELECT COUNT("series_num") FROM "season_5_2008_09" WHERE "production_code"=503;
```
## Task
Generate a SQL query to answer the following question:
`What is the title of production code 514?`

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

CREATE TABLE "season_5_2008_09" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of production code 514?`:
```sql
                SELECT "title" FROM "season_5_2008_09" WHERE "production_code"=514;
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the institution barton college`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the institution barton college`:
```sql
                SELECT "location" FROM "current_members" WHERE "institution"='Barton College';
```
## Task
Generate a SQL query to answer the following question:
` Which institutions joined in 1993`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers ` Which institutions joined in 1993`:
```sql
                SELECT "institution" FROM "current_members" WHERE "joined"='1993';
```
## Task
Generate a SQL query to answer the following question:
`what are the locations that  joined in 2008`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the locations that  joined in 2008`:
```sql
                SELECT "location" FROM "current_members" WHERE "joined"='2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum enrollment at barton college`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum enrollment at barton college`:
```sql
                SELECT MIN("enrollment") FROM "current_members" WHERE "institution"='Barton College';
```
## Task
Generate a SQL query to answer the following question:
`When was erskine college founded`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" text,
  "nickname" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was erskine college founded`:
```sql
                SELECT "founded" FROM "current_members" WHERE "institution"='Erskine College';
```
## Task
Generate a SQL query to answer the following question:
`What is ithe range for married filing separately where head of household is $117,451–$190,200?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ithe range for married filing separately where head of household is $117,451–$190,200?`:
```sql
                SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
```
## Task
Generate a SQL query to answer the following question:
`What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of marginal ordinary income tax rate for single in which the range is $8,351– $33,950?`:
```sql
                SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$8,351– $33,950';
```
## Task
Generate a SQL query to answer the following question:
`What is the range for married filing separately in which the head of household is $117,451–$190,200?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the range for married filing separately in which the head of household is $117,451–$190,200?`:
```sql
                SELECT "married_filing_separately" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "head_of_household"='$117,451–$190,200';
```
## Task
Generate a SQL query to answer the following question:
`What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the range of married filing jointly or qualified widower in which married filing separately is $33,951–$68,525?`:
```sql
                SELECT "married_filing_jointly_or_qualified_widow_er" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_separately"='$33,951–$68,525';
```
## Task
Generate a SQL query to answer the following question:
`What is the range of the head of household whereas single is $171,551–$372,950?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the range of the head of household whereas single is $171,551–$372,950?`:
```sql
                SELECT "head_of_household" FROM "regular_and_capital_gains_tax_rates_for_" WHERE "single"='$171,551–$372,950';
```
## Task
Generate a SQL query to answer the following question:
`What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?`

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

CREATE TABLE "regular_and_capital_gains_tax_rates_for_" (
  "marginal_ordinary_income_tax_rate" text,
  "single" text,
  "married_filing_jointly_or_qualified_widow_er" text,
  "married_filing_separately" text,
  "head_of_household" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amoun of marginal ordinary income tax rate where married filing jointly or qualified widow is $208,851–$372,950?`:
```sql
                SELECT COUNT("marginal_ordinary_income_tax_rate") FROM "regular_and_capital_gains_tax_rates_for_" WHERE "married_filing_jointly_or_qualified_widow_er"='$208,851–$372,950';
```
## Task
Generate a SQL query to answer the following question:
` who is the coach where dudley tuckey medal is ben howlett`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the coach where dudley tuckey medal is ben howlett`:
```sql
                SELECT "coach" FROM "honour_board" WHERE "dudley_tuckey_medal"='Ben Howlett';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of coach where captain is grant welsh and win/loss is 5-15`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of coach where captain is grant welsh and win/loss is 5-15`:
```sql
                SELECT COUNT("coach") FROM "honour_board" WHERE "captain"='Grant Welsh' AND "win_loss"='5-15';
```
## Task
Generate a SQL query to answer the following question:
` who is the dudley tuckey medal where leading goalkicker is scott simister (46)`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the dudley tuckey medal where leading goalkicker is scott simister (46)`:
```sql
                SELECT "dudley_tuckey_medal" FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (46)';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum season where leading goalkicker is scott simister (54)`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum season where leading goalkicker is scott simister (54)`:
```sql
                SELECT MAX("season") FROM "honour_board" WHERE "leading_goalkicker"='Scott Simister (54)';
```
## Task
Generate a SQL query to answer the following question:
`what are all the win/loss where season is 2009`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the win/loss where season is 2009`:
```sql
                SELECT "win_loss" FROM "honour_board" WHERE "season"=2009;
```
## Task
Generate a SQL query to answer the following question:
` who is the captain where coach is geoff miles`

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

CREATE TABLE "honour_board" (
  "season" real,
  "position" real,
  "win_loss" text,
  "coach" text,
  "captain" text,
  "dudley_tuckey_medal" text,
  "leading_goalkicker" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the captain where coach is geoff miles`:
```sql
                SELECT "captain" FROM "honour_board" WHERE "coach"='Geoff Miles';
```
## Task
Generate a SQL query to answer the following question:
`In 2005-06 what was the disaster?`

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

CREATE TABLE "disaster_relief" (
  "disaster" text,
  "year" text,
  "countries_affected" text,
  "scale_of_disaster" text,
  "people_assisted" text,
  "nature_of_help" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2005-06 what was the disaster?`:
```sql
                SELECT "disaster" FROM "disaster_relief" WHERE "year"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`What was the scale of disaster in Peru?`

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

CREATE TABLE "disaster_relief" (
  "disaster" text,
  "year" text,
  "countries_affected" text,
  "scale_of_disaster" text,
  "people_assisted" text,
  "nature_of_help" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the scale of disaster in Peru?`:
```sql
                SELECT "scale_of_disaster" FROM "disaster_relief" WHERE "countries_affected"='Peru';
```
## Task
Generate a SQL query to answer the following question:
`What's the area of the voivodenship with 51 communes?`

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

CREATE TABLE "polish_voivodeships_and_separate_cities_" (
  "abbreviation" text,
  "voivodeship" text,
  "capital" text,
  "area_km_1998" text,
  "population_1980" text,
  "no_of_cities" real,
  "no_of_communes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the area of the voivodenship with 51 communes?`:
```sql
                SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "no_of_communes"=51;
```
## Task
Generate a SQL query to answer the following question:
`How big (in km2) is the voivodenship also known by the abbreviation KN?`

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

CREATE TABLE "polish_voivodeships_and_separate_cities_" (
  "abbreviation" text,
  "voivodeship" text,
  "capital" text,
  "area_km_1998" text,
  "population_1980" text,
  "no_of_cities" real,
  "no_of_communes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How big (in km2) is the voivodenship also known by the abbreviation KN?`:
```sql
                SELECT "area_km_1998" FROM "polish_voivodeships_and_separate_cities_" WHERE "abbreviation"='kn';
```
## Task
Generate a SQL query to answer the following question:
`How many people lived in the voivodenship whose capital is Siedlce in the year of 1980?`

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

CREATE TABLE "polish_voivodeships_and_separate_cities_" (
  "abbreviation" text,
  "voivodeship" text,
  "capital" text,
  "area_km_1998" text,
  "population_1980" text,
  "no_of_cities" real,
  "no_of_communes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people lived in the voivodenship whose capital is Siedlce in the year of 1980?`:
```sql
                SELECT "population_1980" FROM "polish_voivodeships_and_separate_cities_" WHERE "capital"='Siedlce';
```
## Task
Generate a SQL query to answer the following question:
`How many different voivodenship have 747 900 citizes?`

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

CREATE TABLE "polish_voivodeships_and_separate_cities_" (
  "abbreviation" text,
  "voivodeship" text,
  "capital" text,
  "area_km_1998" text,
  "population_1980" text,
  "no_of_cities" real,
  "no_of_communes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different voivodenship have 747 900 citizes?`:
```sql
                SELECT COUNT("voivodeship") FROM "polish_voivodeships_and_separate_cities_" WHERE "population_1980"='747 900';
```
## Task
Generate a SQL query to answer the following question:
`What year did longwood university leave the conference?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did longwood university leave the conference?`:
```sql
                SELECT MIN("left") FROM "former_members" WHERE "institution"='Longwood University';
```
## Task
Generate a SQL query to answer the following question:
`What year did a school leave that was founded in 1880?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did a school leave that was founded in 1880?`:
```sql
                SELECT "left" FROM "former_members" WHERE "founded"=1880;
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the school with an enrollment of 2386?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the school with an enrollment of 2386?`:
```sql
                SELECT "nickname" FROM "former_members" WHERE "enrollment"=2386;
```
## Task
Generate a SQL query to answer the following question:
`What year did the school from mars hill, north carolina join?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did the school from mars hill, north carolina join?`:
```sql
                SELECT "joined" FROM "former_members" WHERE "location"='Mars Hill, North Carolina';
```
## Task
Generate a SQL query to answer the following question:
`How many times did anderson university leave?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did anderson university leave?`:
```sql
                SELECT COUNT("left") FROM "former_members" WHERE "institution"='Anderson University';
```
## Task
Generate a SQL query to answer the following question:
`What is the nickname of the newberry college?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "nickname" text,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nickname of the newberry college?`:
```sql
                SELECT "nickname" FROM "former_members" WHERE "institution"='Newberry College';
```
## Task
Generate a SQL query to answer the following question:
`What was the gross tonnage of the ship that ended service in 1866?`

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

CREATE TABLE "ships_of_the_great_eastern_railway" (
  "ships_name" text,
  "entered_service" text,
  "ended_service" text,
  "gross_tonnage" real,
  "type_of_vessel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the gross tonnage of the ship that ended service in 1866?`:
```sql
                SELECT "gross_tonnage" FROM "ships_of_the_great_eastern_railway" WHERE "ended_service"='1866';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum gross tonnage of the Munich? `

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

CREATE TABLE "ships_of_the_great_eastern_railway" (
  "ships_name" text,
  "entered_service" text,
  "ended_service" text,
  "gross_tonnage" real,
  "type_of_vessel" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum gross tonnage of the Munich? `:
```sql
                SELECT MIN("gross_tonnage") FROM "ships_of_the_great_eastern_railway" WHERE "ships_name"='Munich';
```
## Task
Generate a SQL query to answer the following question:
`What is the air date for the episode written by Wendy Battles and directed by Oz Scott`

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

CREATE TABLE "table1_11665016_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date for the episode written by Wendy Battles and directed by Oz Scott`:
```sql
                SELECT "original_air_date" FROM "table1_11665016_2" WHERE "written_by"='Wendy Battles' AND "directed_by"='Oz Scott';
```
## Task
Generate a SQL query to answer the following question:
`How many US viewers (millions) were there for "cold reveal"`

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

CREATE TABLE "table1_11665016_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many US viewers (millions) were there for "cold reveal"`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_11665016_2" WHERE "title"='\"Cold Reveal\"';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was written by anthony e. zuiker & ken solarz`

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

CREATE TABLE "table1_11665016_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was written by anthony e. zuiker & ken solarz`:
```sql
                SELECT "title" FROM "table1_11665016_2" WHERE "written_by"='Anthony E. Zuiker & Ken Solarz';
```
## Task
Generate a SQL query to answer the following question:
`Which episode was directed by steven depaul`

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

CREATE TABLE "table1_11665016_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode was directed by steven depaul`:
```sql
                SELECT "title" FROM "table1_11665016_2" WHERE "directed_by"='Steven DePaul';
```
## Task
Generate a SQL query to answer the following question:
`What where the tms numbers built in 1923`

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

CREATE TABLE "locomotives_and_rolling_stock" (
  "number" text,
  "tms_number" text,
  "builder" text,
  "year_built" real,
  "carriage_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What where the tms numbers built in 1923`:
```sql
                SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "year_built"=1923;
```
## Task
Generate a SQL query to answer the following question:
`What year was the carriage type is 47' 6" 'birdcage' gallery coach built`

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

CREATE TABLE "locomotives_and_rolling_stock" (
  "number" text,
  "tms_number" text,
  "builder" text,
  "year_built" real,
  "carriage_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the carriage type is 47' 6" 'birdcage' gallery coach built`:
```sql
                SELECT "year_built" FROM "locomotives_and_rolling_stock" WHERE "carriage_type"='47'' 6\" ''Birdcage'' gallery coach';
```
## Task
Generate a SQL query to answer the following question:
`What tms were built nzr addington in the year 1913`

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

CREATE TABLE "locomotives_and_rolling_stock" (
  "number" text,
  "tms_number" text,
  "builder" text,
  "year_built" real,
  "carriage_type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tms were built nzr addington in the year 1913`:
```sql
                SELECT "tms_number" FROM "locomotives_and_rolling_stock" WHERE "builder"='NZR Addington' AND "year_built"=1913;
```
## Task
Generate a SQL query to answer the following question:
` what's the date entered service with ships name koningin wilhelmina`

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the date entered service with ships name koningin wilhelmina`:
```sql
                SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Wilhelmina';
```
## Task
Generate a SQL query to answer the following question:
` what's the date where ships name is zeeland entered service`

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the date where ships name is zeeland entered service`:
```sql
                SELECT "date_entered_service" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Zeeland';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum tonnage where date entered service is 25 march 1986 `

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum tonnage where date entered service is 25 march 1986 `:
```sql
                SELECT MAX("tonnage") FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='25 March 1986';
```
## Task
Generate a SQL query to answer the following question:
`what are all the date withdrawn for service entered on 21 november 1945`

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the date withdrawn for service entered on 21 november 1945`:
```sql
                SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "date_entered_service"='21 November 1945';
```
## Task
Generate a SQL query to answer the following question:
`what are all the date withdrawn for twin screw ro-ro motorship`

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the date withdrawn for twin screw ro-ro motorship`:
```sql
                SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "type_of_ship"='Twin Screw Ro-Ro Motorship';
```
## Task
Generate a SQL query to answer the following question:
`what are all the date withdrawn for koningin beatrix`

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

CREATE TABLE "ships_operated_by_zeeland_steamship_comp" (
  "ships_name" text,
  "date_entered_service" text,
  "date_withdrawn" text,
  "tonnage" real,
  "type_of_ship" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the date withdrawn for koningin beatrix`:
```sql
                SELECT "date_withdrawn" FROM "ships_operated_by_zeeland_steamship_comp" WHERE "ships_name"='Koningin Beatrix';
```
## Task
Generate a SQL query to answer the following question:
`Where is the first season that Anthony Hemingway appears?`

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

CREATE TABLE "table1_11664625_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the first season that Anthony Hemingway appears?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "directed_by"='Anthony Hemingway';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of season 18?`

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

CREATE TABLE "table1_11664625_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of season 18?`:
```sql
                SELECT "original_air_date" FROM "table1_11664625_2" WHERE "no_in_season"=18;
```
## Task
Generate a SQL query to answer the following question:
`When is the first season there were 14.57 million U.S viewers?`

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

CREATE TABLE "table1_11664625_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the first season there were 14.57 million U.S viewers?`:
```sql
                SELECT MIN("no_in_season") FROM "table1_11664625_2" WHERE "u_s_viewers_millions"='14.57';
```
## Task
Generate a SQL query to answer the following question:
`How many champions were there in 2009?`

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

CREATE TABLE "table1_1167698_1" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "third_place" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many champions were there in 2009?`:
```sql
                SELECT COUNT("champion") FROM "table1_1167698_1" WHERE "season"='2009';
```
## Task
Generate a SQL query to answer the following question:
`Who won third place with the runner up being dynamo moscow?`

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

CREATE TABLE "table1_1167698_1" (
  "season" text,
  "champion" text,
  "runner_up" text,
  "third_place" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won third place with the runner up being dynamo moscow?`:
```sql
                SELECT "third_place" FROM "table1_1167698_1" WHERE "runner_up"='Dynamo Moscow';
```
## Task
Generate a SQL query to answer the following question:
`What position does Matt Hobgood play?`

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

CREATE TABLE "table1_11677100_15" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Matt Hobgood play?`:
```sql
                SELECT "position" FROM "table1_11677100_15" WHERE "player"='Matt Hobgood';
```
## Task
Generate a SQL query to answer the following question:
`How many players were from high point, nc?`

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

CREATE TABLE "table1_11677100_15" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players were from high point, nc?`:
```sql
                SELECT COUNT("mlb_draft") FROM "table1_11677100_15" WHERE "hometown"='High Point, NC';
```
## Task
Generate a SQL query to answer the following question:
`What high school did Jeff Malm attend?`

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

CREATE TABLE "table1_11677100_15" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high school did Jeff Malm attend?`:
```sql
                SELECT "school" FROM "table1_11677100_15" WHERE "player"='Jeff Malm';
```
## Task
Generate a SQL query to answer the following question:
`How many hometowns does the catcher have?`

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

CREATE TABLE "table1_11677100_15" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hometowns does the catcher have?`:
```sql
                SELECT COUNT("hometown") FROM "table1_11677100_15" WHERE "position"='Catcher';
```
## Task
Generate a SQL query to answer the following question:
`Who was drafted from the school Mountain Pointe High School?`

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

CREATE TABLE "table1_11677100_16" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was drafted from the school Mountain Pointe High School?`:
```sql
                SELECT "mlb_draft" FROM "table1_11677100_16" WHERE "school"='Mountain Pointe High School';
```
## Task
Generate a SQL query to answer the following question:
`What school did the player Ethan Bennett attend?`

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

CREATE TABLE "table1_11677100_16" (
  "player" text,
  "position" text,
  "school" text,
  "hometown" text,
  "mlb_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school did the player Ethan Bennett attend?`:
```sql
                SELECT "school" FROM "table1_11677100_16" WHERE "player"='Ethan Bennett';
```