cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many numbers have sp of 20/1 and a finishing position of fence 19?`

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

CREATE TABLE "competitors_and_betting" (
  "sp" text,
  "number" real,
  "horse" text,
  "age" real,
  "handicap_st_lb" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "colours" text,
  "finishing_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers have sp of 20/1 and a finishing position of fence 19?`:
```sql
                SELECT COUNT("number") FROM "competitors_and_betting" WHERE "sp"='20/1' AND "finishing_position"='Fence 19';
```
## Task
Generate a SQL query to answer the following question:
`Which handicap has the horse knowhere?`

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

CREATE TABLE "competitors_and_betting" (
  "sp" text,
  "number" real,
  "horse" text,
  "age" real,
  "handicap_st_lb" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "colours" text,
  "finishing_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which handicap has the horse knowhere?`:
```sql
                SELECT "handicap_st_lb" FROM "competitors_and_betting" WHERE "horse"='Knowhere';
```
## Task
Generate a SQL query to answer the following question:
`What colors does David Langdon use?`

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

CREATE TABLE "competitors_and_betting" (
  "sp" text,
  "number" real,
  "horse" text,
  "age" real,
  "handicap_st_lb" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "colours" text,
  "finishing_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What colors does David Langdon use?`:
```sql
                SELECT "colours" FROM "competitors_and_betting" WHERE "owner"='David Langdon';
```
## Task
Generate a SQL query to answer the following question:
`If the film title nominated is Baran, what was the result?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "persian_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the film title nominated is Baran, what was the result?`:
```sql
                SELECT "result" FROM "submissions" WHERE "film_title_used_in_nomination"='Baran';
```
## Task
Generate a SQL query to answer the following question:
`For the Persian Title میم مثل مادر, what were the results?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "persian_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Persian Title میم مثل مادر, what were the results?`:
```sql
                SELECT "result" FROM "submissions" WHERE "persian_title"='میم مثل مادر';
```
## Task
Generate a SQL query to answer the following question:
`For the Persian title گبه, What was the film title used for the nomination?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "persian_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Persian title گبه, What was the film title used for the nomination?`:
```sql
                SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "persian_title"='گبه';
```
## Task
Generate a SQL query to answer the following question:
`What year had an Allison B400R transmission and a model of BRT?`

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

CREATE TABLE "buses" (
  "fleet_num" text,
  "year" real,
  "manufacture" text,
  "model" text,
  "length_ft" real,
  "engine" text,
  "transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had an Allison B400R transmission and a model of BRT?`:
```sql
                SELECT "year" FROM "buses" WHERE "transmission"='Allison B400R' AND "model"='BRT';
```
## Task
Generate a SQL query to answer the following question:
`What is the fleet number when the length (ft) is 30?`

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

CREATE TABLE "buses" (
  "fleet_num" text,
  "year" real,
  "manufacture" text,
  "model" text,
  "length_ft" real,
  "engine" text,
  "transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fleet number when the length (ft) is 30?`:
```sql
                SELECT "fleet_num" FROM "buses" WHERE "length_ft"=30;
```
## Task
Generate a SQL query to answer the following question:
`What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?`

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

CREATE TABLE "buses" (
  "fleet_num" text,
  "year" real,
  "manufacture" text,
  "model" text,
  "length_ft" real,
  "engine" text,
  "transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fleet number when the transmission is Voith D863.4 and the engine is Cummins ISL?`:
```sql
                SELECT "fleet_num" FROM "buses" WHERE "transmission"='Voith D863.4' AND "engine"='Cummins ISL';
```
## Task
Generate a SQL query to answer the following question:
`Which year had a transmission of Voith D863.4 and a Cummins ISM engine?`

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

CREATE TABLE "buses" (
  "fleet_num" text,
  "year" real,
  "manufacture" text,
  "model" text,
  "length_ft" real,
  "engine" text,
  "transmission" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year had a transmission of Voith D863.4 and a Cummins ISM engine?`:
```sql
                SELECT "year" FROM "buses" WHERE "transmission"='Voith D863.4' AND "engine"='Cummins ISM';
```
## Task
Generate a SQL query to answer the following question:
`Name the college/junior club team for ian turnbull`

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

CREATE TABLE "round_one" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college/junior club team for ian turnbull`:
```sql
                SELECT "college_junior_club_team" FROM "round_one" WHERE "player"='Ian Turnbull';
```
## Task
Generate a SQL query to answer the following question:
`Name the position for nhl team being los angeles kings`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the position for nhl team being los angeles kings`:
```sql
                SELECT "position" FROM "round_three" WHERE "nhl_team"='Los Angeles Kings';
```
## Task
Generate a SQL query to answer the following question:
`Name the nhl times for jeff jacques`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nhl times for jeff jacques`:
```sql
                SELECT "nhl_team" FROM "round_three" WHERE "player"='Jeff Jacques';
```
## Task
Generate a SQL query to answer the following question:
`Name the college/junior club team for john campbell`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college/junior club team for john campbell`:
```sql
                SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='John Campbell';
```
## Task
Generate a SQL query to answer the following question:
`Name the least pick # for doug gibson`

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

CREATE TABLE "round_three" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least pick # for doug gibson`:
```sql
                SELECT MIN("pick_num") FROM "round_three" WHERE "player"='Doug Gibson';
```
## Task
Generate a SQL query to answer the following question:
`How many nationalities does Tom Colley have?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many nationalities does Tom Colley have?`:
```sql
                SELECT COUNT("nationality") FROM "round_four" WHERE "player"='Tom Colley';
```
## Task
Generate a SQL query to answer the following question:
`What's the NHL team that drafted the player from Sudbury Wolves (OHA)?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the NHL team that drafted the player from Sudbury Wolves (OHA)?`:
```sql
                SELECT "nhl_team" FROM "round_four" WHERE "college_junior_club_team"='Sudbury Wolves (OHA)';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of positions of the player playing in Minnesota North Stars?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of positions of the player playing in Minnesota North Stars?`:
```sql
                SELECT COUNT("position") FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';
```
## Task
Generate a SQL query to answer the following question:
`What's the smallest pick number of a player playing in Minnesota North Stars?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the smallest pick number of a player playing in Minnesota North Stars?`:
```sql
                SELECT MIN("pick_num") FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';
```
## Task
Generate a SQL query to answer the following question:
`What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the nationality of the player coming from Edmonton Oil Kings (WCHL)?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "college_junior_club_team"='Edmonton Oil Kings (WCHL)';
```
## Task
Generate a SQL query to answer the following question:
`What's Steve Langdon's naitionality?`

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

CREATE TABLE "round_four" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's Steve Langdon's naitionality?`:
```sql
                SELECT "nationality" FROM "round_four" WHERE "player"='Steve Langdon';
```
## Task
Generate a SQL query to answer the following question:
`When michigan technological university (ncaa) is the  college, junior, or club team what is the nationality?`

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

CREATE TABLE "round_nine" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When michigan technological university (ncaa) is the  college, junior, or club team what is the nationality?`:
```sql
                SELECT "nationality" FROM "round_nine" WHERE "college_junior_club_team"='Michigan Technological University (NCAA)';
```
## Task
Generate a SQL query to answer the following question:
`When kitchener rangers (oha) is the  college, junior, or club team team who is the player?`

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

CREATE TABLE "round_nine" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When kitchener rangers (oha) is the  college, junior, or club team team who is the player?`:
```sql
                SELECT "player" FROM "round_nine" WHERE "college_junior_club_team"='Kitchener Rangers (OHA)';
```
## Task
Generate a SQL query to answer the following question:
`When  sault ste. marie greyhounds (oha) is the  college, junior, or club team how many nationalities are there?`

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

CREATE TABLE "round_nine" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When  sault ste. marie greyhounds (oha) is the  college, junior, or club team how many nationalities are there?`:
```sql
                SELECT COUNT("nationality") FROM "round_nine" WHERE "college_junior_club_team"='Sault Ste. Marie Greyhounds (OHA)';
```
## Task
Generate a SQL query to answer the following question:
`When kitchener rangers (oha) is the college, junior, or club team what is the position?`

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

CREATE TABLE "round_nine" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `When kitchener rangers (oha) is the college, junior, or club team what is the position?`:
```sql
                SELECT "position" FROM "round_nine" WHERE "college_junior_club_team"='Kitchener Rangers (OHA)';
```
## Task
Generate a SQL query to answer the following question:
`How many positions for denis patry?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions for denis patry?`:
```sql
                SELECT COUNT("position") FROM "round_six" WHERE "player"='Denis Patry';
```
## Task
Generate a SQL query to answer the following question:
`What nationality for neil korzack?`

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

CREATE TABLE "round_six" (
  "pick_num" real,
  "player" text,
  "position" text,
  "nationality" text,
  "nhl_team" text,
  "college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality for neil korzack?`:
```sql
                SELECT "nationality" FROM "round_six" WHERE "player"='Neil Korzack';
```
## Task
Generate a SQL query to answer the following question:
`Name the college that has 10000 enrolled`

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

CREATE TABLE "current_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the college that has 10000 enrolled`:
```sql
                SELECT "institution" FROM "current_members" WHERE "enrollment"=10000;
```
## Task
Generate a SQL query to answer the following question:
`Name the most joined for molloy college`

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

CREATE TABLE "current_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most joined for molloy college`:
```sql
                SELECT MAX("joined") FROM "current_members" WHERE "institution"='Molloy College';
```
## Task
Generate a SQL query to answer the following question:
`how many times was total considered when hancock # was 1394`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was total considered when hancock # was 1394`:
```sql
                SELECT COUNT("total") FROM "by_county" WHERE "hancock_num"=1394;
```
## Task
Generate a SQL query to answer the following question:
`how many times was hancock % considered when starky % was 20.96%`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was hancock % considered when starky % was 20.96%`:
```sql
                SELECT COUNT("hancock_pct") FROM "by_county" WHERE "starky_pct"='20.96%';
```
## Task
Generate a SQL query to answer the following question:
`How many times was country considered when starky % was 20.96%`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was country considered when starky % was 20.96%`:
```sql
                SELECT COUNT("county") FROM "by_county" WHERE "starky_pct"='20.96%';
```
## Task
Generate a SQL query to answer the following question:
`which country did stary get 17.41%`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `which country did stary get 17.41%`:
```sql
                SELECT "county" FROM "by_county" WHERE "starky_pct"='17.41%';
```
## Task
Generate a SQL query to answer the following question:
`what is the least total in gila`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the least total in gila`:
```sql
                SELECT MIN("total") FROM "by_county" WHERE "county"='Gila';
```
## Task
Generate a SQL query to answer the following question:
`where did hancock get 3.09%`

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

CREATE TABLE "by_county" (
  "county" text,
  "starky_num" real,
  "starky_pct" text,
  "hancock_num" real,
  "hancock_pct" text,
  "mc_cain_num" real,
  "mc_cain_pct" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `where did hancock get 3.09%`:
```sql
                SELECT "county" FROM "by_county" WHERE "hancock_pct"='3.09%';
```
## Task
Generate a SQL query to answer the following question:
`What is the BBM when the strike rate is 42.2?`

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

CREATE TABLE "bowling_average" (
  "player" text,
  "team" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "economy_rate" text,
  "average" text,
  "strike_rate" text,
  "bbi" text,
  "bbm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BBM when the strike rate is 42.2?`:
```sql
                SELECT "bbm" FROM "bowling_average" WHERE "strike_rate"='42.2';
```
## Task
Generate a SQL query to answer the following question:
`What is the economy when the strike rate is 54.0?`

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

CREATE TABLE "bowling_average" (
  "player" text,
  "team" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "economy_rate" text,
  "average" text,
  "strike_rate" text,
  "bbi" text,
  "bbm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the economy when the strike rate is 54.0?`:
```sql
                SELECT "economy_rate" FROM "bowling_average" WHERE "strike_rate"='54.0';
```
## Task
Generate a SQL query to answer the following question:
`How many averages are there when the economy rate is 2.26?`

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

CREATE TABLE "bowling_average" (
  "player" text,
  "team" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "economy_rate" text,
  "average" text,
  "strike_rate" text,
  "bbi" text,
  "bbm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many averages are there when the economy rate is 2.26?`:
```sql
                SELECT COUNT("average") FROM "bowling_average" WHERE "economy_rate"='2.26';
```
## Task
Generate a SQL query to answer the following question:
`How many figures for wickets when the strike rate is 54.0?`

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

CREATE TABLE "bowling_average" (
  "player" text,
  "team" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "economy_rate" text,
  "average" text,
  "strike_rate" text,
  "bbi" text,
  "bbm" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many figures for wickets when the strike rate is 54.0?`:
```sql
                SELECT COUNT("wickets") FROM "bowling_average" WHERE "strike_rate"='54.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the strike rate when there are 17 wickets?`

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

CREATE TABLE "bowling_average" (
  "player" text,
  "team" text,
  "matches" real,
  "overs" text,
  "wickets" real,
  "economy_rate" text,
  "average" text,
  "strike_rate" text,
  "bbi" text,
  "bbm" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the strike rate when there are 17 wickets?`:
```sql
                SELECT "strike_rate" FROM "bowling_average" WHERE "wickets"=17;
```
## Task
Generate a SQL query to answer the following question:
`How many areas (km 2) have 151511 as the census 2006 population?`

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

CREATE TABLE "administrative_divisions" (
  "lga_name" text,
  "area_km_2" real,
  "census_2006_population" real,
  "administrative_capital" text,
  "postal_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many areas (km 2) have 151511 as the census 2006 population?`:
```sql
                SELECT COUNT("area_km_2") FROM "administrative_divisions" WHERE "census_2006_population"=151511;
```
## Task
Generate a SQL query to answer the following question:
`What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?`

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

CREATE TABLE "administrative_divisions" (
  "lga_name" text,
  "area_km_2" real,
  "census_2006_population" real,
  "administrative_capital" text,
  "postal_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the LGA name where the 2006 census population is bigger than 425208.9417698913 and administrative capital is port harcourt?`:
```sql
                SELECT "lga_name" FROM "administrative_divisions" WHERE "census_2006_population">425208.9417698913 AND "administrative_capital"='Port Harcourt';
```
## Task
Generate a SQL query to answer the following question:
`What is the administrative capital of LGA name Akuku-Toru?`

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

CREATE TABLE "administrative_divisions" (
  "lga_name" text,
  "area_km_2" real,
  "census_2006_population" real,
  "administrative_capital" text,
  "postal_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the administrative capital of LGA name Akuku-Toru?`:
```sql
                SELECT "administrative_capital" FROM "administrative_divisions" WHERE "lga_name"='Akuku-Toru';
```
## Task
Generate a SQL query to answer the following question:
`What is the administrative capital that has a 2006 census population of 249425?`

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

CREATE TABLE "administrative_divisions" (
  "lga_name" text,
  "area_km_2" real,
  "census_2006_population" real,
  "administrative_capital" text,
  "postal_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the administrative capital that has a 2006 census population of 249425?`:
```sql
                SELECT "administrative_capital" FROM "administrative_divisions" WHERE "census_2006_population"=249425;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum 2006 census population of LGA name Opobo/Nkoro?`

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

CREATE TABLE "administrative_divisions" (
  "lga_name" text,
  "area_km_2" real,
  "census_2006_population" real,
  "administrative_capital" text,
  "postal_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum 2006 census population of LGA name Opobo/Nkoro?`:
```sql
                SELECT MAX("census_2006_population") FROM "administrative_divisions" WHERE "lga_name"='Opobo/Nkoro';
```
## Task
Generate a SQL query to answer the following question:
`What's the minimal enrollment of any of the schools?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the minimal enrollment of any of the schools?`:
```sql
                SELECT MIN("enrollment") FROM "former_members";
```
## Task
Generate a SQL query to answer the following question:
`When was the school whose students are nicknamed Rams founded?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the school whose students are nicknamed Rams founded?`:
```sql
                SELECT MAX("founded") FROM "former_members" WHERE "nickname"='Rams';
```
## Task
Generate a SQL query to answer the following question:
`What's the type of the school whose students are nicknamed Chargers?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the type of the school whose students are nicknamed Chargers?`:
```sql
                SELECT "type" FROM "former_members" WHERE "nickname"='Chargers';
```
## Task
Generate a SQL query to answer the following question:
`When was the school in Philadelphia, Pennsylvania founded?`

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

CREATE TABLE "former_members" (
  "institution" text,
  "nickname" text,
  "location" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real,
  "left" real,
  "current_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the school in Philadelphia, Pennsylvania founded?`:
```sql
                SELECT "founded" FROM "former_members" WHERE "location"='Philadelphia, Pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of votes in the 2005 elections?`

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

CREATE TABLE "summary_of_general_election_performance" (
  "year" text,
  "number_of_candidates" real,
  "total_votes" real,
  "average_voters_per_candidate" real,
  "percentage_of_vote" text,
  "saved_deposits" real,
  "change_percentage_points" text,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of votes in the 2005 elections?`:
```sql
                SELECT MIN("total_votes") FROM "summary_of_general_election_performance" WHERE "year"='2005';
```
## Task
Generate a SQL query to answer the following question:
`How many elections had 1423 average voters per candidate?`

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

CREATE TABLE "summary_of_general_election_performance" (
  "year" text,
  "number_of_candidates" real,
  "total_votes" real,
  "average_voters_per_candidate" real,
  "percentage_of_vote" text,
  "saved_deposits" real,
  "change_percentage_points" text,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many elections had 1423 average voters per candidate?`:
```sql
                SELECT COUNT("change_percentage_points") FROM "summary_of_general_election_performance" WHERE "average_voters_per_candidate"=1423;
```
## Task
Generate a SQL query to answer the following question:
`How many candidates were there in the year of 1987?`

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

CREATE TABLE "summary_of_general_election_performance" (
  "year" text,
  "number_of_candidates" real,
  "total_votes" real,
  "average_voters_per_candidate" real,
  "percentage_of_vote" text,
  "saved_deposits" real,
  "change_percentage_points" text,
  "number_of_m_ps" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many candidates were there in the year of 1987?`:
```sql
                SELECT "number_of_candidates" FROM "summary_of_general_election_performance" WHERE "year"='1987';
```
## Task
Generate a SQL query to answer the following question:
`What is the modified torque (lb/ft) when the standard hp n/a?`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the modified torque (lb/ft) when the standard hp n/a?`:
```sql
                SELECT COUNT("modified_torque_lb_ft") FROM "performance_and_riding_the_mt125_r" WHERE "standard_hp"='n/a';
```
## Task
Generate a SQL query to answer the following question:
`When the standard speed (6th gear) is 114, what is the minimum rpm?`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the standard speed (6th gear) is 114, what is the minimum rpm?`:
```sql
                SELECT MIN("rpm") FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='114';
```
## Task
Generate a SQL query to answer the following question:
`when standard speed (6th gear) is 88, what is the rpm?`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `when standard speed (6th gear) is 88, what is the rpm?`:
```sql
                SELECT "rpm" FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='88';
```
## Task
Generate a SQL query to answer the following question:
`What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75?`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the modified speed (6th gear) when standard torque (lb/ft) is 10.3 and modified torque (lb/ft) is 8.75?`:
```sql
                SELECT "modified_speed_6th_gear" FROM "performance_and_riding_the_mt125_r" WHERE "standard_torque_lb_ft"='10.3' AND "modified_torque_lb_ft"='8.75';
```
## Task
Generate a SQL query to answer the following question:
`when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `when the max speed for modified speed (6th gear) where standard speed (6th gear) is 98`:
```sql
                SELECT MAX("modified_speed_6th_gear") FROM "performance_and_riding_the_mt125_r" WHERE "standard_speed_6th_gear"='98';
```
## Task
Generate a SQL query to answer the following question:
`When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?`

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

CREATE TABLE "performance_and_riding_the_mt125_r" (
  "rpm" real,
  "standard_hp" text,
  "standard_torque_lb_ft" text,
  "standard_speed_6th_gear" text,
  "modified_speed_6th_gear" real,
  "modified_hp" text,
  "modified_torque_lb_ft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the standard torque (lb/ft) is 11.53 how much does more is the modified hp?`:
```sql
                SELECT "modified_hp" FROM "performance_and_riding_the_mt125_r" WHERE "standard_torque_lb_ft"='11.53';
```
## Task
Generate a SQL query to answer the following question:
`Which time slot did the season finale on May 18, 2004 hold?`

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

CREATE TABLE "u_s_television_ratings" (
  "season" real,
  "episodes" real,
  "timeslot_est" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time slot did the season finale on May 18, 2004 hold?`:
```sql
                SELECT "timeslot_est" FROM "u_s_television_ratings" WHERE "season_finale"='May 18, 2004';
```
## Task
Generate a SQL query to answer the following question:
`how many assists did the player who played 195 minutes make`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many assists did the player who played 195 minutes make`:
```sql
                SELECT "assists" FROM "player_stats" WHERE "minutes"=195;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest number of blocks`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest number of blocks`:
```sql
                SELECT MIN("blocks") FROM "player_stats";
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest points scored by a player who blocked 21 times`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest points scored by a player who blocked 21 times`:
```sql
                SELECT MIN("points") FROM "player_stats" WHERE "blocks"=21;
```
## Task
Generate a SQL query to answer the following question:
`how many times did debbie black block`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many times did debbie black block`:
```sql
                SELECT "blocks" FROM "player_stats" WHERE "player"='Debbie Black';
```
## Task
Generate a SQL query to answer the following question:
`what is the highest number of goals did the player with 27 asists score`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest number of goals did the player with 27 asists score`:
```sql
                SELECT MAX("field_goals") FROM "player_stats" WHERE "assists"=27;
```
## Task
Generate a SQL query to answer the following question:
`how many assists did the player who scored 251 points make`

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

CREATE TABLE "player_stats" (
  "player" text,
  "minutes" real,
  "field_goals" real,
  "rebounds" real,
  "assists" real,
  "steals" real,
  "blocks" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many assists did the player who scored 251 points make`:
```sql
                SELECT "assists" FROM "player_stats" WHERE "points"=251;
```
## Task
Generate a SQL query to answer the following question:
`What was the production number of the episode filmed in aug/sept 1968?`

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

CREATE TABLE "table1_1971734_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production number of the episode filmed in aug/sept 1968?`:
```sql
                SELECT "prod_num" FROM "table1_1971734_1" WHERE "filmed"='Aug/Sept 1968';
```
## Task
Generate a SQL query to answer the following question:
`Who directed "report 2493:kidnap whose pretty girl are you"?`

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

CREATE TABLE "table1_1971734_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "report 2493:kidnap whose pretty girl are you"?`:
```sql
                SELECT "directed_by" FROM "table1_1971734_1" WHERE "title"='\"REPORT 2493:KIDNAP Whose Pretty Girl Are You\"';
```
## Task
Generate a SQL query to answer the following question:
`When was "report 4407: heart no choice for the donor" filmed?`

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

CREATE TABLE "table1_1971734_1" (
  "episode_num" real,
  "prod_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text,
  "filmed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was "report 4407: heart no choice for the donor" filmed?`:
```sql
                SELECT "filmed" FROM "table1_1971734_1" WHERE "title"='\"REPORT 4407: HEART No Choice for the Donor\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the highest enrollment among the schools?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest enrollment among the schools?`:
```sql
                SELECT MAX("enrollment") FROM "current_members";
```
## Task
Generate a SQL query to answer the following question:
`When did the school from Logan Township, Pennsylvania join the Conference?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the school from Logan Township, Pennsylvania join the Conference?`:
```sql
                SELECT "joined" FROM "current_members" WHERE "location"='Logan Township, Pennsylvania';
```
## Task
Generate a SQL query to answer the following question:
`When was the private/non-sectarian school 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,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the private/non-sectarian school founded?`:
```sql
                SELECT "founded" FROM "current_members" WHERE "type"='Private/Non-sectarian';
```
## Task
Generate a SQL query to answer the following question:
`Where is the school whose students are nicknamed Panthers located?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the school whose students are nicknamed Panthers located?`:
```sql
                SELECT "location" FROM "current_members" WHERE "nickname"='Panthers';
```
## Task
Generate a SQL query to answer the following question:
`How many different enrollment numbers are there for the school whose students are nicknamed Barons?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different enrollment numbers are there for the school whose students are nicknamed Barons?`:
```sql
                SELECT COUNT("enrollment") FROM "current_members" WHERE "nickname"='Barons';
```
## Task
Generate a SQL query to answer the following question:
`In how many different years did schools located in Logan Township, Pennsylvania join the Conference?`

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

CREATE TABLE "current_members" (
  "institution" text,
  "location" text,
  "nickname" text,
  "founded" real,
  "type" text,
  "enrollment" real,
  "joined" real
);
### SQL
Given the database schema, here is the SQL query that answers `In how many different years did schools located in Logan Township, Pennsylvania join the Conference?`:
```sql
                SELECT COUNT("joined") FROM "current_members" WHERE "location"='Logan Township, Pennsylvania';
```