cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?`

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

CREATE TABLE "doubles_24_11_13" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?`:
```sql
                SELECT "date" FROM "doubles_24_11_13" WHERE "outcome"='winner' AND "opponents"='paul haarhuis sandon stolle';
```
## Task
Generate a SQL query to answer the following question:
`What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?`

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

CREATE TABLE "doubles_24_11_13" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Outcome, when Partner is "Byron Black", and when Opponents is "Goran Ivanišević Brian Macphie"?`:
```sql
                SELECT "outcome" FROM "doubles_24_11_13" WHERE "partner"='byron black' AND "opponents"='goran ivanišević brian macphie';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Date is "9 August 1993"?`

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

CREATE TABLE "doubles_24_11_13" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Date is "9 August 1993"?`:
```sql
                SELECT "tournament" FROM "doubles_24_11_13" WHERE "date"='9 august 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Player is "Arnold Palmer"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Player is "Arnold Palmer"?`:
```sql
                SELECT "place" FROM "third_round" WHERE "player"='arnold palmer';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when To Par is +1, and when Score is 72-70-72=214?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when To Par is +1, and when Score is 72-70-72=214?`:
```sql
                SELECT "player" FROM "third_round" WHERE "to_par"='+1' AND "score"='72-70-72=214';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Country is United States, and when Player is "Arnold Palmer"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Country is United States, and when Player is "Arnold Palmer"?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='united states' AND "player"='arnold palmer';
```
## Task
Generate a SQL query to answer the following question:
`What is To Par, when Country is United States, and when Score is 71-68-73=212?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To Par, when Country is United States, and when Score is 71-68-73=212?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "country"='united states' AND "score"='71-68-73=212';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Country is United States, and when Score is 70-72-70=212?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Country is United States, and when Score is 70-72-70=212?`:
```sql
                SELECT "player" FROM "third_round" WHERE "country"='united states' AND "score"='70-72-70=212';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when Player is "Billy Maxwell"?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when Player is "Billy Maxwell"?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='billy maxwell';
```
## Task
Generate a SQL query to answer the following question:
`Who has a react smaller than 0.149 and a lane smaller than 6?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a react smaller than 0.149 and a lane smaller than 6?`:
```sql
                SELECT "name" FROM "final" WHERE "react"<0.149 AND "lane"<6;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest lane with a mark of 7.26?`

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

