cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What Women's Doubles team played after 2004 and where Line Isberg played Women's Singles?`

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

CREATE TABLE "winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Women's Doubles team played after 2004 and where Line Isberg played Women's Singles?`:
```sql
                SELECT "women_s_doubles" FROM "winners" WHERE "year">2004 AND "women_s_singles"='line isberg';
```
## Task
Generate a SQL query to answer the following question:
`After 1999, who played Men's Doubles when Kasper Ipsen played Men's Singles?`

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

CREATE TABLE "winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `After 1999, who played Men's Doubles when Kasper Ipsen played Men's Singles?`:
```sql
                SELECT "men_s_doubles" FROM "winners" WHERE "year">1999 AND "men_s_singles"='kasper ipsen';
```
## Task
Generate a SQL query to answer the following question:
`In 2010, who was the Women's Singles player?`

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

CREATE TABLE "winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `In 2010, who was the Women's Singles player?`:
```sql
                SELECT "women_s_singles" FROM "winners" WHERE "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team at the matchup at the RCA Dome?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team at the matchup at the RCA Dome?`:
```sql
                SELECT "visiting_team" FROM "1994" WHERE "stadium"='rca dome';
```
## Task
Generate a SQL query to answer the following question:
`What was the final score in the game in which the Detroit Lions were the home team?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final score in the game in which the Detroit Lions were the home team?`:
```sql
                SELECT "final_score" FROM "1994" WHERE "host_team"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`Which stadium hosted the November 20 game?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stadium hosted the November 20 game?`:
```sql
                SELECT "stadium" FROM "1994" WHERE "date"='november 20';
```
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team against the Minnesota Vikings?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team against the Minnesota Vikings?`:
```sql
                SELECT "visiting_team" FROM "1994" WHERE "host_team"='minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`Who was the host team at Candlestick Park?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the host team at Candlestick Park?`:
```sql
                SELECT "host_team" FROM "1994" WHERE "stadium"='candlestick park';
```
## Task
Generate a SQL query to answer the following question:
`Which date had a final score of 20-27?`

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

CREATE TABLE "1994" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date had a final score of 20-27?`:
```sql
                SELECT "date" FROM "1994" WHERE "final_score"='20-27';
```
## Task
Generate a SQL query to answer the following question:
`How many years have had the position of 2nd?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years have had the position of 2nd?`:
```sql
                SELECT COUNT("year") FROM "achievements" WHERE "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What position had notes of 20km and a year earlier than 2002?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position had notes of 20km and a year earlier than 2002?`:
```sql
                SELECT "position" FROM "achievements" WHERE "notes"='20km' AND "year"<2002;
```
## Task
Generate a SQL query to answer the following question:
`What was the venue before 2006, with the position of 10th?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue before 2006, with the position of 10th?`:
```sql
                SELECT "venue" FROM "achievements" WHERE "year"<2006 AND "position"='10th';
```
## Task
Generate a SQL query to answer the following question:
`What were the notes when the Venue was Turin, Italy?`

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

CREATE TABLE "achievements" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the notes when the Venue was Turin, Italy?`:
```sql
                SELECT "notes" FROM "achievements" WHERE "venue"='turin, italy';
```
## Task
Generate a SQL query to answer the following question:
`What is Gareth Morgan's Secondary Military Specialty?`

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

