cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the Director of the Film The Fugitive?`

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

CREATE TABLE "highest_grossing_films_of_1993" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "worldwide_gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Director of the Film The Fugitive?`:
```sql
                SELECT "director" FROM "highest_grossing_films_of_1993" WHERE "title"='the fugitive';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest points on October 12, when the attendance where is over 10,701?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest points on October 12, when the attendance where is over 10,701?`:
```sql
                SELECT MAX("points") FROM "game_log" WHERE "date"='october 12' AND "attendance">'10,701';
```
## Task
Generate a SQL query to answer the following question:
`When was Montreal a visitor?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was Montreal a visitor?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='montreal';
```
## Task
Generate a SQL query to answer the following question:
`What Title's Transliteration is Fal'shivaya Nota?`

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

CREATE TABLE "solo_songs" (
  "title" text,
  "russian" text,
  "transliteration" text,
  "original_text" text,
  "start" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Title's Transliteration is Fal'shivaya Nota?`:
```sql
                SELECT "title" FROM "solo_songs" WHERE "transliteration"='fal''shivaya nota';
```
## Task
Generate a SQL query to answer the following question:
`What Title has a Transliteration of u lyudey-to v domu?`

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

CREATE TABLE "solo_songs" (
  "title" text,
  "russian" text,
  "transliteration" text,
  "original_text" text,
  "start" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Title has a Transliteration of u lyudey-to v domu?`:
```sql
                SELECT "title" FROM "solo_songs" WHERE "transliteration"='u lyudey-to v domu';
```
## Task
Generate a SQL query to answer the following question:
`What is average frequency MHZ when is in portales, new mexico?`

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

CREATE TABLE "new_mexico" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is average frequency MHZ when is in portales, new mexico?`:
```sql
                SELECT AVG("frequency_m_hz") FROM "new_mexico" WHERE "city_of_license"='portales, new mexico';
```
## Task
Generate a SQL query to answer the following question:
`What is FCC info when ERP W is larger than 92 and call sign has k264ba?`

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

CREATE TABLE "new_mexico" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is FCC info when ERP W is larger than 92 and call sign has k264ba?`:
```sql
                SELECT "fcc_info" FROM "new_mexico" WHERE "erp_w">92 AND "call_sign"='k264ba';
```
## Task
Generate a SQL query to answer the following question:
`Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?`

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

CREATE TABLE "new_mexico" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?`:
```sql
                SELECT "call_sign" FROM "new_mexico" WHERE "erp_w">250 AND "frequency_m_hz"<99.3;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played when the score was 1-4?`

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

CREATE TABLE "friendly_2004" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played when the score was 1-4?`:
```sql
                SELECT "venue" FROM "friendly_2004" WHERE "score"='1-4';
```
## Task
Generate a SQL query to answer the following question:
`Who was the game played against on 2004-02-28 at Skytteholms IP?`

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

CREATE TABLE "friendly_2004" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the game played against on 2004-02-28 at Skytteholms IP?`:
```sql
                SELECT "opponents" FROM "friendly_2004" WHERE "venue"='skytteholms ip' AND "date"='2004-02-28';
```
## Task
Generate a SQL query to answer the following question:
`When the game was played at Domnarvsvallen who were the opponents?`

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

CREATE TABLE "friendly_2004" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the game was played at Domnarvsvallen who were the opponents?`:
```sql
                SELECT "opponents" FROM "friendly_2004" WHERE "venue"='domnarvsvallen';
```
## Task
Generate a SQL query to answer the following question:
`Who were the opposing team when playing in the Portugal venue?`

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

CREATE TABLE "friendly_2004" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opposing team when playing in the Portugal venue?`:
```sql
                SELECT "opponents" FROM "friendly_2004" WHERE "venue"='portugal';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played on 2004-06-23?`

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

CREATE TABLE "friendly_2004" (
  "date" text,
  "venue" text,
  "opponents" text,
  "score" text,
  "comp" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played on 2004-06-23?`:
```sql
                SELECT "venue" FROM "friendly_2004" WHERE "date"='2004-06-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Tom Weiskopf?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the to par for Tom Weiskopf?`:
```sql
                SELECT AVG("to_par") FROM "final_round" WHERE "player"='tom weiskopf';
```
## Task
Generate a SQL query to answer the following question:
`What title did George Fury win when on the Oran Park Raceway?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What title did George Fury win when on the Oran Park Raceway?`:
```sql
                SELECT "race_title" FROM "race_calendar" WHERE "winner"='george fury' AND "circuit"='oran park raceway';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner on the Amaroo Park circuit?`

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

CREATE TABLE "race_calendar" (
  "race_title" text,
  "circuit" text,
  "city_state" text,
  "date" text,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner on the Amaroo Park circuit?`:
```sql
                SELECT "winner" FROM "race_calendar" WHERE "circuit"='amaroo park';
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest points for goals fewer than 13?`

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

CREATE TABLE "promotion_playoff" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest points for goals fewer than 13?`:
```sql
                SELECT MIN("points") FROM "promotion_playoff" WHERE "goals_for"<13;
```
## Task
Generate a SQL query to answer the following question:
`How many goals when more than 10 games played?`

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

CREATE TABLE "promotion_playoff" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many goals when more than 10 games played?`:
```sql
                SELECT AVG("goals_for") FROM "promotion_playoff" WHERE "played">10;
```
## Task
Generate a SQL query to answer the following question:
`How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?`

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

CREATE TABLE "promotion_playoff" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?`:
```sql
                SELECT AVG("losses") FROM "promotion_playoff" WHERE "goals_against">17 AND "goal_difference"<2 AND "points">5;
```
## Task
Generate a SQL query to answer the following question:
`How many draws when there are fewer than 6 wins and the goal difference is less than -15?`

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

CREATE TABLE "promotion_playoff" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many draws when there are fewer than 6 wins and the goal difference is less than -15?`:
```sql
                SELECT COUNT("draws") FROM "promotion_playoff" WHERE "wins"<6 AND "goal_difference"<-15;
```
## Task
Generate a SQL query to answer the following question:
`How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Draw has a Rank of 3rd, and a Performer of noelle, and Points larger than 79?`:
```sql
                SELECT COUNT("draw") FROM "references" WHERE "rank"='3rd' AND "performer"='noelle' AND "points">79;
```
## Task
Generate a SQL query to answer the following question:
`Which Draw has a Performer of jenny newman, and Points smaller than 77?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draw has a Performer of jenny newman, and Points smaller than 77?`:
```sql
                SELECT AVG("draw") FROM "references" WHERE "performer"='jenny newman' AND "points"<77;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Draw of 2?`

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

CREATE TABLE "references" (
  "draw" real,
  "song" text,
  "performer" text,
  "points" real,
  "rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Draw of 2?`:
```sql
                SELECT AVG("points") FROM "references" WHERE "draw"=2;
```
## Task
Generate a SQL query to answer the following question:
`Which stage number did son bou arrive at?`

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

CREATE TABLE "stages" (
  "stage" real,
  "start" text,
  "arrival" text,
  "duration" text,
  "difficulty" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which stage number did son bou arrive at?`:
```sql
                SELECT COUNT("stage") FROM "stages" WHERE "arrival"='son bou';
```
## Task
Generate a SQL query to answer the following question:
`How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last?`

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

CREATE TABLE "stages" (
  "stage" real,
  "start" text,
  "arrival" text,
  "duration" text,
  "difficulty" text
);
### SQL
Given the database schema, here is the SQL query that answers `How long does the one that stars with son bou of middle difficulty, and on a stage number larger than 13 last?`:
```sql
                SELECT "duration" FROM "stages" WHERE "stage">13 AND "difficulty"='middle' AND "start"='son bou';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest stage number that starts with els alocs and has a middle difficulty?`

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

CREATE TABLE "stages" (
  "stage" real,
  "start" text,
  "arrival" text,
  "duration" text,
  "difficulty" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest stage number that starts with els alocs and has a middle difficulty?`:
```sql
                SELECT MIN("stage") FROM "stages" WHERE "difficulty"='middle' AND "start"='els alocs';
```
## Task
Generate a SQL query to answer the following question:
`What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit?`

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

CREATE TABLE "saudi_arabia" (
  "internet_plan" text,
  "downstream" text,
  "upstream" text,
  "bandwidth_included" text,
  "price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the price of the internet provider that has an upstream rate of 256 kbit and a downstream rate of 512 kbit?`:
```sql
                SELECT "price" FROM "saudi_arabia" WHERE "upstream"='256 kbit' AND "downstream"='512 kbit';
```
## Task
Generate a SQL query to answer the following question:
`For the provider that costs 266 sar, what is the Bandwidth Included?`

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

CREATE TABLE "saudi_arabia" (
  "internet_plan" text,
  "downstream" text,
  "upstream" text,
  "bandwidth_included" text,
  "price" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the provider that costs 266 sar, what is the Bandwidth Included?`:
```sql
                SELECT "bandwidth_included" FROM "saudi_arabia" WHERE "price"='266 sar';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the plan that has a downstream rate of 4,096 kbit?`

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

CREATE TABLE "saudi_arabia" (
  "internet_plan" text,
  "downstream" text,
  "upstream" text,
  "bandwidth_included" text,
  "price" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the plan that has a downstream rate of 4,096 kbit?`:
```sql
                SELECT "internet_plan" FROM "saudi_arabia" WHERE "downstream"='4,096 kbit';
```
## Task
Generate a SQL query to answer the following question:
`Which record has a score of l 121–127?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has a score of l 121–127?`:
```sql
                SELECT "record" FROM "game_log" WHERE "score"='l 121–127';
```
## Task
Generate a SQL query to answer the following question:
`What high points did San Francisco have in a game later than 69?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high points did San Francisco have in a game later than 69?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game">69 AND "team"='san francisco';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for March 10?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for March 10?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='march 10';
```
## Task
Generate a SQL query to answer the following question:
`What high points did a game earlier than 80 have with a score of l 123–142?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What high points did a game earlier than 80 have with a score of l 123–142?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "game"<80 AND "score"='l 123–142';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?`

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

CREATE TABLE "bathurst_1000_results" (
  "year" real,
  "number" real,
  "team" text,
  "co_driver" text,
  "position" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Year, when Co-Driver is Warren Luff, when Position is 7th, and when Laps is less than 161?`:
```sql
                SELECT MIN("year") FROM "bathurst_1000_results" WHERE "co_driver"='warren luff' AND "position"='7th' AND "laps"<161;
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Laps is 156?`

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

CREATE TABLE "bathurst_1000_results" (
  "year" real,
  "number" real,
  "team" text,
  "co_driver" text,
  "position" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Laps is 156?`:
```sql
                SELECT "position" FROM "bathurst_1000_results" WHERE "laps"=156;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Year, when Laps is greater than 161?`

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

CREATE TABLE "bathurst_1000_results" (
  "year" real,
  "number" real,
  "team" text,
  "co_driver" text,
  "position" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Year, when Laps is greater than 161?`:
```sql
                SELECT MAX("year") FROM "bathurst_1000_results" WHERE "laps">161;
```
## Task
Generate a SQL query to answer the following question:
`What season had a combined of 13 and a Giant Slalom more than 31?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" text,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had a combined of 13 and a Giant Slalom more than 31?`:
```sql
                SELECT MAX("season") FROM "season_standings" WHERE "combined"='13' AND "giant_slalom">31;
```
## Task
Generate a SQL query to answer the following question:
`What season had a downhill of 35 and overall greater than 21?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" text,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season had a downhill of 35 and overall greater than 21?`:
```sql
                SELECT COUNT("season") FROM "season_standings" WHERE "downhill"='35' AND "overall">21;
```
## Task
Generate a SQL query to answer the following question:
`What's the Super G when the combined was 13 and the overall was more than 7?`

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

CREATE TABLE "season_standings" (
  "season" real,
  "overall" real,
  "slalom" text,
  "giant_slalom" real,
  "super_g" text,
  "downhill" text,
  "combined" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Super G when the combined was 13 and the overall was more than 7?`:
```sql
                SELECT "super_g" FROM "season_standings" WHERE "overall">7 AND "combined"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is Time, when Laps is 22, and when Grid is 15?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Time, when Laps is 22, and when Grid is 15?`:
```sql
                SELECT "time" FROM "moto_gp_classification" WHERE "laps"=22 AND "grid"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Grid, when Time is +45.855?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Grid, when Time is +45.855?`:
```sql
                SELECT AVG("grid") FROM "moto_gp_classification" WHERE "time"='+45.855';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Grid, when Time is +43.191, and when Laps is less than 22?`:
```sql
                SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time"='+43.191' AND "laps"<22;
```
## Task
Generate a SQL query to answer the following question:
`What is the place of Mark O'Meara?`

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

CREATE TABLE "second_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 the place of Mark O'Meara?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`Which player has a score of 71-72=143?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a score of 71-72=143?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='71-72=143';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for the United States in place T1 for David Duval?`

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

CREATE TABLE "second_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 the score for the United States in place T1 for David Duval?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='united states' AND "place"='t1' AND "player"='david duval';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from the United States with a score of 71-72=143?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from the United States with a score of 71-72=143?`:
```sql
                SELECT "player" FROM "second_round" WHERE "country"='united states' AND "score"='71-72=143';
```
## Task
Generate a SQL query to answer the following question:
`Which country is Scott McCarron from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is Scott McCarron from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "player"='scott mccarron';
```
## Task
Generate a SQL query to answer the following question:
`Which country is in T1 place with a score of 71-68=139?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country is in T1 place with a score of 71-68=139?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t1' AND "score"='71-68=139';
```
## Task
Generate a SQL query to answer the following question:
`what is the venue when the competition is friendly on 26 may 1999?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "venue" text,
  "result" text,
  "competition" text,
  "scored" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the venue when the competition is friendly on 26 may 1999?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "competition"='friendly' AND "date"='26 may 1999';
```
## Task
Generate a SQL query to answer the following question:
`What was Australia's place?`

### 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,
  "hole" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Australia's place?`:
```sql
                SELECT "place" FROM "third_round" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for United States when the player was Mike Reid and the To par was e?`

### 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,
  "hole" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for United States when the player was Mike Reid and the To par was e?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='united states' AND "to_par"='e' AND "player"='mike reid';
```
## Task
Generate a SQL query to answer the following question:
`How many holes did Mike Reid from United States have?`

### 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,
  "hole" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many holes did Mike Reid from United States have?`:
```sql
                SELECT "hole" FROM "third_round" WHERE "country"='united states' AND "player"='mike reid';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Position smaller than 2?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Position smaller than 2?`:
```sql
                SELECT "name" FROM "main_round" WHERE "position"<2;
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has a Position larger than 2, a Name of sg münchen (n), and a Drawn larger than 0?`:
```sql
                SELECT COUNT("lost") FROM "main_round" WHERE "position">2 AND "name"='sg münchen (n)' AND "drawn">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn has a Position of 2, and a Lost larger than 2?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn has a Position of 2, and a Lost larger than 2?`:
```sql
                SELECT MIN("drawn") FROM "main_round" WHERE "position"=2 AND "lost">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Position of 3, and a Points smaller than 15?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Position of 3, and a Points smaller than 15?`:
```sql
                SELECT COUNT("played") FROM "main_round" WHERE "position"=3 AND "points"<15;
```
## Task
Generate a SQL query to answer the following question:
`Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Played has a Position larger than 5, a Points larger than 0, and a Drawn smaller than 0?`:
```sql
                SELECT MAX("played") FROM "main_round" WHERE "position">5 AND "points">0 AND "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the score when Miami is the visitor?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when Miami is the visitor?`:
```sql
                SELECT "score" FROM "april" WHERE "visitor"='miami';
```
## Task
Generate a SQL query to answer the following question:
`For the game that was 76-85, what was the record?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game that was 76-85, what was the record?`:
```sql
                SELECT "record" FROM "april" WHERE "score"='76-85';
```
## Task
Generate a SQL query to answer the following question:
`On April 18, which team was the visitor?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On April 18, which team was the visitor?`:
```sql
                SELECT "visitor" FROM "april" WHERE "date"='april 18';
```
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer on April 7?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer on April 7?`:
```sql
                SELECT "leading_scorer" FROM "april" WHERE "date"='april 7';
```
## Task
Generate a SQL query to answer the following question:
`Where was the home court on April 14?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "leading_scorer" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the home court on April 14?`:
```sql
                SELECT "home" FROM "april" WHERE "date"='april 14';
```
## Task
Generate a SQL query to answer the following question:
`What is the boston celtics' record?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the boston celtics' record?`:
```sql
                SELECT "record" FROM "season_schedule" WHERE "team"='boston celtics';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a Record of 9–8?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a Record of 9–8?`:
```sql
                SELECT "score" FROM "season_schedule" WHERE "record"='9–8';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of loss 2, and a Team of @ boston celtics?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Streak of loss 2, and a Team of @ boston celtics?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "streak"='loss 2' AND "team"='@ boston celtics';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Streak of win 1, and a Record of 8–4?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Streak of win 1, and a Record of 8–4?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "streak"='win 1' AND "record"='8–4';
```
## Task
Generate a SQL query to answer the following question:
`What was the top score for grier jones?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the top score for grier jones?`:
```sql
                SELECT MAX("score") FROM "first_round" WHERE "player"='grier jones';
```
## Task
Generate a SQL query to answer the following question:
`Which To par is scored at 70?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par is scored at 70?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=70;
```
## Task
Generate a SQL query to answer the following question:
`In what place did hubert green score below 70 in the united states?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did hubert green score below 70 in the united states?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score"<70 AND "country"='united states' AND "player"='hubert green';
```
## Task
Generate a SQL query to answer the following question:
`Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?`

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

CREATE TABLE "riders" (
  "position" real,
  "driver_passenger" text,
  "equipment" text,
  "bike_no" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?`:
```sql
                SELECT "driver_passenger" FROM "riders" WHERE "bike_no"<4 AND "equipment"='zabel -vmc';
```
## Task
Generate a SQL query to answer the following question:
`What's the slalom when the average time was greater than 99.25?`

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

CREATE TABLE "final_standings" (
  "place" real,
  "competitor" text,
  "downhill" real,
  "slalom" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the slalom when the average time was greater than 99.25?`:
```sql
                SELECT AVG("slalom") FROM "final_standings" WHERE "average">99.25;
```
## Task
Generate a SQL query to answer the following question:
`Where was the place that the downhill was 71.6 and the average was less than 90.06?`

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

CREATE TABLE "final_standings" (
  "place" real,
  "competitor" text,
  "downhill" real,
  "slalom" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the place that the downhill was 71.6 and the average was less than 90.06?`:
```sql
                SELECT SUM("place") FROM "final_standings" WHERE "average"<90.06 AND "downhill"=71.6;
```
## Task
Generate a SQL query to answer the following question:
`What is ICAO, when Airport is "Sibulan Airport"?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ICAO, when Airport is "Sibulan Airport"?`:
```sql
                SELECT "icao" FROM "references" WHERE "airport"='sibulan airport';
```
## Task
Generate a SQL query to answer the following question:
`What is ICAO, when IATA is "HKG"?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is ICAO, when IATA is "HKG"?`:
```sql
                SELECT "icao" FROM "references" WHERE "iata"='hkg';
```
## Task
Generate a SQL query to answer the following question:
`What is IATA, when ICAO is "VHHH"?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is IATA, when ICAO is "VHHH"?`:
```sql
                SELECT "iata" FROM "references" WHERE "icao"='vhhh';
```
## Task
Generate a SQL query to answer the following question:
`What is City, when IATA is "LAO"?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is City, when IATA is "LAO"?`:
```sql
                SELECT "city" FROM "references" WHERE "iata"='lao';
```
## Task
Generate a SQL query to answer the following question:
`What is Country, when City is "Zamboanga"?`

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

CREATE TABLE "references" (
  "city" text,
  "country" text,
  "iata" text,
  "icao" text,
  "airport" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Country, when City is "Zamboanga"?`:
```sql
                SELECT "country" FROM "references" WHERE "city"='zamboanga';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number drawn when the position was 12?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number drawn when the position was 12?`:
```sql
                SELECT MAX("drawn") FROM "final_table" WHERE "position"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of goals against when the number of goals were 55 and the difference was +24?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of goals against when the number of goals were 55 and the difference was +24?`:
```sql
                SELECT MAX("goals_against") FROM "final_table" WHERE "goals_for">55 AND "goal_difference"='+24';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number lost for hyde united when they had a smaller position than 17, 8 draws, and more than 57 goals against?`:
```sql
                SELECT AVG("lost") FROM "final_table" WHERE "goals_against">57 AND "position"<17 AND "drawn"=8 AND "team"='hyde united';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest played when there was less than 74 goals against and points 1 of 36 2?`

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

CREATE TABLE "final_table" (
  "position" real,
  "team" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" text,
  "points_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest played when there was less than 74 goals against and points 1 of 36 2?`:
```sql
                SELECT MAX("played") FROM "final_table" WHERE "points_1"='36 2' AND "goals_against"<74;
```