CREATE TABLE "final" (
  "lane" real,
  "name" text,
  "country" text,
  "mark" text,
  "react" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest lane with a mark of 7.26?`:
```sql
                SELECT MIN("lane") FROM "final" WHERE "mark"='7.26';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?`

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

CREATE TABLE "season_averages" (
  "season" real,
  "total_attendance" real,
  "games" real,
  "average" real,
  "high_avg" real,
  "team" text,
  "no_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of games when the season is more recent than 2001 and the average is less than 10,838?`:
```sql
                SELECT MAX("games") FROM "season_averages" WHERE "season">2001 AND "average"<'10,838';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of clubs when the average is more than 18,571, there are fewer than 182 games and the total attendance is 3,140,280 in a year more recent than 1995?`

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

CREATE TABLE "season_averages" (
  "season" real,
  "total_attendance" real,
  "games" real,
  "average" real,
  "high_avg" real,
  "team" text,
  "no_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of clubs when the average is more than 18,571, there are fewer than 182 games and the total attendance is 3,140,280 in a year more recent than 1995?`:
```sql
                SELECT AVG("no_of_clubs") FROM "season_averages" WHERE "average">'18,571' AND "games"<182 AND "total_attendance"='3,140,280' AND "season">1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of clubs for Shenyang Ginde when there were more than 182 games?`

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

CREATE TABLE "season_averages" (
  "season" real,
  "total_attendance" real,
  "games" real,
  "average" real,
  "high_avg" real,
  "team" text,
  "no_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of clubs for Shenyang Ginde when there were more than 182 games?`:
```sql
                SELECT COUNT("no_of_clubs") FROM "season_averages" WHERE "team"='shenyang ginde' AND "games">182;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest average for Beijing Guo'an when they played more than 240 games?`

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

CREATE TABLE "season_averages" (
  "season" real,
  "total_attendance" real,
  "games" real,
  "average" real,
  "high_avg" real,
  "team" text,
  "no_of_clubs" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest average for Beijing Guo'an when they played more than 240 games?`:
```sql
                SELECT MIN("average") FROM "season_averages" WHERE "team"='beijing guo''an' AND "games">240;
```
## Task
Generate a SQL query to answer the following question:
`What is the average pick number for Washington State?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average pick number for Washington State?`:
```sql
                SELECT AVG("pick") FROM "nfl_draft" WHERE "school"='washington state';
```
## Task
Generate a SQL query to answer the following question:
`Which Comments has a Length Over All of 4.5m?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Comments has a Length Over All of 4.5m?`:
```sql
                SELECT "comments" FROM "current_and_notable_past_models" WHERE "length_over_all"='4.5m';
```
## Task
Generate a SQL query to answer the following question:
`Which Crew has Comments of daggerboards. design: roy seaman?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crew has Comments of daggerboards. design: roy seaman?`:
```sql
                SELECT "crew" FROM "current_and_notable_past_models" WHERE "comments"='daggerboards. design: roy seaman';
```
## Task
Generate a SQL query to answer the following question:
`Which Comments has a Model of 18sq?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Comments has a Model of 18sq?`:
```sql
                SELECT "comments" FROM "current_and_notable_past_models" WHERE "model"='18sq';
```
## Task
Generate a SQL query to answer the following question:
`Which Model has Comments of curved daggerboards. design: morelli und melvin?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Model has Comments of curved daggerboards. design: morelli und melvin?`:
```sql
                SELECT "model" FROM "current_and_notable_past_models" WHERE "comments"='curved daggerboards. design: morelli und melvin';
```
## Task
Generate a SQL query to answer the following question:
`Which Beam has a Model of 570?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Beam has a Model of 570?`:
```sql
                SELECT "beam" FROM "current_and_notable_past_models" WHERE "model"='570';
```
## Task
Generate a SQL query to answer the following question:
`Which Model has a Sail Area of 24.5 m²?`

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

CREATE TABLE "current_and_notable_past_models" (
  "model" text,
  "length_over_all" text,
  "beam" text,
  "sail_area" text,
  "crew" text,
  "comments" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Model has a Sail Area of 24.5 m²?`:
```sql
                SELECT "model" FROM "current_and_notable_past_models" WHERE "sail_area"='24.5 m²';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the game numbers for games with less than 30 points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the game numbers for games with less than 30 points?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "points"<30;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game against the buffalo sabres?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game against the buffalo sabres?`:
```sql
                SELECT "location" FROM "game_log" WHERE "opponent"='buffalo sabres';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest area that has a Population Density of 3,216 and a Population larger than 16,650,000?`

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

CREATE TABLE "largest_metropolitan_areas" (
  "rank" real,
  "metropolitan_area" text,
  "country" text,
  "population" real,
  "area_km" real,
  "population_density_people_km" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest area that has a Population Density of 3,216 and a Population larger than 16,650,000?`:
```sql
                SELECT MIN("area_km") FROM "largest_metropolitan_areas" WHERE "population_density_people_km"='3,216' AND "population">'16,650,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest BR number with a SECR number of 765?`

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

CREATE TABLE "l_class_locomotive_fleet_summary" (
  "secr_no" real,
  "sr_no" real,
  "br_no" real,
  "builder" text,
  "date_delivered" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest BR number with a SECR number of 765?`:
```sql
                SELECT MAX("br_no") FROM "l_class_locomotive_fleet_summary" WHERE "secr_no"=765;
```
## Task
Generate a SQL query to answer the following question:
`What is Beyer Peacock's SR number with a SECR number of 769?`

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

CREATE TABLE "l_class_locomotive_fleet_summary" (
  "secr_no" real,
  "sr_no" real,
  "br_no" real,
  "builder" text,
  "date_delivered" text,
  "date_withdrawn" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Beyer Peacock's SR number with a SECR number of 769?`:
```sql
                SELECT AVG("sr_no") FROM "l_class_locomotive_fleet_summary" WHERE "builder"='beyer peacock' AND "secr_no"=769;
```
## Task
Generate a SQL query to answer the following question:
`What is the tyre of nismo team member satoshi motoyama when he has rounds of all?`

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

CREATE TABLE "gt500" (
  "team" text,
  "make" text,
  "drivers" text,
  "tyre" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyre of nismo team member satoshi motoyama when he has rounds of all?`:
```sql
                SELECT "tyre" FROM "gt500" WHERE "rounds"='all' AND "team"='nismo' AND "drivers"='satoshi motoyama';
```
## Task
Generate a SQL query to answer the following question:
`What is the tyre of real racing with leon team member koudai tsukakoshi?`

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

CREATE TABLE "gt500" (
  "team" text,
  "make" text,
  "drivers" text,
  "tyre" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the tyre of real racing with leon team member koudai tsukakoshi?`:
```sql
                SELECT "tyre" FROM "gt500" WHERE "team"='real racing with leon' AND "drivers"='koudai tsukakoshi';
```
## Task
Generate a SQL query to answer the following question:
`Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?`

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

CREATE TABLE "gt500" (
  "team" text,
  "make" text,
  "drivers" text,
  "tyre" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which drives drove a lexus, made all rounds, had a tyre of B and was on the team of petronas toyota team tom's?`:
```sql
                SELECT "drivers" FROM "gt500" WHERE "rounds"='all' AND "make"='lexus' AND "tyre"='b' AND "team"='petronas toyota team tom''s';
```
## Task
Generate a SQL query to answer the following question:
`When driver yuji tachikawa had a make of lexus, what team did he represent?`

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

CREATE TABLE "gt500" (
  "team" text,
  "make" text,
  "drivers" text,
  "tyre" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `When driver yuji tachikawa had a make of lexus, what team did he represent?`:
```sql
                SELECT "team" FROM "gt500" WHERE "make"='lexus' AND "drivers"='yuji tachikawa';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Capacity, when Team is "Denizlispor"?`

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

CREATE TABLE "overview" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "venue" text,
  "capacity" real,
  "kitmaker" text,
  "shirt_sponsor" text,
  "club_chairman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Capacity, when Team is "Denizlispor"?`:
```sql
                SELECT SUM("capacity") FROM "overview" WHERE "team"='denizlispor';
```
## Task
Generate a SQL query to answer the following question:
`What is the Team, when Team Captain is "Uğur Kavuk"?`

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

CREATE TABLE "overview" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "venue" text,
  "capacity" real,
  "kitmaker" text,
  "shirt_sponsor" text,
  "club_chairman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Team, when Team Captain is "Uğur Kavuk"?`:
```sql
                SELECT "team" FROM "overview" WHERE "team_captain"='uğur kavuk';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Venue is "Şükrü Saracoğlu Stadium"?`

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

CREATE TABLE "overview" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "venue" text,
  "capacity" real,
  "kitmaker" text,
  "shirt_sponsor" text,
  "club_chairman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Venue is "Şükrü Saracoğlu Stadium"?`:
```sql
                SELECT "team" FROM "overview" WHERE "venue"='şükrü saracoğlu stadium';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Capacity is greater than 16,981, and when Venue is "Atatürk Olympic Stadium"?`

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

CREATE TABLE "overview" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "venue" text,
  "capacity" real,
  "kitmaker" text,
  "shirt_sponsor" text,
  "club_chairman" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Capacity is greater than 16,981, and when Venue is "Atatürk Olympic Stadium"?`:
```sql
                SELECT "team" FROM "overview" WHERE "capacity">'16,981' AND "venue"='atatürk olympic stadium';
```
## Task
Generate a SQL query to answer the following question:
`Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?`

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

CREATE TABLE "seasons_overview" (
  "season" text,
  "duration" text,
  "gagarin_cup_winner" text,
  "gagarin_cup_finalist" text,
  "continental_cup_winner" text,
  "top_scorer" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the gagarin cup winner when avangard omsk is the gagarin cup finalist?`:
```sql
                SELECT "gagarin_cup_winner" FROM "seasons_overview" WHERE "gagarin_cup_finalist"='avangard omsk';
```
## Task
Generate a SQL query to answer the following question:
`What was the resolution of the fight where andre roberts record was 9-1?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the resolution of the fight where andre roberts record was 9-1?`:
```sql
                SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='9-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of goiás team 2?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of goiás team 2?`:
```sql
                SELECT "2nd_leg" FROM "first_stage" WHERE "team_num2"='goiás';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg of emelec team 2?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg of emelec team 2?`:
```sql
                SELECT "2nd_leg" FROM "first_stage" WHERE "team_num2"='emelec';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg with ldu quito as team 1?`

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

CREATE TABLE "first_stage" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg with ldu quito as team 1?`:
```sql
                SELECT "2nd_leg" FROM "first_stage" WHERE "team_num1"='ldu quito';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the bridge located in McClain listed?`

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

CREATE TABLE "references" (
  "name" text,
  "built" text,
  "listed" text,
  "location" text,
  "county" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the bridge located in McClain listed?`:
```sql
                SELECT "listed" FROM "references" WHERE "location"='mcclain';
```
## Task
Generate a SQL query to answer the following question:
`What is the source on 6 September?`

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

CREATE TABLE "calendar" (
  "date" text,
  "place" text,
  "race_winners" text,
  "gp_winner" text,
  "source" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the source on 6 September?`:
```sql
                SELECT "source" FROM "calendar" WHERE "date"='6 september';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Result of l 21-19?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Result of l 21-19?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "result"='l 21-19';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Result of l 41-14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Result of l 41-14?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "result"='l 41-14';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has a Date of september 3, 2000?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has a Date of september 3, 2000?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='september 3, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has an Attendance of 54,626?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has an Attendance of 54,626?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='54,626';
```
## Task
Generate a SQL query to answer the following question:
`Which Result has an Attendance of bye?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Result has an Attendance of bye?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='bye';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest preliminary when swimsuit is less than 8.822, interview is more than 8.744 and gown is more than 9.333?`:
```sql
                SELECT MIN("preliminary") FROM "final_competition_scores" WHERE "swimsuit"<8.822 AND "interview">8.744 AND "evening_gown">9.333;
```
## Task
Generate a SQL query to answer the following question:
`What is the best preliminary for a contestant from New Mexico with interview less than 9.533?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best preliminary for a contestant from New Mexico with interview less than 9.533?`:
```sql
                SELECT MAX("preliminary") FROM "final_competition_scores" WHERE "state"='new mexico' AND "interview"<9.533;
```
## Task
Generate a SQL query to answer the following question:
`What state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What state has a swimsuit less than 9.277, gown more than 8.944 and preliminary greater than 8.483?`:
```sql
                SELECT "state" FROM "final_competition_scores" WHERE "swimsuit"<9.277 AND "evening_gown">8.944 AND "preliminary"<8.483;
```
## Task
Generate a SQL query to answer the following question:
`What is the average when interview is 9.465 and evening gown is less than 9.454?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average when interview is 9.465 and evening gown is less than 9.454?`:
```sql
                SELECT SUM("average") FROM "final_competition_scores" WHERE "interview"=9.465 AND "evening_gown"<9.454;
```
## Task
Generate a SQL query to answer the following question:
`What is the best preliminary score from a contestant from Oklahoma with evening gown less than 8.853?`

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

CREATE TABLE "final_competition_scores" (
  "state" text,
  "preliminary" real,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best preliminary score from a contestant from Oklahoma with evening gown less than 8.853?`:
```sql
                SELECT MAX("preliminary") FROM "final_competition_scores" WHERE "state"='oklahoma' AND "evening_gown"<8.853;
```
## Task
Generate a SQL query to answer the following question:
`What is Written By, when Originalairdate is 25 April 1993?`

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

CREATE TABLE "episodes" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Written By, when Originalairdate is 25 April 1993?`:
```sql
                SELECT "written_by" FROM "episodes" WHERE "originalairdate"='25 april 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is Directed By, when Episode # is 7?`

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

CREATE TABLE "episodes" (
  "episode_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "originalairdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Directed By, when Episode # is 7?`:
```sql
                SELECT "directed_by" FROM "episodes" WHERE "episode_num"=7;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" text,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?`:
```sql
                SELECT MIN("avg_finish") FROM "nascar_sprint_cup_series" WHERE "position"='40th' AND "top_5">0;
```
## Task
Generate a SQL query to answer the following question:
`What country has 50 supermarkets?`

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

CREATE TABLE "europe" (
  "country" text,
  "first_store" text,
  "hypermarkets" text,
  "supermarkets" text,
  "hard_discounters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has 50 supermarkets?`:
```sql
                SELECT "country" FROM "europe" WHERE "supermarkets"='50';
```
## Task
Generate a SQL query to answer the following question:
`What country has 370 supermarkets?`

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

CREATE TABLE "europe" (
  "country" text,
  "first_store" text,
  "hypermarkets" text,
  "supermarkets" text,
  "hard_discounters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has 370 supermarkets?`:
```sql
                SELECT "country" FROM "europe" WHERE "supermarkets"='370';
```
## Task
Generate a SQL query to answer the following question:
`What country has a fire store of 1991 and a hard discounter of 397?`

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

CREATE TABLE "europe" (
  "country" text,
  "first_store" text,
  "hypermarkets" text,
  "supermarkets" text,
  "hard_discounters" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has a fire store of 1991 and a hard discounter of 397?`:
```sql
                SELECT "country" FROM "europe" WHERE "first_store"='1991' AND "hard_discounters"='397';
```
## Task
Generate a SQL query to answer the following question:
`Which engine is in all rounds with Tsugio Matsuda driving?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine is in all rounds with Tsugio Matsuda driving?`:
```sql
                SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='all' AND "driver"='tsugio matsuda';
```
## Task
Generate a SQL query to answer the following question:
`Which engine is used by Team Lemans with Hiroaki Ishiura driving?`

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

CREATE TABLE "teams_and_drivers" (
  "team" text,
  "driver" text,
  "chassis" text,
  "engine" text,
  "rounds" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which engine is used by Team Lemans with Hiroaki Ishiura driving?`:
```sql
                SELECT "engine" FROM "teams_and_drivers" WHERE "team"='team lemans' AND "driver"='hiroaki ishiura';
```
## Task
Generate a SQL query to answer the following question:
`What is the least rank with more than 3 losses and less than 25 sets lost?`

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

CREATE TABLE "eliminations_standing" (
  "rank" real,
  "team" text,
  "loss" real,
  "sets_won" real,
  "sets_lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least rank with more than 3 losses and less than 25 sets lost?`:
```sql
                SELECT MIN("rank") FROM "eliminations_standing" WHERE "loss">3 AND "sets_lost"<25;
```
## Task
Generate a SQL query to answer the following question:
`What is the least rank with more than 16 sets won and less than 1 loss?`

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

CREATE TABLE "eliminations_standing" (
  "rank" real,
  "team" text,
  "loss" real,
  "sets_won" real,
  "sets_lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least rank with more than 16 sets won and less than 1 loss?`:
```sql
                SELECT MIN("rank") FROM "eliminations_standing" WHERE "sets_won">16 AND "loss"<1;
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when the away team was Telford United?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when the away team was Telford United?`:
```sql
                SELECT "home_team" FROM "fifth_round_proper" WHERE "away_team"='telford united';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the away team was West Ham United?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the away team was West Ham United?`:
```sql
                SELECT "score" FROM "fifth_round_proper" WHERE "away_team"='west ham united';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tie Number when the home team was West Ham United?`

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

CREATE TABLE "fifth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tie Number when the home team was West Ham United?`:
```sql
                SELECT "tie_no" FROM "fifth_round_proper" WHERE "home_team"='west ham united';
```
## Task
Generate a SQL query to answer the following question:
`Name the Model Number which has a FSB Speed of 400 mhz?`

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

CREATE TABLE "ultra_low_voltage_90_nm" (
  "model_number" text,
  "clock_speed" text,
  "l2_cache" text,
  "fsb_speed" text,
  "voltage_range" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Model Number which has a FSB Speed of 400 mhz?`:
```sql
                SELECT "model_number" FROM "ultra_low_voltage_90_nm" WHERE "fsb_speed"='400 mhz';
```
## Task
Generate a SQL query to answer the following question:
`Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz?`

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

CREATE TABLE "ultra_low_voltage_90_nm" (
  "model_number" text,
  "clock_speed" text,
  "l2_cache" text,
  "fsb_speed" text,
  "voltage_range" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz?`:
```sql
                SELECT "voltage_range" FROM "ultra_low_voltage_90_nm" WHERE "fsb_speed"='400 mhz' AND "clock_speed"='1 ghz';
```
## Task
Generate a SQL query to answer the following question:
`Name the L2 Cache which has a Clock Speed of 1.5 ghz?`

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

CREATE TABLE "ultra_low_voltage_90_nm" (
  "model_number" text,
  "clock_speed" text,
  "l2_cache" text,
  "fsb_speed" text,
  "voltage_range" text,
  "socket" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the L2 Cache which has a Clock Speed of 1.5 ghz?`:
```sql
                SELECT "l2_cache" FROM "ultra_low_voltage_90_nm" WHERE "clock_speed"='1.5 ghz';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest game against Orlando?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest game against Orlando?`:
```sql
                SELECT MIN("game") FROM "regular_season" WHERE "team"='orlando';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Attendance of 72,855?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has an Attendance of 72,855?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "attendance"='72,855';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has a Date of december 8, 1991?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has a Date of december 8, 1991?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "date"='december 8, 1991';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Date of november 24, 1991?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Date of november 24, 1991?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 24, 1991';
```
## Task
Generate a SQL query to answer the following question:
`Which location has a rank of 147?`

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

CREATE TABLE "the_200_most_topographically_isolated_su" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a rank of 147?`:
```sql
                SELECT "location" FROM "the_200_most_topographically_isolated_su" WHERE "rank"=147;
```
## Task
Generate a SQL query to answer the following question:
`Which mountain range contains Sierra Blanca Peak?`

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

CREATE TABLE "the_200_most_topographically_isolated_su" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mountain range contains Sierra Blanca Peak?`:
```sql
                SELECT "mountain_range" FROM "the_200_most_topographically_isolated_su" WHERE "mountain_peak"='sierra blanca peak';
```
## Task
Generate a SQL query to answer the following question:
`Which location is in Oregon, ranked under 121, and contains Mount McLoughlin?`

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

CREATE TABLE "the_200_most_topographically_isolated_su" (
  "rank" real,
  "mountain_peak" text,
  "state" text,
  "mountain_range" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location is in Oregon, ranked under 121, and contains Mount McLoughlin?`:
```sql
                SELECT "location" FROM "the_200_most_topographically_isolated_su" WHERE "state"='oregon' AND "rank"<121 AND "mountain_peak"='mount mcloughlin';
```
## Task
Generate a SQL query to answer the following question:
`What is the film, television series, or miniseries with a nomination in 2001?`

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

CREATE TABLE "golden_globe_awards_fictional_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film_or_television_series_or_miniseries" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the film, television series, or miniseries with a nomination in 2001?`:
```sql
                SELECT "film_or_television_series_or_miniseries" FROM "golden_globe_awards_fictional_presidents" WHERE "year"=2001;
```
## Task
Generate a SQL query to answer the following question:
`In what year was Martin Sheen nominated?`

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

CREATE TABLE "golden_globe_awards_fictional_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film_or_television_series_or_miniseries" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was Martin Sheen nominated?`:
```sql
                SELECT "year" FROM "golden_globe_awards_fictional_presidents" WHERE "nominee"='martin sheen';
```
## Task
Generate a SQL query to answer the following question:
`Who was the president in 1999?`

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

CREATE TABLE "golden_globe_awards_fictional_presidents" (
  "year" real,
  "category" text,
  "president" text,
  "nominee" text,
  "film_or_television_series_or_miniseries" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the president in 1999?`:
```sql
                SELECT "president" FROM "golden_globe_awards_fictional_presidents" WHERE "year"=1999;
```