CREATE TABLE "characters" (
  "code_name" text,
  "function_figure" text,
  "real_name" text,
  "birthplace" text,
  "serial_number" text,
  "primary_military_speciality" text,
  "secondary_military_speciality" text,
  "equipment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Gareth Morgan's Secondary Military Specialty?`:
```sql
                SELECT "secondary_military_speciality" FROM "characters" WHERE "real_name"='gareth morgan';
```
## Task
Generate a SQL query to answer the following question:
`What is the Code Name of the figure born in Hawaii?`

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

CREATE TABLE "characters" (
  "code_name" text,
  "function_figure" text,
  "real_name" text,
  "birthplace" text,
  "serial_number" text,
  "primary_military_speciality" text,
  "secondary_military_speciality" text,
  "equipment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Code Name of the figure born in Hawaii?`:
```sql
                SELECT "code_name" FROM "characters" WHERE "birthplace"='hawaii';
```
## Task
Generate a SQL query to answer the following question:
`Name the last title for greater buenos aires and first season of 1920`

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

CREATE TABLE "current_teams" (
  "club" text,
  "district" text,
  "area_province" text,
  "stadium" text,
  "first_season" text,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the last title for greater buenos aires and first season of 1920`:
```sql
                SELECT "last_title" FROM "current_teams" WHERE "area_province"='greater buenos aires' AND "first_season"='1920';
```
## Task
Generate a SQL query to answer the following question:
`Name the area for District of córdoba`

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

CREATE TABLE "current_teams" (
  "club" text,
  "district" text,
  "area_province" text,
  "stadium" text,
  "first_season" text,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the area for District of córdoba`:
```sql
                SELECT "area_province" FROM "current_teams" WHERE "district"='córdoba';
```
## Task
Generate a SQL query to answer the following question:
`Name the last title for club of quilmes`

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

CREATE TABLE "current_teams" (
  "club" text,
  "district" text,
  "area_province" text,
  "stadium" text,
  "first_season" text,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the last title for club of quilmes`:
```sql
                SELECT "last_title" FROM "current_teams" WHERE "club"='quilmes';
```
## Task
Generate a SQL query to answer the following question:
`Name the last time for club of newell's old boys`

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

CREATE TABLE "current_teams" (
  "club" text,
  "district" text,
  "area_province" text,
  "stadium" text,
  "first_season" text,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the last time for club of newell's old boys`:
```sql
                SELECT "last_title" FROM "current_teams" WHERE "club"='newell''s old boys';
```
## Task
Generate a SQL query to answer the following question:
`Name the averag scored for 2011 long teng cup and 2 october 2011`

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

CREATE TABLE "international_career" (
  "date" text,
  "venue" text,
  "result" text,
  "scored" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the averag scored for 2011 long teng cup and 2 october 2011`:
```sql
                SELECT AVG("scored") FROM "international_career" WHERE "competition"='2011 long teng cup' AND "date"='2 october 2011';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.?`

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

CREATE TABLE "le_series_models" (
  "colt_model_no" text,
  "stock" text,
  "fire_control" text,
  "rear_sight" text,
  "forward_assist" text,
  "barrel_length" text,
  "barrel_profile" text,
  "barrel_twist" text,
  "hand_guards" text,
  "bayonet_lug" text,
  "muzzle_device" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.?`:
```sql
                SELECT "barrel_twist" FROM "le_series_models" WHERE "barrel_length"='11.5 in.';
```
## Task
Generate a SQL query to answer the following question:
`What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwindi less than 3,576?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwindi less than 3,576?`:
```sql
                SELECT SUM("region_total") FROM "population" WHERE "year"<1986 AND "waggamba"='2,732' AND "goondiwindi"<'3,576';
```
## Task
Generate a SQL query to answer the following question:
`What is the average year that had a value less than 2,575 in Inglewood?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average year that had a value less than 2,575 in Inglewood?`:
```sql
                SELECT AVG("year") FROM "population" WHERE "inglewood"<'2,575';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwindi had less than 4,374?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwindi had less than 4,374?`:
```sql
                SELECT MAX("waggamba") FROM "population" WHERE "inglewood"='2,771' AND "goondiwindi"<'4,374';
```
## Task
Generate a SQL query to answer the following question:
`What is the lost amount in Goondiwindi after 2001, and Inglewood had more than 2,586?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lost amount in Goondiwindi after 2001, and Inglewood had more than 2,586?`:
```sql
                SELECT MIN("goondiwindi") FROM "population" WHERE "inglewood">'2,586' AND "year">2001;
```
## Task
Generate a SQL query to answer the following question:
`In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374, and there is a region total higher than 9,114?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374, and there is a region total higher than 9,114?`:
```sql
                SELECT AVG("inglewood") FROM "population" WHERE "region_total">'9,114' AND "year"=1996 AND "goondiwindi">'4,374';
```
## Task
Generate a SQL query to answer the following question:
`What is the region total after 2001 when Goondiwindi had more than 4,103 and Inglewood was at 2,613?`

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

CREATE TABLE "population" (
  "year" real,
  "region_total" real,
  "goondiwindi" real,
  "waggamba" real,
  "inglewood" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region total after 2001 when Goondiwindi had more than 4,103 and Inglewood was at 2,613?`:
```sql
                SELECT COUNT("region_total") FROM "population" WHERE "goondiwindi">'4,103' AND "inglewood"='2,613' AND "year">2001;
```
## Task
Generate a SQL query to answer the following question:
`What is the nature of the incident in Kabul on 2004-01-28?`

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

CREATE TABLE "2004" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nature of the incident in Kabul on 2004-01-28?`:
```sql
                SELECT "nature_of_incident" FROM "2004" WHERE "location"='kabul' AND "date"='2004-01-28';
```
## Task
Generate a SQL query to answer the following question:
`What is the nature of the incident that's a bomb attack?`

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

CREATE TABLE "2004" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nature of the incident that's a bomb attack?`:
```sql
                SELECT "nature_of_incident" FROM "2004" WHERE "circumstances"='bomb attack';
```
## Task
Generate a SQL query to answer the following question:
`What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?`

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

CREATE TABLE "2004" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied?`:
```sql
                SELECT "nature_of_incident" FROM "2004" WHERE "casualties"='3 wia' AND "circumstances"='ied';
```
## Task
Generate a SQL query to answer the following question:
`Which Casualties have a Location of kunduz, and Circumstances of suicide?`

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

CREATE TABLE "2004" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Casualties have a Location of kunduz, and Circumstances of suicide?`:
```sql
                SELECT "casualties" FROM "2004" WHERE "location"='kunduz' AND "circumstances"='suicide';
```
## Task
Generate a SQL query to answer the following question:
`Which Casualties have a hostile Nature of incident and Circumstances of mortar attack?`

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

CREATE TABLE "2004" (
  "date" text,
  "location" text,
  "nature_of_incident" text,
  "circumstances" text,
  "casualties" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Casualties have a hostile Nature of incident and Circumstances of mortar attack?`:
```sql
                SELECT "casualties" FROM "2004" WHERE "nature_of_incident"='hostile' AND "circumstances"='mortar attack';
```
## Task
Generate a SQL query to answer the following question:
`When was the delegate who has previous experience as a commissioner of health born?`

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

CREATE TABLE "delegates" (
  "district" text,
  "party" text,
  "religion" text,
  "former_experience" text,
  "assumed_office" real,
  "born_in" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the delegate who has previous experience as a commissioner of health born?`:
```sql
                SELECT "born_in" FROM "delegates" WHERE "former_experience"='commissioner of health';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the airport in the city of Kota Kinabalu?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the airport in the city of Kota Kinabalu?`:
```sql
                SELECT "airport" FROM "see_also" WHERE "city"='kota kinabalu';
```
## Task
Generate a SQL query to answer the following question:
`What is the IATA for the city of Amsterdam?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IATA for the city of Amsterdam?`:
```sql
                SELECT "iata" FROM "see_also" WHERE "city"='amsterdam';
```
## Task
Generate a SQL query to answer the following question:
`Which country has an IATA of JFK?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country has an IATA of JFK?`:
```sql
                SELECT "country" FROM "see_also" WHERE "iata"='jfk';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an IATA of AUH?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an IATA of AUH?`:
```sql
                SELECT "city" FROM "see_also" WHERE "iata"='auh';
```
## Task
Generate a SQL query to answer the following question:
`Which airport has an IATA of AMS?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which airport has an IATA of AMS?`:
```sql
                SELECT "airport" FROM "see_also" WHERE "iata"='ams';
```
## Task
Generate a SQL query to answer the following question:
`Which city has an ICAO of Kiah?`

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

CREATE TABLE "see_also" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city has an ICAO of Kiah?`:
```sql
                SELECT "city" FROM "see_also" WHERE "icao"='kiah';
```
## Task
Generate a SQL query to answer the following question:
`What Genre did Sándor Simó direct?`

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

CREATE TABLE "actor" (
  "original_title" text,
  "title_in_english" text,
  "genre" text,
  "role" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Genre did Sándor Simó direct?`:
```sql
                SELECT "genre" FROM "actor" WHERE "directed_by"='sándor simó';
```
## Task
Generate a SQL query to answer the following question:
`What is the Genre for Malina (ger.-aus.-fr.), an Original Title?`

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

CREATE TABLE "actor" (
  "original_title" text,
  "title_in_english" text,
  "genre" text,
  "role" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Genre for Malina (ger.-aus.-fr.), an Original Title?`:
```sql
                SELECT "genre" FROM "actor" WHERE "original_title"='malina (ger.-aus.-fr.)';
```
## Task
Generate a SQL query to answer the following question:
`The Last Metro refers to which Original Title?`

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

CREATE TABLE "actor" (
  "original_title" text,
  "title_in_english" text,
  "genre" text,
  "role" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Last Metro refers to which Original Title?`:
```sql
                SELECT "original_title" FROM "actor" WHERE "title_in_english"='the last metro';
```
## Task
Generate a SQL query to answer the following question:
`What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?`

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

CREATE TABLE "actor" (
  "original_title" text,
  "title_in_english" text,
  "genre" text,
  "role" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?`:
```sql
                SELECT "genre" FROM "actor" WHERE "role"='episode actor' AND "original_title"='franciska vasárnapjai (hungarian)';
```
## Task
Generate a SQL query to answer the following question:
`What is the Original title for an Episode Actor role which was Directed by Géza Bereményi?`

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

CREATE TABLE "actor" (
  "original_title" text,
  "title_in_english" text,
  "genre" text,
  "role" text,
  "directed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Original title for an Episode Actor role which was Directed by Géza Bereményi?`:
```sql
                SELECT "original_title" FROM "actor" WHERE "role"='episode actor' AND "directed_by"='géza bereményi';
```
## Task
Generate a SQL query to answer the following question:
`What is the round for bob randall?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round for bob randall?`:
```sql
                SELECT AVG("round") FROM "june_draft" WHERE "name"='bob randall';
```
## Task
Generate a SQL query to answer the following question:
`what is the position when signed is yes, round is less than 24 and name is charlie hough?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position when signed is yes, round is less than 24 and name is charlie hough?`:
```sql
                SELECT "position" FROM "june_draft" WHERE "signed"='yes' AND "round"<24 AND "name"='charlie hough';
```
## Task
Generate a SQL query to answer the following question:
`what is the school when signed is no and round is 50?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school when signed is no and round is 50?`:
```sql
                SELECT "school" FROM "june_draft" WHERE "signed"='no' AND "round"=50;
```
## Task
Generate a SQL query to answer the following question:
`what is the school for round 8?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the school for round 8?`:
```sql
                SELECT "school" FROM "june_draft" WHERE "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`what is the position for robert johnson?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position for robert johnson?`:
```sql
                SELECT "position" FROM "june_draft" WHERE "name"='robert johnson';
```
## Task
Generate a SQL query to answer the following question:
`Was position ss from carson city high school signed?`

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

CREATE TABLE "june_draft" (
  "round" real,
  "name" text,
  "position" text,
  "school" text,
  "signed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was position ss from carson city high school signed?`:
```sql
                SELECT "signed" FROM "june_draft" WHERE "position"='ss' AND "school"='carson city high school';
```
## Task
Generate a SQL query to answer the following question:
`What was the average number of yards Michael Henig had in a year when he had more than 12 starts/`

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

CREATE TABLE "statistics" (
  "year" text,
  "class" text,
  "games" real,
  "starts" real,
  "comp" real,
  "yards" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average number of yards Michael Henig had in a year when he had more than 12 starts/`:
```sql
                SELECT AVG("yards") FROM "statistics" WHERE "starts">12;
```
## Task
Generate a SQL query to answer the following question:
`What was the average number of starts Michael Henig had in a year when he had more than 1201 yards?`

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

CREATE TABLE "statistics" (
  "year" text,
  "class" text,
  "games" real,
  "starts" real,
  "comp" real,
  "yards" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average number of starts Michael Henig had in a year when he had more than 1201 yards?`:
```sql
                SELECT AVG("starts") FROM "statistics" WHERE "yards">1201;
```
## Task
Generate a SQL query to answer the following question:
`Name the airport with IATA of cxb`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airport with IATA of cxb`:
```sql
                SELECT "airport" FROM "list" WHERE "iata"='cxb';
```
## Task
Generate a SQL query to answer the following question:
`Name the airport with IATA of dmk`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airport with IATA of dmk`:
```sql
                SELECT "airport" FROM "list" WHERE "iata"='dmk';
```
## Task
Generate a SQL query to answer the following question:
`Name the city that has singapore changi airport`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the city that has singapore changi airport`:
```sql
                SELECT "city" FROM "list" WHERE "airport"='singapore changi airport';
```
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for when IATA is zyl`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for when IATA is zyl`:
```sql
                SELECT "icao" FROM "list" WHERE "iata"='zyl';
```
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for IATA of rgn`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for IATA of rgn`:
```sql
                SELECT "icao" FROM "list" WHERE "iata"='rgn';
```
## Task
Generate a SQL query to answer the following question:
`Name the ICAO for IATA of ccu`

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

CREATE TABLE "list" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the ICAO for IATA of ccu`:
```sql
                SELECT "icao" FROM "list" WHERE "iata"='ccu';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest gold with a Total larger than 16?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest gold with a Total larger than 16?`:
```sql
                SELECT MAX("gold") FROM "medal_table" WHERE "total">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "total"<2 AND "bronze"<1 AND "nation"='yugoslavia';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest bronze with a Nation of west germany, and a Gold larger than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest bronze with a Nation of west germany, and a Gold larger than 0?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='west germany' AND "gold">0;
```
## Task
Generate a SQL query to answer the following question:
`What was the record on July 2?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record on July 2?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='july 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest silver with less than 0 gold?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest silver with less than 0 gold?`:
```sql
                SELECT MAX("silver") FROM "medal_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What's the average total viewers that has 17.6% Share?`

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

CREATE TABLE "series_1" (
  "episode_no" real,
  "airdate" text,
  "total_viewers" real,
  "share" text,
  "bbc_one_weekly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average total viewers that has 17.6% Share?`:
```sql
                SELECT AVG("total_viewers") FROM "series_1" WHERE "share"='17.6%';
```
## Task
Generate a SQL query to answer the following question:
`What's the share of Episode 1?`

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

CREATE TABLE "series_1" (
  "episode_no" real,
  "airdate" text,
  "total_viewers" real,
  "share" text,
  "bbc_one_weekly_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the share of Episode 1?`:
```sql
                SELECT "share" FROM "series_1" WHERE "episode_no"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many locomotives were made that were withdrawn in 1913?`

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

CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "date_made" text,
  "gsr_class" text,
  "gsr_nos" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many locomotives were made that were withdrawn in 1913?`:
```sql
                SELECT "quantity_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "withdrawn"='1913';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of creation for the locomotive having a type of 0-4-2`

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

CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "date_made" text,
  "gsr_class" text,
  "gsr_nos" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of creation for the locomotive having a type of 0-4-2`:
```sql
                SELECT "date_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "type"='0-4-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441?`

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

CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
  "type" text,
  "fleet_numbers" text,
  "quantity_made" real,
  "date_made" text,
  "gsr_class" text,
  "gsr_nos" text,
  "withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441?`:
```sql
                SELECT "date_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "type"='0-6-0' AND "gsr_class"='441';
```
## Task
Generate a SQL query to answer the following question:
`In Round 19, where did Tony Lockett play?`

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

CREATE TABLE "most_goals_in_a_game" (
  "rank" text,
  "score" text,
  "player" text,
  "club" text,
  "opponent" text,
  "year" text,
  "round" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `In Round 19, where did Tony Lockett play?`:
```sql
                SELECT "venue" FROM "most_goals_in_a_game" WHERE "round"='19' AND "player"='tony lockett';
```
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in 1992?`

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

CREATE TABLE "most_goals_in_a_game" (
  "rank" text,
  "score" text,
  "player" text,
  "club" text,
  "opponent" text,
  "year" text,
  "round" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent in 1992?`:
```sql
                SELECT "opponent" FROM "most_goals_in_a_game" WHERE "year"='1992';
```
## Task
Generate a SQL query to answer the following question:
`What club had a score of 18.1?`

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

CREATE TABLE "most_goals_in_a_game" (
  "rank" text,
  "score" text,
  "player" text,
  "club" text,
  "opponent" text,
  "year" text,
  "round" text,
  "venue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What club had a score of 18.1?`:
```sql
                SELECT "club" FROM "most_goals_in_a_game" WHERE "score"='18.1';
```
## Task
Generate a SQL query to answer the following question:
`What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?`

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

CREATE TABLE "references" (
  "br_sr_no" text,
  "sr_name" text,
  "lswr_no" real,
  "builder" text,
  "built" real,
  "to_io_w" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?`:
```sql
                SELECT COUNT("built") FROM "references" WHERE "withdrawn"=1967 AND "br_sr_no"='w27' AND "to_io_w"<1926;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?`

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

CREATE TABLE "references" (
  "br_sr_no" text,
  "sr_name" text,
  "lswr_no" real,
  "builder" text,
  "built" real,
  "to_io_w" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?`:
```sql
                SELECT COUNT("withdrawn") FROM "references" WHERE "lswr_no">210 AND "to_io_w"=1923;
```
## Task
Generate a SQL query to answer the following question:
`What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?`

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

CREATE TABLE "references" (
  "br_sr_no" text,
  "sr_name" text,
  "lswr_no" real,
  "builder" text,
  "built" real,
  "to_io_w" real,
  "withdrawn" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?`:
```sql
                SELECT "br_sr_no" FROM "references" WHERE "withdrawn"=1967 AND "built"<1892 AND "to_io_w">1927 AND "sr_name"='freshwater';
```
## Task
Generate a SQL query to answer the following question:
`Name the engine for year less than 1977`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the engine for year less than 1977`:
```sql
                SELECT "engine" FROM "indy_500_results" WHERE "year"<1977;
```
## Task
Generate a SQL query to answer the following question:
`Name the start for year less than 1977`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the start for year less than 1977`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "year"<1977;
```
## Task
Generate a SQL query to answer the following question:
`Name the least year for start of 17th`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least year for start of 17th`:
```sql
                SELECT MIN("year") FROM "indy_500_results" WHERE "start"='17th';
```
## Task
Generate a SQL query to answer the following question:
`Name the start for finish being 21st`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "chassis" text,
  "engine" text,
  "start" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the start for finish being 21st`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "finish"='21st';
```
## Task
Generate a SQL query to answer the following question:
`What is the Call sign of the Omni television network with a Digitial PSIP of 14.1?`

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

CREATE TABLE "television" (
  "digital_channel" text,
  "digital_psip" real,
  "rogers_cable_ottawa" real,
  "vid_otron_gatineau" real,
  "call_sign" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Call sign of the Omni television network with a Digitial PSIP of 14.1?`:
```sql
                SELECT "call_sign" FROM "television" WHERE "network"='omni television' AND "digital_psip"=14.1;
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14?`

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

CREATE TABLE "television" (
  "digital_channel" text,
  "digital_psip" real,
  "rogers_cable_ottawa" real,
  "vid_otron_gatineau" real,
  "call_sign" text,
  "network" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14?`:
```sql
                SELECT COUNT("rogers_cable_ottawa") FROM "television" WHERE "digital_psip">9.1 AND "vid_otron_gatineau"=14;
```