cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the winning score for the tournament with a margin of victory of 7 strokes?`

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

CREATE TABLE "pga_tour_wins_8" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the winning score for the tournament with a margin of victory of 7 strokes?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_8" WHERE "margin_of_victory"='7 strokes';
```
## Task
Generate a SQL query to answer the following question:
`What day in December was the game that resulted in a record of 6-3-1?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day in December was the game that resulted in a record of 6-3-1?`:
```sql
                SELECT SUM("december") FROM "schedule_and_results" WHERE "record"='6-3-1';
```
## Task
Generate a SQL query to answer the following question:
`How many were in attendance against the Oakland Raiders after week 7?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance against the Oakland Raiders after week 7?`:
```sql
                SELECT SUM("attendance") FROM "season_schedule" WHERE "opponent"='oakland raiders' AND "week">7;
```
## Task
Generate a SQL query to answer the following question:
`What is the average attendance for the New York Jets?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average attendance for the New York Jets?`:
```sql
                SELECT AVG("attendance") FROM "season_schedule" WHERE "opponent"='new york jets';
```
## Task
Generate a SQL query to answer the following question:
`On what week were there 26,243 in attendance on September 21, 1969?`

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

CREATE TABLE "season_schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what week were there 26,243 in attendance on September 21, 1969?`:
```sql
                SELECT COUNT("week") FROM "season_schedule" WHERE "date"='september 21, 1969' AND "attendance"<'26,243';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at Pasir Gudang, Malaysia with a match larger than 2?`:
```sql
                SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match">2 AND "location"='pasir gudang, malaysia';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the match smaller than 3?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the match smaller than 3?`:
```sql
                SELECT "opponent_team" FROM "pre_season_friendlies" WHERE "match"<3;
```
## Task
Generate a SQL query to answer the following question:
`Where was the game when Police S.A. was the opponent?`

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

