cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?`

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

CREATE TABLE "episodes" (
  "title" text,
  "season" real,
  "director" text,
  "teleplay" text,
  "first_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Title, when Season is less than 1.8, and when First Broadcast is March 6, 1981?`:
```sql
                SELECT "title" FROM "episodes" WHERE "season"<1.8 AND "first_broadcast"='march 6, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is Director, when Season is 1.4?`

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

CREATE TABLE "episodes" (
  "title" text,
  "season" real,
  "director" text,
  "teleplay" text,
  "first_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Director, when Season is 1.4?`:
```sql
                SELECT "director" FROM "episodes" WHERE "season"=1.4;
```
## Task
Generate a SQL query to answer the following question:
`What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?`

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

CREATE TABLE "episodes" (
  "title" text,
  "season" real,
  "director" text,
  "teleplay" text,
  "first_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Teleplay, when Director is "George McCowan", when Season is less than 1.1400000000000001, and when First Broadcast is April 3, 1981?`:
```sql
                SELECT "teleplay" FROM "episodes" WHERE "director"='george mccowan' AND "season"<1.1400000000000001 AND "first_broadcast"='april 3, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Season, when First Broadcast is January 23, 1981?`

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

CREATE TABLE "episodes" (
  "title" text,
  "season" real,
  "director" text,
  "teleplay" text,
  "first_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Season, when First Broadcast is January 23, 1981?`:
```sql
                SELECT AVG("season") FROM "episodes" WHERE "first_broadcast"='january 23, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is Teleplay, when First Broadcast is April 10, 1981?`

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

CREATE TABLE "episodes" (
  "title" text,
  "season" real,
  "director" text,
  "teleplay" text,
  "first_broadcast" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Teleplay, when First Broadcast is April 10, 1981?`:
```sql
                SELECT "teleplay" FROM "episodes" WHERE "first_broadcast"='april 10, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What the H/A when the opponent is the Bohemians?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What the H/A when the opponent is the Bohemians?`:
```sql
                SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "opponents"='bohemians';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance when Cork City is the opponent?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance when Cork City is the opponent?`:
```sql
                SELECT AVG("attendance") FROM "pre_season_and_friendlies" WHERE "opponents"='cork city';
```
## Task
Generate a SQL query to answer the following question:
`What is the H/A when Cork City is the opponent?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the H/A when Cork City is the opponent?`:
```sql
                SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "opponents"='cork city';
```
## Task
Generate a SQL query to answer the following question:
`What is the H/A on 5 August 1990?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the H/A on 5 August 1990?`:
```sql
                SELECT "h_a" FROM "pre_season_and_friendlies" WHERE "date"='5 august 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is the result F-A on 5 August 1990?`

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

CREATE TABLE "pre_season_and_friendlies" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result F-A on 5 August 1990?`:
```sql
                SELECT "result_f_a" FROM "pre_season_and_friendlies" WHERE "date"='5 august 1990';
```
## Task
Generate a SQL query to answer the following question:
`What is the value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978?`

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

CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" (
  "system" text,
  "year_introduced" real,
  "s_100_slots" real,
  "internal_floppy_disk" text,
  "internal_hard_disk" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value for internal floppy disk with s-100 slots greater than 8 introduced earlier than 1978?`:
```sql
                SELECT "internal_floppy_disk" FROM "cromemco_s_100_microcomputer_systems_z_8" WHERE "s_100_slots">8 AND "year_introduced"<1978;
```
## Task
Generate a SQL query to answer the following question:
`Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots?`

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

CREATE TABLE "cromemco_s_100_microcomputer_systems_z_8" (
  "system" text,
  "year_introduced" real,
  "s_100_slots" real,
  "internal_floppy_disk" text,
  "internal_hard_disk" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which system introduced earlier than 1981 has an internal hard disk of 11 megabytes and less than 21 s-100 slots?`:
```sql
                SELECT "system" FROM "cromemco_s_100_microcomputer_systems_z_8" WHERE "s_100_slots"<21 AND "year_introduced"<1981 AND "internal_hard_disk"='11 megabytes';
```
## Task
Generate a SQL query to answer the following question:
`What college did Marcus Wilson attend?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did Marcus Wilson attend?`:
```sql
                SELECT "college" FROM "nfl_draft" WHERE "player"='marcus wilson';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player that attended Notre Dame with a pick smaller than 304?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player that attended Notre Dame with a pick smaller than 304?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "pick_num"<304 AND "college"='notre dame';
```
## Task
Generate a SQL query to answer the following question:
`What college did Leon Perry attend?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did Leon Perry attend?`:
```sql
                SELECT "college" FROM "nfl_draft" WHERE "player"='leon perry';
```
## Task
Generate a SQL query to answer the following question:
`What NFL team did the Tight End position belong to?`

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

CREATE TABLE "nfl_draft" (
  "pick_num" real,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NFL team did the Tight End position belong to?`:
```sql
                SELECT "nfl_team" FROM "nfl_draft" WHERE "position"='tight end';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of weeks that the buffalo bills played against the San Diego Chargers?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of weeks that the buffalo bills played against the San Diego Chargers?`:
```sql
                SELECT SUM("week") FROM "season_schedule" WHERE "opponent"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game that had a date listed as Bye?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game that had a date listed as Bye?`:
```sql
                SELECT "attendance" FROM "season_schedule" WHERE "date"='bye';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks were there games with 41,384 fans in attendance?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks were there games with 41,384 fans in attendance?`:
```sql
                SELECT SUM("week") FROM "season_schedule" WHERE "attendance"='41,384';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest week number that had a game on December 3, 1967?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest week number that had a game on December 3, 1967?`:
```sql
                SELECT MIN("week") FROM "season_schedule" WHERE "date"='december 3, 1967';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game that had 20,627 fans in attendance?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game that had 20,627 fans in attendance?`:
```sql
                SELECT "result" FROM "season_schedule" WHERE "attendance"='20,627';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider with 22 laps and a +19.435 time/retired?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider with 22 laps and a +19.435 time/retired?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='22' AND "time_retired"='+19.435';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid with a yamaha manufacturer and a +19.435 time/retired?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid with a yamaha manufacturer and a +19.435 time/retired?`:
```sql
                SELECT "grid" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "time_retired"='+19.435';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid of rider shinya nakano?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid of rider shinya nakano?`:
```sql
                SELECT "grid" FROM "moto_gp_classification" WHERE "rider"='shinya nakano';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider with 22 laps and a +1:44.775 time/retired?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider with 22 laps and a +1:44.775 time/retired?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "laps"='22' AND "time_retired"='+1:44.775';
```
## Task
Generate a SQL query to answer the following question:
`What is the manufacturer with a 14 grid?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manufacturer with a 14 grid?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"='14';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider with a yamaha manufacturer and a 17 grid?`

### 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" text,
  "time_retired" text,
  "grid" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider with a yamaha manufacturer and a 17 grid?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "grid"='17';
```
## Task
Generate a SQL query to answer the following question:
`What is the total of attendance at Venue h when Auxerre were playing?`

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

CREATE TABLE "uefa_champions_league" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of attendance at Venue h when Auxerre were playing?`:
```sql
                SELECT SUM("attendance") FROM "uefa_champions_league" WHERE "venue"='h' AND "opponent"='auxerre';
```
## Task
Generate a SQL query to answer the following question:
`Which vehicle failed at launch?`

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

CREATE TABLE "program_details" (
  "name" text,
  "launched" text,
  "vehicle" text,
  "ceased_operation" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which vehicle failed at launch?`:
```sql
                SELECT "vehicle" FROM "program_details" WHERE "ceased_operation"='failed at launch';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?`

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

CREATE TABLE "program_details" (
  "name" text,
  "launched" text,
  "vehicle" text,
  "ceased_operation" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes regarding the scout x-4 vehicle which ceased operation in June 1971?`:
```sql
                SELECT "notes" FROM "program_details" WHERE "vehicle"='scout x-4' AND "ceased_operation"='june 1971';
```
## Task
Generate a SQL query to answer the following question:
`What was the ceased operation with a launch date of August 8, 1968?`

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

CREATE TABLE "program_details" (
  "name" text,
  "launched" text,
  "vehicle" text,
  "ceased_operation" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ceased operation with a launch date of August 8, 1968?`:
```sql
                SELECT "ceased_operation" FROM "program_details" WHERE "launched"='august 8, 1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the ceased operation that launched June 29, 1961?`

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

CREATE TABLE "program_details" (
  "name" text,
  "launched" text,
  "vehicle" text,
  "ceased_operation" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the ceased operation that launched June 29, 1961?`:
```sql
                SELECT "ceased_operation" FROM "program_details" WHERE "launched"='june 29, 1961';
```
## Task
Generate a SQL query to answer the following question:
`What place in the United States having a score of 67-75-68=210?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place in the United States having a score of 67-75-68=210?`:
```sql
                SELECT "place" FROM "third_round" WHERE "country"='united states' AND "score"='67-75-68=210';
```
## Task
Generate a SQL query to answer the following question:
`What country is in T4 place having a score of 66-71-72=209?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country is in T4 place having a score of 66-71-72=209?`:
```sql
                SELECT "country" FROM "third_round" WHERE "place"='t4' AND "score"='66-71-72=209';
```
## Task
Generate a SQL query to answer the following question:
`What place is the United States in that has a score of 68-73-68=209?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is the United States in that has a score of 68-73-68=209?`:
```sql
                SELECT "place" FROM "third_round" WHERE "country"='united states' AND "score"='68-73-68=209';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player from the United States in T4 place with a score of 68-73-68=209?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from the United States in T4 place with a score of 68-73-68=209?`:
```sql
                SELECT "player" FROM "third_round" WHERE "country"='united states' AND "place"='t4' AND "score"='68-73-68=209';
```
## Task
Generate a SQL query to answer the following question:
`How many played when lost is more than 17, drawn is 15 and goals against is less than 75?`

### 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 `How many played when lost is more than 17, drawn is 15 and goals against is less than 75?`:
```sql
                SELECT AVG("played") FROM "final_table" WHERE "lost">17 AND "drawn"=15 AND "goals_against"<75;
```
## Task
Generate a SQL query to answer the following question:
`what is the position when lot is less than 14, goal difference is +1 and drawn is more than 15?`

### 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 position when lot is less than 14, goal difference is +1 and drawn is more than 15?`:
```sql
                SELECT SUM("position") FROM "final_table" WHERE "lost"<14 AND "goal_difference"='+1' AND "drawn">15;
```
## Task
Generate a SQL query to answer the following question:
`How many lost when goals for is 43 and the position number is higher than 15?`

### 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 `How many lost when goals for is 43 and the position number is higher than 15?`:
```sql
                SELECT AVG("lost") FROM "final_table" WHERE "goals_for"=43 AND "position">15;
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game against Charlotte?`

### 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,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game against Charlotte?`:
```sql
                SELECT "score" FROM "game_log" WHERE "team"='charlotte';
```
## Task
Generate a SQL query to answer the following question:
`Who had the high assists in the game against Memphis?`

### 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,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the high assists in the game against Memphis?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "team"='memphis';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team when Boston is the road team in game 4?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team when Boston is the road team in game 4?`:
```sql
                SELECT "home_team" FROM "nba_finals" WHERE "road_team"='boston' AND "game"='game 4';
```
## Task
Generate a SQL query to answer the following question:
`What game had the result of 112-100?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game had the result of 112-100?`:
```sql
                SELECT "game" FROM "nba_finals" WHERE "result"='112-100';
```
## Task
Generate a SQL query to answer the following question:
`What game was played on May 29?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game was played on May 29?`:
```sql
                SELECT "game" FROM "nba_finals" WHERE "date"='may 29';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of game 1?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of game 1?`:
```sql
                SELECT "result" FROM "nba_finals" WHERE "game"='game 1';
```
## Task
Generate a SQL query to answer the following question:
`What was the game when Houston was the home team and the result is 106-104?`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game when Houston was the home team and the result is 106-104?`:
```sql
                SELECT "game" FROM "nba_finals" WHERE "home_team"='houston' AND "result"='106-104';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of car that is earlier than 2005 and has a class position of 2nd?`

### 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 `What is the class of car that is earlier than 2005 and has a class position of 2nd?`:
```sql
                SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "year"<2005 AND "class_pos"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`How many years was the number of laps 71?`

### 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 `How many years was the number of laps 71?`:
```sql
                SELECT COUNT("year") FROM "24_hours_of_le_mans_results" WHERE "laps"=71;
```
## Task
Generate a SQL query to answer the following question:
`For a year that is later than 2002 what is the class position?`

### 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 `For a year that is later than 2002 what is the class position?`:
```sql
                SELECT "class_pos" FROM "24_hours_of_le_mans_results" WHERE "year">2002;
```
## Task
Generate a SQL query to answer the following question:
`How many total rounds has lehigh as the college?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total rounds has lehigh as the college?`:
```sql
                SELECT COUNT("round") FROM "washington_redskins_draft_history" WHERE "college"='lehigh';
```
## Task
Generate a SQL query to answer the following question:
`What name has 5 as the pick, a round less than 25, ot as the position, at boston college?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name has 5 as the pick, a round less than 25, ot as the position, at boston college?`:
```sql
                SELECT "name" FROM "washington_redskins_draft_history" WHERE "pick"=5 AND "round"<25 AND "position"='ot' AND "college"='boston college';
```
## Task
Generate a SQL query to answer the following question:
`How many overalls have E as the position, buddy payne as the name, and a pick less than 5?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many overalls have E as the position, buddy payne as the name, and a pick less than 5?`:
```sql
                SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='e' AND "name"='buddy payne' AND "pick"<5;
```
## Task
Generate a SQL query to answer the following question:
`How many picks have charley sanders as the name, with a round greater than 22?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many picks have charley sanders as the name, with a round greater than 22?`:
```sql
                SELECT SUM("pick") FROM "washington_redskins_draft_history" WHERE "name"='charley sanders' AND "round">22;
```
## Task
Generate a SQL query to answer the following question:
`Which 2011 has a 2012 larger than 9,998,000?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "location" text,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 has a 2012 larger than 9,998,000?`:
```sql
                SELECT MAX("2011") FROM "north_america" WHERE "2012">'9,998,000';
```
## Task
Generate a SQL query to answer the following question:
`Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "location" text,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010 has a Rank of 1, and a 2009 larger than 17,233,000?`:
```sql
                SELECT AVG("2010") FROM "north_america" WHERE "rank"=1 AND "2009">'17,233,000';
```
## Task
Generate a SQL query to answer the following question:
`Which 2012 has a 2011 of 17,142,000, and a 2010 smaller than 16,972,000?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "location" text,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2012 has a 2011 of 17,142,000, and a 2010 smaller than 16,972,000?`:
```sql
                SELECT MIN("2012") FROM "north_america" WHERE "2011"='17,142,000' AND "2010"<'16,972,000';
```
## Task
Generate a SQL query to answer the following question:
`Which 2009 has a 2012 of 17,536,000, and a 2010 smaller than 16,972,000?`

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

CREATE TABLE "north_america" (
  "rank" real,
  "location" text,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2009 has a 2012 of 17,536,000, and a 2010 smaller than 16,972,000?`:
```sql
                SELECT MAX("2009") FROM "north_america" WHERE "2012"='17,536,000' AND "2010"<'16,972,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Attendance of the game against the Florida Panthers?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "score" text,
  "opponent" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Attendance of the game against the Florida Panthers?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "opponent"='florida panthers';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?`

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

CREATE TABLE "game_log" (
  "game" text,
  "date" text,
  "score" text,
  "opponent" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "points">5 AND "attendance">'13,567';
```
## Task
Generate a SQL query to answer the following question:
`When his record was 15–1–1 (1) where did he fight?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When his record was 15–1–1 (1) where did he fight?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "record"='15–1–1 (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. 9"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Location is "Boston Garden", and when Date is "Fri. Nov. 9"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "location"='boston garden' AND "date"='fri. nov. 9';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "location"='boston garden' AND "game">1 AND "score"='115-105';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Game, when Date is "Wed. Nov. 14"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Game, when Date is "Wed. Nov. 14"?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "date"='wed. nov. 14';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Bill Rogers"?`

### 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" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Bill Rogers"?`:
```sql
                SELECT "score" FROM "final_round" WHERE "player"='bill rogers';
```
## Task
Generate a SQL query to answer the following question:
`Which State has an Electorate of West Sydney?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which State has an Electorate of West Sydney?`:
```sql
                SELECT "state" FROM "see_also" WHERE "electorate"='west sydney';
```
## Task
Generate a SQL query to answer the following question:
`Which State has an Electorate of Barton?`

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

CREATE TABLE "see_also" (
  "member" text,
  "party" text,
  "electorate" text,
  "state" text,
  "term_of_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which State has an Electorate of Barton?`:
```sql
                SELECT "state" FROM "see_also" WHERE "electorate"='barton';
```
## Task
Generate a SQL query to answer the following question:
`What was the L2 Cache for the processor with a release price of $496?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the L2 Cache for the processor with a release price of $496?`:
```sql
                SELECT "l2_cache" FROM "250_nm" WHERE "release_price_usd"='$496';
```
## Task
Generate a SQL query to answer the following question:
`What is the model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the model number for the processor with sSpec number of sl3jm(kc0)sl3jt(kc0)?`:
```sql
                SELECT "model_number" FROM "250_nm" WHERE "s_spec_number"='sl3jm(kc0)sl3jt(kc0)';
```
## Task
Generate a SQL query to answer the following question:
`What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?`

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

CREATE TABLE "250_nm" (
  "model_number" text,
  "s_spec_number" text,
  "frequency" text,
  "l2_cache" text,
  "mult" text,
  "voltage" text,
  "socket" text,
  "release_date" text,
  "part_number_s" text,
  "release_price_usd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?`:
```sql
                SELECT "frequency" FROM "250_nm" WHERE "s_spec_number"='sl3bn(kc0)sl3e9(kc0)';
```
## Task
Generate a SQL query to answer the following question:
`When did alfonse d'amore compete?`

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

CREATE TABLE "amateur_boxing_record_roy_scheider" (
  "result" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did alfonse d'amore compete?`:
```sql
                SELECT "date" FROM "amateur_boxing_record_roy_scheider" WHERE "opponent"='alfonse d''amore';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Method of ko, and a Date of 1958?`

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

CREATE TABLE "amateur_boxing_record_roy_scheider" (
  "result" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Method of ko, and a Date of 1958?`:
```sql
                SELECT MIN("round") FROM "amateur_boxing_record_roy_scheider" WHERE "method"='ko' AND "date"='1958';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?`

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

CREATE TABLE "amateur_boxing_record_roy_scheider" (
  "result" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Result of win, and a Round smaller than 2, and an Opponent of myron greenberg?`:
```sql
                SELECT "date" FROM "amateur_boxing_record_roy_scheider" WHERE "result"='win' AND "round"<2 AND "opponent"='myron greenberg';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Method of ko, and an Opponent of alfonse d'amore?`

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

CREATE TABLE "amateur_boxing_record_roy_scheider" (
  "result" text,
  "opponent" text,
  "method" text,
  "date" text,
  "round" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Method of ko, and an Opponent of alfonse d'amore?`:
```sql
                SELECT "round" FROM "amateur_boxing_record_roy_scheider" WHERE "method"='ko' AND "opponent"='alfonse d''amore';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Date of sep. 2008?`

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

CREATE TABLE "reserves_academy" (
  "date" text,
  "pos" text,
  "player" text,
  "from_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Date of sep. 2008?`:
```sql
                SELECT "player" FROM "reserves_academy" WHERE "date"='sep. 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Transfer fee has a From club of blackburn rovers?`

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

CREATE TABLE "reserves_academy" (
  "date" text,
  "pos" text,
  "player" text,
  "from_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Transfer fee has a From club of blackburn rovers?`:
```sql
                SELECT "transfer_fee" FROM "reserves_academy" WHERE "from_club"='blackburn rovers';
```
## Task
Generate a SQL query to answer the following question:
`Which From club has a Date of 20 oct. 2008?`

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

CREATE TABLE "reserves_academy" (
  "date" text,
  "pos" text,
  "player" text,
  "from_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which From club has a Date of 20 oct. 2008?`:
```sql
                SELECT "from_club" FROM "reserves_academy" WHERE "date"='20 oct. 2008';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Transfer fee of £750,000 [x]?`

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

CREATE TABLE "reserves_academy" (
  "date" text,
  "pos" text,
  "player" text,
  "from_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Transfer fee of £750,000 [x]?`:
```sql
                SELECT "player" FROM "reserves_academy" WHERE "transfer_fee"='£750,000 [x]';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when Date is "6 April 1992"?`

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

CREATE TABLE "doubles_24_11_13" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when Date is "6 April 1992"?`:
```sql
                SELECT "tournament" FROM "doubles_24_11_13" WHERE "date"='6 april 1992';
```
## Task
Generate a SQL query to answer the following question:
`What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?`

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

CREATE TABLE "doubles_24_11_13" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Surface, when Opponents is "Daniel Nestor Sandon Stolle"?`:
```sql
                SELECT "surface" FROM "doubles_24_11_13" WHERE "opponents"='daniel nestor sandon stolle';
```