CREATE TABLE "pre_season_friendlies" (
  "match" real,
  "date" text,
  "tournament" text,
  "location" text,
  "opponent_team" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game when Police S.A. was the opponent?`:
```sql
                SELECT "location" FROM "pre_season_friendlies" WHERE "opponent_team"='police s.a.';
```
## Task
Generate a SQL query to answer the following question:
`Which League has a FA Cup larger than 0, and a Player of simon read, and a League Cup larger than 1?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which League has a FA Cup larger than 0, and a Player of simon read, and a League Cup larger than 1?`:
```sql
                SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "fa_cup">0 AND "player"='simon read' AND "league_cup">1;
```
## Task
Generate a SQL query to answer the following question:
`What kind of Total that has a League Cup larger than 3, and a League smaller than 16?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of Total that has a League Cup larger than 3, and a League smaller than 16?`:
```sql
                SELECT COUNT("total") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16;
```
## Task
Generate a SQL query to answer the following question:
`Which League has a League Cup smaller than 0?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which League has a League Cup smaller than 0?`:
```sql
                SELECT MIN("league") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which League has a Total smaller than 16, a Player of ken mckenna and a League Cup larger than 0?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which League has a Total smaller than 16, a Player of ken mckenna and a League Cup larger than 0?`:
```sql
                SELECT MAX("league") FROM "top_scorers_in_order_of_league_goals" WHERE "total"<16 AND "player"='ken mckenna' AND "league_cup">0;
```
## Task
Generate a SQL query to answer the following question:
`Which FA Cup that has a League Cup larger than 3 and a League smaller than 16?`

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

CREATE TABLE "top_scorers_in_order_of_league_goals" (
  "player" text,
  "club" text,
  "league" real,
  "fa_cup" real,
  "fa_trophy" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which FA Cup that has a League Cup larger than 3 and a League smaller than 16?`:
```sql
                SELECT AVG("fa_cup") FROM "top_scorers_in_order_of_league_goals" WHERE "league_cup">3 AND "league"<16;
```
## Task
Generate a SQL query to answer the following question:
`How many list entry numbers are located in Platting Road, Lydgate?`

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

CREATE TABLE "oldham" (
  "name" text,
  "location" text,
  "type" text,
  "completed" text,
  "list_entry_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many list entry numbers are located in Platting Road, Lydgate?`:
```sql
                SELECT COUNT("list_entry_number") FROM "oldham" WHERE "location"='platting road, lydgate';
```
## Task
Generate a SQL query to answer the following question:
`Which type has list entry number of 1356677?`

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

CREATE TABLE "oldham" (
  "name" text,
  "location" text,
  "type" text,
  "completed" text,
  "list_entry_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which type has list entry number of 1356677?`:
```sql
                SELECT "type" FROM "oldham" WHERE "list_entry_number"=1356677;
```
## Task
Generate a SQL query to answer the following question:
`What is the completed date of the church with list entry number 1068071?`

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

CREATE TABLE "oldham" (
  "name" text,
  "location" text,
  "type" text,
  "completed" text,
  "list_entry_number" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completed date of the church with list entry number 1068071?`:
```sql
                SELECT "completed" FROM "oldham" WHERE "type"='church' AND "list_entry_number"=1068071;
```
## Task
Generate a SQL query to answer the following question:
`Who were the scorers in the game against neuchâtel xamax played on 10 December 1985?`

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

CREATE TABLE "uefa_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the scorers in the game against neuchâtel xamax played on 10 December 1985?`:
```sql
                SELECT "scorers" FROM "uefa_cup" WHERE "opponent"='neuchâtel xamax' AND "date"='10 december 1985';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game played in where hegarty was the scorer?`

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

CREATE TABLE "uefa_cup" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "scorers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game played in where hegarty was the scorer?`:
```sql
                SELECT "date" FROM "uefa_cup" WHERE "scorers"='hegarty';
```
## Task
Generate a SQL query to answer the following question:
`Who is the callsign that has ICAO of SCO?`

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

CREATE TABLE "see_also" (
  "airlines" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the callsign that has ICAO of SCO?`:
```sql
                SELECT "callsign" FROM "see_also" WHERE "icao"='sco';
```
## Task
Generate a SQL query to answer the following question:
`Who is the commenced operations that has icao of slk?`

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

CREATE TABLE "see_also" (
  "airlines" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the commenced operations that has icao of slk?`:
```sql
                SELECT "commenced_operations" FROM "see_also" WHERE "icao"='slk';
```
## Task
Generate a SQL query to answer the following question:
`Who is the call sign that has a commenced operation before 1976?`

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

CREATE TABLE "see_also" (
  "airlines" text,
  "iata" text,
  "icao" text,
  "callsign" text,
  "commenced_operations" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the call sign that has a commenced operation before 1976?`:
```sql
                SELECT "callsign" FROM "see_also" WHERE "commenced_operations"<1976;
```
## Task
Generate a SQL query to answer the following question:
`What is the HDTV of the Music Content Channel?`

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

CREATE TABLE "others" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the HDTV of the Music Content Channel?`:
```sql
                SELECT "hdtv" FROM "others" WHERE "content"='music';
```
## Task
Generate a SQL query to answer the following question:
`What is the Television Service offering Cartomanzia?`

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

CREATE TABLE "others" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Television Service offering Cartomanzia?`:
```sql
                SELECT "television_service" FROM "others" WHERE "content"='cartomanzia';
```
## Task
Generate a SQL query to answer the following question:
`What Country's content is Televendite?`

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

CREATE TABLE "others" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country's content is Televendite?`:
```sql
                SELECT "country" FROM "others" WHERE "content"='televendite';
```
## Task
Generate a SQL query to answer the following question:
`What Country's Content is TV Locale?`

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

CREATE TABLE "others" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Country's Content is TV Locale?`:
```sql
                SELECT "country" FROM "others" WHERE "content"='tv locale';
```
## Task
Generate a SQL query to answer the following question:
`How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many golds had a silver of more than 1, rank more than 1, total of more than 4 when the bronze was also more than 4?`:
```sql
                SELECT SUM("gold") FROM "medals_table" WHERE "silver">1 AND "rank">1 AND "total">4 AND "bronze">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of rank when gold is 2 and total is more than 4?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of rank when gold is 2 and total is more than 4?`:
```sql
                SELECT SUM("rank") FROM "medals_table" WHERE "gold"=2 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze when gold is less than 1 and silver is more than 1?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of bronze when gold is less than 1 and silver is more than 1?`:
```sql
                SELECT SUM("bronze") FROM "medals_table" WHERE "gold"<1 AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of rank when silver is more than 1, gold is 2, and total is more than 4?`:
```sql
                SELECT SUM("rank") FROM "medals_table" WHERE "silver">1 AND "gold"=2 AND "total">4;
```
## Task
Generate a SQL query to answer the following question:
`What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Wins with a Top-25 of 3, and a Top-5 larger than 1?`:
```sql
                SELECT AVG("wins") FROM "summary" WHERE "top_25"=3 AND "top_5">1;
```
## Task
Generate a SQL query to answer the following question:
`Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Cuts made has a Top-5 smaller than 3, and a Top-25 smaller than 6, and an Events of 10?`:
```sql
                SELECT "cuts_made" FROM "summary" WHERE "top_5"<3 AND "top_25"<6 AND "events"=10;
```
## Task
Generate a SQL query to answer the following question:
`Which Tournament has a Cuts made smaller than 9, and an Events of 10?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Tournament has a Cuts made smaller than 9, and an Events of 10?`:
```sql
                SELECT "tournament" FROM "summary" WHERE "cuts_made"<9 AND "events"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Points for 250cc class, ranked 13th, later than 1955?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Points for 250cc class, ranked 13th, later than 1955?`:
```sql
                SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "class"='250cc' AND "rank"='13th' AND "year">1955;
```
## Task
Generate a SQL query to answer the following question:
`What is the Class for a year later than 1958, with 4 points?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Class for a year later than 1958, with 4 points?`:
```sql
                SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "year">1958 AND "points"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year when there were more than 3 points, for MV Agusta and ranked 10th?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year when there were more than 3 points, for MV Agusta and ranked 10th?`:
```sql
                SELECT AVG("year") FROM "motorcycle_grand_prix_results" WHERE "points">3 AND "team"='mv agusta' AND "rank"='10th';
```
## Task
Generate a SQL query to answer the following question:
`What Team has a Class of 350cc, with less than 13 points in 1959?`

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

CREATE TABLE "motorcycle_grand_prix_results" (
  "year" real,
  "class" text,
  "team" text,
  "points" real,
  "rank" text,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Team has a Class of 350cc, with less than 13 points in 1959?`:
```sql
                SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "class"='350cc' AND "points"<13 AND "year"=1959;
```
## Task
Generate a SQL query to answer the following question:
`Which event was held at Manly Beach?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event was held at Manly Beach?`:
```sql
                SELECT "event" FROM "tournaments" WHERE "location"='manly beach';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the Havaianas Beachley Classic, held in Australia?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the Havaianas Beachley Classic, held in Australia?`:
```sql
                SELECT "location" FROM "tournaments" WHERE "country"='australia' AND "event"='havaianas beachley classic';
```
## Task
Generate a SQL query to answer the following question:
`Which event was held in Brazil?`

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

CREATE TABLE "tournaments" (
  "date" text,
  "location" text,
  "country" text,
  "event" text,
  "winner" text,
  "runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event was held in Brazil?`:
```sql
                SELECT "event" FROM "tournaments" WHERE "country"='brazil';
```
## Task
Generate a SQL query to answer the following question:
`The University of Colorado hosted what region?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `The University of Colorado hosted what region?`:
```sql
                SELECT "region" FROM "first_and_second_rounds" WHERE "host"='university of colorado';
```
## Task
Generate a SQL query to answer the following question:
`Peterson Gym is in what city?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Peterson Gym is in what city?`:
```sql
                SELECT "city" FROM "first_and_second_rounds" WHERE "venue"='peterson gym';
```
## Task
Generate a SQL query to answer the following question:
`Mideast region host University of Tennessee is in what state?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `Mideast region host University of Tennessee is in what state?`:
```sql
                SELECT "state" FROM "first_and_second_rounds" WHERE "region"='mideast' AND "host"='university of tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What city is east region venue University Hall (University of Virginia) in?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city is east region venue University Hall (University of Virginia) in?`:
```sql
                SELECT "city" FROM "first_and_second_rounds" WHERE "region"='east' AND "venue"='university hall (university of virginia)';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue at Stanford University?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue at Stanford University?`:
```sql
                SELECT "venue" FROM "first_and_second_rounds" WHERE "host"='stanford university';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue in Seattle?`

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

CREATE TABLE "first_and_second_rounds" (
  "region" text,
  "host" text,
  "venue" text,
  "city" text,
  "state" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue in Seattle?`:
```sql
                SELECT "venue" FROM "first_and_second_rounds" WHERE "city"='seattle';
```
## Task
Generate a SQL query to answer the following question:
`What team won the Tour de Santa Catarina?`

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

CREATE TABLE "2007" (
  "date" text,
  "race_name" text,
  "location" text,
  "uci_rating" real,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team won the Tour de Santa Catarina?`:
```sql
                SELECT "team" FROM "2007" WHERE "race_name"='tour de santa catarina';
```
## Task
Generate a SQL query to answer the following question:
`What is Relax-Gam's average UCI Rating?`

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

CREATE TABLE "2007" (
  "date" text,
  "race_name" text,
  "location" text,
  "uci_rating" real,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Relax-Gam's average UCI Rating?`:
```sql
                SELECT AVG("uci_rating") FROM "2007" WHERE "team"='relax-gam';
```
## Task
Generate a SQL query to answer the following question:
`What is Vuelta a Ecuador's lowest UCI Rating?`

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

CREATE TABLE "2007" (
  "date" text,
  "race_name" text,
  "location" text,
  "uci_rating" real,
  "winner" text,
  "team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Vuelta a Ecuador's lowest UCI Rating?`:
```sql
                SELECT MIN("uci_rating") FROM "2007" WHERE "race_name"='vuelta a ecuador';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game attended by 54,110?`

### 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 `What was the result of the game attended by 54,110?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='54,110';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game attended by 45,122?`

### 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 `What was the date of the game attended by 45,122?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance"='45,122';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest week with a game attended by 60,233?`

### 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 `What is the earliest week with a game attended by 60,233?`:
```sql
                SELECT MIN("week") FROM "schedule" WHERE "attendance"='60,233';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest week with a game with a result of l 12–7?`

### 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 `What is the latest week with a game with a result of l 12–7?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "result"='l 12–7';
```
## Task
Generate a SQL query to answer the following question:
`What is Runner(s)-up, when Tournament is MCI Classic?`

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

CREATE TABLE "pga_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Runner(s)-up, when Tournament is MCI Classic?`:
```sql
                SELECT "runner_s_up" FROM "pga_tour_wins_6" WHERE "tournament"='mci classic';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Date is Jul 27, 1997?`

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

CREATE TABLE "pga_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Score, when Date is Jul 27, 1997?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "date"='jul 27, 1997';
```
## Task
Generate a SQL query to answer the following question:
`What is Winning Score, when Runner(s)-up is Ted Purdy?`

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

CREATE TABLE "pga_tour_wins_6" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Winning Score, when Runner(s)-up is Ted Purdy?`:
```sql
                SELECT "winning_score" FROM "pga_tour_wins_6" WHERE "runner_s_up"='ted purdy';
```
## Task
Generate a SQL query to answer the following question:
`With 10,894 students enrolled, in what year was this private RU/VH institution located in Troy, New York founded?`

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

CREATE TABLE "institutions" (
  "location" text,
  "control" text,
  "type" text,
  "enrollment" real,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `With 10,894 students enrolled, in what year was this private RU/VH institution located in Troy, New York founded?`:
```sql
                SELECT AVG("founded") FROM "institutions" WHERE "type"='ru/vh' AND "control"='private' AND "enrollment">'10,894' AND "location"='troy, new york';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment number for the public institution in Golden, Colorado founded after 1874?`

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

CREATE TABLE "institutions" (
  "location" text,
  "control" text,
  "type" text,
  "enrollment" real,
  "founded" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment number for the public institution in Golden, Colorado founded after 1874?`:
```sql
                SELECT AVG("enrollment") FROM "institutions" WHERE "control"='public' AND "location"='golden, colorado' AND "founded">1874;
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Year smaller than 2007, and a Class of gts?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Year smaller than 2007, and a Class of gts?`:
```sql
                SELECT "team" FROM "24_hours_of_le_mans_results" WHERE "year"<2007 AND "class"='gts';
```
## Task
Generate a SQL query to answer the following question:
`In what year Year has a Co-Drivers of jérôme policand christopher campbell?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year Year has a Co-Drivers of jérôme policand christopher campbell?`:
```sql
                SELECT SUM("year") FROM "24_hours_of_le_mans_results" WHERE "co_drivers"='jérôme policand christopher campbell';
```
## Task
Generate a SQL query to answer the following question:
`What is Language, when Content is Monoscopio?`

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

CREATE TABLE "tv_services_for_sky_italia_costumers" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Language, when Content is Monoscopio?`:
```sql
                SELECT "language" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='monoscopio';
```
## Task
Generate a SQL query to answer the following question:
`What is Television Service, when Content is Presentazione?`

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

CREATE TABLE "tv_services_for_sky_italia_costumers" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Television Service, when Content is Presentazione?`:
```sql
                SELECT "television_service" FROM "tv_services_for_sky_italia_costumers" WHERE "content"='presentazione';
```
## Task
Generate a SQL query to answer the following question:
`What is Package/Option, when Television Service is Sky Inside?`

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

CREATE TABLE "tv_services_for_sky_italia_costumers" (
  "television_service" text,
  "country" text,
  "language" text,
  "content" text,
  "hdtv" text,
  "package_option" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Package/Option, when Television Service is Sky Inside?`:
```sql
                SELECT "package_option" FROM "tv_services_for_sky_italia_costumers" WHERE "television_service"='sky inside';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Draw, when the Song is "The Innocent Days"?`

### 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 `What is the lowest Draw, when the Song is "The Innocent Days"?`:
```sql
                SELECT MIN("draw") FROM "references" WHERE "song"='\"the innocent days\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Points, when the Performer is fe-mail?`

### 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 `What is the sum of Points, when the Performer is fe-mail?`:
```sql
                SELECT SUM("points") FROM "references" WHERE "performer"='fe-mail';
```
## Task
Generate a SQL query to answer the following question:
`What is the score for set 3 with a time at 15:04?`

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

CREATE TABLE "tournament_1" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score for set 3 with a time at 15:04?`:
```sql
                SELECT "set_3" FROM "tournament_1" WHERE "time"='15:04';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall score when the score of set 3 was 29–27?`

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

CREATE TABLE "tournament_1" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall score when the score of set 3 was 29–27?`:
```sql
                SELECT "score" FROM "tournament_1" WHERE "set_3"='29–27';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for set 2 when set 3 was 25–22?`

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

CREATE TABLE "tournament_1" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for set 2 when set 3 was 25–22?`:
```sql
                SELECT "set_2" FROM "tournament_1" WHERE "set_3"='25–22';
```
## Task
Generate a SQL query to answer the following question:
`What was the overall score when set 1 was 23–25?`

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

CREATE TABLE "tournament_1" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the overall score when set 1 was 23–25?`:
```sql
                SELECT "score" FROM "tournament_1" WHERE "set_1"='23–25';
```
## Task
Generate a SQL query to answer the following question:
`What school/club team did Amal McCaskill play for?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What school/club team did Amal McCaskill play for?`:
```sql
                SELECT "school_club_team" FROM "m" WHERE "player"='amal mccaskill';
```
## Task
Generate a SQL query to answer the following question:
`Mike Miller played for what school/club team?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Mike Miller played for what school/club team?`:
```sql
                SELECT "school_club_team" FROM "m" WHERE "player"='mike miller';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player that played for the school/club team Maryland?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that played for the school/club team Maryland?`:
```sql
                SELECT "player" FROM "m" WHERE "school_club_team"='maryland';
```
## Task
Generate a SQL query to answer the following question:
`Cuttino Mobley is what nationality?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Cuttino Mobley is what nationality?`:
```sql
                SELECT "nationality" FROM "m" WHERE "player"='cuttino mobley';
```
## Task
Generate a SQL query to answer the following question:
`Corey Maggette from the United States plays what position?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Corey Maggette from the United States plays what position?`:
```sql
                SELECT "position" FROM "m" WHERE "nationality"='united states' AND "player"='corey maggette';
```
## Task
Generate a SQL query to answer the following question:
`Amal McCaskill who plays forward-center played for what school/club team?`

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

CREATE TABLE "m" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_in_orlando" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Amal McCaskill who plays forward-center played for what school/club team?`:
```sql
                SELECT "school_club_team" FROM "m" WHERE "position"='forward-center' AND "player"='amal mccaskill';
```
## Task
Generate a SQL query to answer the following question:
`Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?`

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

CREATE TABLE "stations" (
  "station" text,
  "local_authority_a" text,
  "servedby" text,
  "station_users_2004_05" real,
  "station_users_2005_06" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Servedby has a Local authority [a ] of thurrock, and a Station of ockendon?`:
```sql
                SELECT "servedby" FROM "stations" WHERE "local_authority_a"='thurrock' AND "station"='ockendon';
```
## Task
Generate a SQL query to answer the following question:
`Which Station users 2005–06 has a Station users 2004–05 of 2,117,300?`

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

CREATE TABLE "stations" (
  "station" text,
  "local_authority_a" text,
  "servedby" text,
  "station_users_2004_05" real,
  "station_users_2005_06" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Station users 2005–06 has a Station users 2004–05 of 2,117,300?`:
```sql
                SELECT MIN("station_users_2005_06") FROM "stations" WHERE "station_users_2004_05"='2,117,300';
```
## Task
Generate a SQL query to answer the following question:
`How many Station users 2005–06 that has a Station users 2004–05 of 1,455,700?`

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

CREATE TABLE "stations" (
  "station" text,
  "local_authority_a" text,
  "servedby" text,
  "station_users_2004_05" real,
  "station_users_2005_06" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Station users 2005–06 that has a Station users 2004–05 of 1,455,700?`:
```sql
                SELECT COUNT("station_users_2005_06") FROM "stations" WHERE "station_users_2004_05"='1,455,700';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponents from the final with a Tournament that is puebla?`

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

CREATE TABLE "itf_doubles_27_15_12" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponents from the final with a Tournament that is puebla?`:
```sql
                SELECT "opponents_in_the_final" FROM "itf_doubles_27_15_12" WHERE "tournament"='puebla';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game held at the Al-Rashid Stadium, Dubai?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game held at the Al-Rashid Stadium, Dubai?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='al-rashid stadium, dubai';
```