cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many knots did the Ms Moby Vincent have when passengers was less than 1.6?`

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

CREATE TABLE "current_fleet" (
  "ship" text,
  "built" real,
  "entered_service" real,
  "route" text,
  "gross_tonnage" text,
  "length" text,
  "width" text,
  "passengers" real,
  "vessels" real,
  "knots" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many knots did the Ms Moby Vincent have when passengers was less than 1.6?`:
```sql
                SELECT COUNT("knots") FROM "current_fleet" WHERE "ship"='ms moby vincent' AND "passengers"<1.6;
```
## Task
Generate a SQL query to answer the following question:
`Where did Richmond play as the away team?`

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

CREATE TABLE "round_16" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did Richmond play as the away team?`:
```sql
                SELECT "venue" FROM "round_16" WHERE "away_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`When the phillies 1:15 pm played on April 9, what was the attendance?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the phillies 1:15 pm played on April 9, what was the attendance?`:
```sql
                SELECT "attendance" FROM "game_log" WHERE "opponent"='phillies 1:15 pm' AND "date"='april 9';
```
## Task
Generate a SQL query to answer the following question:
`When was there a score of 5-1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was there a score of 5-1?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='5-1';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of silvers for nations with over 1 bronze medal?`

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

CREATE TABLE "medal_table" (
  "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 average number of silvers for nations with over 1 bronze medal?`:
```sql
                SELECT AVG("silver") FROM "medal_table" WHERE "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Interregnum ended for Count Palatine of Saxony of frederick augustus i, elector of saxony?`:
```sql
                SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_saxony"='frederick augustus i, elector of saxony';
```
## Task
Generate a SQL query to answer the following question:
`What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Interregnum ended for Count Palatine of Saxony of john george ii, elector of saxony?`:
```sql
                SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_saxony"='john george ii, elector of saxony';
```
## Task
Generate a SQL query to answer the following question:
`What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the duration for Count Palatine of the Rhine of charles albert, elector of bavaria?`:
```sql
                SELECT "duration" FROM "list_of_imperial_vicars_1437_1792" WHERE "count_palatine_of_the_rhine"='charles albert, elector of bavaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Count Palatine of the Rhine with a Interregnum began of 2 april 1657 death of ferdinand iii?`:
```sql
                SELECT "count_palatine_of_the_rhine" FROM "list_of_imperial_vicars_1437_1792" WHERE "interregnum_began"='2 april 1657 death of ferdinand iii';
```
## Task
Generate a SQL query to answer the following question:
`What is the Interregnum ended for the person with a Duration of 3 months, 6 days?`

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

CREATE TABLE "list_of_imperial_vicars_1437_1792" (
  "interregnum_began" text,
  "interregnum_ended" text,
  "duration" text,
  "count_palatine_of_saxony" text,
  "count_palatine_of_the_rhine" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Interregnum ended for the person with a Duration of 3 months, 6 days?`:
```sql
                SELECT "interregnum_ended" FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days';
```
## Task
Generate a SQL query to answer the following question:
`What was the crowd size when the home team was Hawthorn?`

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

CREATE TABLE "round_5" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the crowd size when the home team was Hawthorn?`:
```sql
                SELECT "crowd" FROM "round_5" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65?`

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

CREATE TABLE "weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "rank_timeslot" real,
  "rank_night" text,
  "rank_overall" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total share with Timeslot of 8:30 p.m., anAir Date of march 27, 2008, and a Rank greater than 65?`:
```sql
                SELECT SUM("share") FROM "weekly_ratings" WHERE "timeslot"='8:30 p.m.' AND "air_date"='march 27, 2008' AND "rank_overall">65;
```
## Task
Generate a SQL query to answer the following question:
`How many viewers have an Air Date of march 20, 2008, and an 18-49 (Rating/Share) of 2.3/7?`

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

CREATE TABLE "weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "rank_timeslot" real,
  "rank_night" text,
  "rank_overall" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers have an Air Date of march 20, 2008, and an 18-49 (Rating/Share) of 2.3/7?`:
```sql
                SELECT "viewers_m" FROM "weekly_ratings" WHERE "air_date"='march 20, 2008' AND "18_49_rating_share"='2.3/7';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.?`

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

CREATE TABLE "weekly_ratings" (
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" real,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" real,
  "rank_timeslot" real,
  "rank_night" text,
  "rank_overall" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.?`:
```sql
                SELECT COUNT("viewers_m") FROM "weekly_ratings" WHERE "rank_night"='n/a' AND "timeslot"='8:30 p.m.';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the game when Calgary was the home team and the decision was McLean?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the game when Calgary was the home team and the decision was McLean?`:
```sql
                SELECT COUNT("attendance") FROM "april" WHERE "decision"='mclean' AND "home"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game when Los Angeles was the home team?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game when Los Angeles was the home team?`:
```sql
                SELECT "record" FROM "april" WHERE "home"='los angeles';
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a score of 1 – 5?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with a score of 1 – 5?`:
```sql
                SELECT "record" FROM "april" WHERE "score"='1 – 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of people to attend a game when Los Angeles was the home team?`

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

CREATE TABLE "april" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of people to attend a game when Los Angeles was the home team?`:
```sql
                SELECT MIN("attendance") FROM "april" WHERE "home"='los angeles';
```
## Task
Generate a SQL query to answer the following question:
`who is the runner- up when the tournament is santiago?`

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

CREATE TABLE "2011" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the runner- up when the tournament is santiago?`:
```sql
                SELECT "runner_up" FROM "2011" WHERE "tournament"='santiago';
```
## Task
Generate a SQL query to answer the following question:
`what is the score when the runner-up is richard krajicek?`

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

CREATE TABLE "2011" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the score when the runner-up is richard krajicek?`:
```sql
                SELECT "score" FROM "2011" WHERE "runner_up"='richard krajicek';
```
## Task
Generate a SQL query to answer the following question:
`what is the tournament when the score is 7-6(0), 6-3?`

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

CREATE TABLE "2011" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the tournament when the score is 7-6(0), 6-3?`:
```sql
                SELECT "tournament" FROM "2011" WHERE "score"='7-6(0), 6-3';
```
## Task
Generate a SQL query to answer the following question:
`who is third place when the tournament is delray beach?`

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

CREATE TABLE "2011" (
  "tournament" text,
  "winner" text,
  "runner_up" text,
  "score" text,
  "third_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is third place when the tournament is delray beach?`:
```sql
                SELECT "third_place" FROM "2011" WHERE "tournament"='delray beach';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the Continental Qualifier on February 23, 2003?`

### 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 score in the Continental Qualifier on February 23, 2003?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='continental qualifier' AND "date"='february 23, 2003';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the World Cup Qualifier?`

### 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 score for the World Cup Qualifier?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='world cup qualifier';
```
## Task
Generate a SQL query to answer the following question:
`What was the result on February 18, 2003?`

### 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 result on February 18, 2003?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='february 18, 2003';
```
## Task
Generate a SQL query to answer the following question:
`When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?`

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

CREATE TABLE "ships_of_the_class" (
  "name" text,
  "original_name" text,
  "commissioned" text,
  "final_decommission" text,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship that had a fate of 'converted to laker, 1961; still in service' commissioned?`:
```sql
                SELECT "commissioned" FROM "ships_of_the_class" WHERE "fate"='converted to laker, 1961; still in service';
```
## Task
Generate a SQL query to answer the following question:
`When was the ship originally named sachem finally decommissioned?`

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

CREATE TABLE "ships_of_the_class" (
  "name" text,
  "original_name" text,
  "commissioned" text,
  "final_decommission" text,
  "fate" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship originally named sachem finally decommissioned?`:
```sql
                SELECT "final_decommission" FROM "ships_of_the_class" WHERE "original_name"='sachem';
```
## Task
Generate a SQL query to answer the following question:
`When did the home team score 12.18 (90)?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the home team score 12.18 (90)?`:
```sql
                SELECT "date" FROM "round_13" WHERE "home_team_score"='12.18 (90)';
```
## Task
Generate a SQL query to answer the following question:
`What did the away team score in the game against Richmond?`

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

CREATE TABLE "round_13" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What did the away team score in the game against Richmond?`:
```sql
                SELECT "away_team_score" FROM "round_13" WHERE "home_team"='richmond';
```
## Task
Generate a SQL query to answer the following question:
`Which player has no 0 results and multiples ties?`

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

CREATE TABLE "list_of_ireland_cricket_captains" (
  "player" text,
  "dates_of_captaincy" text,
  "lost" real,
  "tied" real,
  "no_result" real,
  "pct_win_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has no 0 results and multiples ties?`:
```sql
                SELECT "player" FROM "list_of_ireland_cricket_captains" WHERE "no_result"=0 AND "tied">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the low no result with more than 5 loss and a win ration lesser than 58.06?`

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

CREATE TABLE "list_of_ireland_cricket_captains" (
  "player" text,
  "dates_of_captaincy" text,
  "lost" real,
  "tied" real,
  "no_result" real,
  "pct_win_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the low no result with more than 5 loss and a win ration lesser than 58.06?`:
```sql
                SELECT MIN("no_result") FROM "list_of_ireland_cricket_captains" WHERE "lost">5 AND "pct_win_a"<58.06;
```
## Task
Generate a SQL query to answer the following question:
`Which Crowd has an Away team score of 17.8 (110)?`

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

CREATE TABLE "round_20" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Crowd has an Away team score of 17.8 (110)?`:
```sql
                SELECT "crowd" FROM "round_20" WHERE "away_team_score"='17.8 (110)';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponent for may 12`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for may 12`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='may 12';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for Loss of schilling (5–2)`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for Loss of schilling (5–2)`:
```sql
                SELECT "date" FROM "game_log" WHERE "loss"='schilling (5–2)';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for may 31`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for may 31`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='may 31';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest average for the contestant having an interview score of 8.46?`

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

CREATE TABLE "preliminary_competition" (
  "state" text,
  "interview" real,
  "swimsuit" real,
  "evening_gown" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest average for the contestant having an interview score of 8.46?`:
```sql
                SELECT MAX("average") FROM "preliminary_competition" WHERE "interview"=8.46;
```
## Task
Generate a SQL query to answer the following question:
`What day had a time of 29.816?`

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

CREATE TABLE "nascar" (
  "record" text,
  "year" text,
  "date" text,
  "driver" text,
  "car_make" text,
  "time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day had a time of 29.816?`:
```sql
                SELECT "date" FROM "nascar" WHERE "time"='29.816';
```
## Task
Generate a SQL query to answer the following question:
`What kind of car has the NASCAR Camping World Truck Series record?`

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

CREATE TABLE "nascar" (
  "record" text,
  "year" text,
  "date" text,
  "driver" text,
  "car_make" text,
  "time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `What kind of car has the NASCAR Camping World Truck Series record?`:
```sql
                SELECT "car_make" FROM "nascar" WHERE "record"='nascar camping world truck series';
```
## Task
Generate a SQL query to answer the following question:
`Was it a home game on the date of April 6?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was it a home game on the date of April 6?`:
```sql
                SELECT "home" FROM "game_log" WHERE "date"='april 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the date when the home team was Dallas?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date when the home team was Dallas?`:
```sql
                SELECT "date" FROM "game_log" WHERE "home"='dallas';
```
## Task
Generate a SQL query to answer the following question:
`What is Rhett Mclane's highest pick number?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Rhett Mclane's highest pick number?`:
```sql
                SELECT MAX("pick_num") FROM "round_two" WHERE "player"='rhett mclane';
```
## Task
Generate a SQL query to answer the following question:
`What is Colorado College's lowest pick number?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Colorado College's lowest pick number?`:
```sql
                SELECT MIN("pick_num") FROM "round_two" WHERE "college"='colorado';
```
## Task
Generate a SQL query to answer the following question:
`What player belongs to Northwestern College?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player belongs to Northwestern College?`:
```sql
                SELECT "player" FROM "round_two" WHERE "college"='northwestern';
```
## Task
Generate a SQL query to answer the following question:
`What CFL Team is Pascal Masson on?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What CFL Team is Pascal Masson on?`:
```sql
                SELECT "cfl_team" FROM "round_two" WHERE "player"='pascal masson';
```
## Task
Generate a SQL query to answer the following question:
`What's the number & name for the date after 1954?`

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

CREATE TABLE "operational" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number & name for the date after 1954?`:
```sql
                SELECT "number_name" FROM "operational" WHERE "date">1954;
```
## Task
Generate a SQL query to answer the following question:
`What's the date for princess royal class locomotive trust?`

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

CREATE TABLE "operational" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the date for princess royal class locomotive trust?`:
```sql
                SELECT "date" FROM "operational" WHERE "owner_s"='princess royal class locomotive trust';
```
## Task
Generate a SQL query to answer the following question:
`What's the number & name for the description peckett 0-4-0st?`

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

CREATE TABLE "operational" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number & name for the description peckett 0-4-0st?`:
```sql
                SELECT "number_name" FROM "operational" WHERE "description"='peckett 0-4-0st';
```
## Task
Generate a SQL query to answer the following question:
`What's the number & name for a description of lms fowler class 3f 0-6-0t?`

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

CREATE TABLE "operational" (
  "number_name" text,
  "description" text,
  "livery" text,
  "owner_s" text,
  "date" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number & name for a description of lms fowler class 3f 0-6-0t?`:
```sql
                SELECT "number_name" FROM "operational" WHERE "description"='lms fowler class 3f 0-6-0t';
```
## Task
Generate a SQL query to answer the following question:
`When did the green bay packers win at green bay with an attendance over 70,920?`

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

CREATE TABLE "2000s_packers_12_8" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the green bay packers win at green bay with an attendance over 70,920?`:
```sql
                SELECT "date" FROM "2000s_packers_12_8" WHERE "location"='green bay' AND "winner"='green bay packers' AND "attendance">'70,920';
```
## Task
Generate a SQL query to answer the following question:
`Who drive 74 laps in a grid larger than 9?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who drive 74 laps in a grid larger than 9?`:
```sql
                SELECT "driver" FROM "classification" WHERE "laps"=74 AND "grid">9;
```
## Task
Generate a SQL query to answer the following question:
`Who is the player for St. Mary's team?`

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

CREATE TABLE "r" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player for St. Mary's team?`:
```sql
                SELECT "player" FROM "r" WHERE "school_club_team_country"='st. mary''s';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the player from Mississippi`

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

CREATE TABLE "r" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the player from Mississippi`:
```sql
                SELECT "height_in_ft" FROM "r" WHERE "school_club_team_country"='mississippi';
```
## Task
Generate a SQL query to answer the following question:
`What is the player number for the player from Centenary?`

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

CREATE TABLE "r" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the player number for the player from Centenary?`:
```sql
                SELECT "no_s" FROM "r" WHERE "school_club_team_country"='centenary';
```
## Task
Generate a SQL query to answer the following question:
`How tall is player 42 from Long Beach State?`

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

CREATE TABLE "r" (
  "player" text,
  "no_s" text,
  "height_in_ft" text,
  "position" text,
  "years_for_rockets" text,
  "school_club_team_country" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is player 42 from Long Beach State?`:
```sql
                SELECT "height_in_ft" FROM "r" WHERE "no_s"='42' AND "school_club_team_country"='long beach state';
```
## Task
Generate a SQL query to answer the following question:
`What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?`

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

CREATE TABLE "early_cbs_and_abc_s_era_1959_1978" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "pit_reporters" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?`:
```sql
                SELECT "network" FROM "early_cbs_and_abc_s_era_1959_1978" WHERE "lap_by_lap"='bill flemming' AND "pit_reporters"='chris economaki';
```
## Task
Generate a SQL query to answer the following question:
`Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?`

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

CREATE TABLE "early_cbs_and_abc_s_era_1959_1978" (
  "year" real,
  "network" text,
  "lap_by_lap" text,
  "pit_reporters" text,
  "host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?`:
```sql
                SELECT "lap_by_lap" FROM "early_cbs_and_abc_s_era_1959_1978" WHERE "year">1973 AND "pit_reporters"='bill flemming';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 9:00 when at 10:00 it is local programming and at 8:30 it is decision house (reruns)?`:
```sql
                SELECT "9_00" FROM "monday" WHERE "10_00"='local programming' AND "8_30"='decision house (reruns)';
```
## Task
Generate a SQL query to answer the following question:
`What is on at 8:00 when at 8:30 it is the bachelorette?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on at 8:00 when at 8:30 it is the bachelorette?`:
```sql
                SELECT "8_00" FROM "monday" WHERE "8_30"='the bachelorette';
```
## Task
Generate a SQL query to answer the following question:
`what is on a 8:30 when at 9:00 it is one tree hill (reruns)?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is on a 8:30 when at 9:00 it is one tree hill (reruns)?`:
```sql
                SELECT "8_30" FROM "monday" WHERE "9_00"='one tree hill (reruns)';
```
## Task
Generate a SQL query to answer the following question:
`What is at 8:30 when at 9:30 it is rules of engagement (reruns)?`

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

CREATE TABLE "monday" (
  "8_00" text,
  "8_30" text,
  "9_00" text,
  "9_30" text,
  "10_00" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is at 8:30 when at 9:30 it is rules of engagement (reruns)?`:
```sql
                SELECT "8_30" FROM "monday" WHERE "9_30"='rules of engagement (reruns)';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round for Fort Lauderdale, Florida, United States, with a win and a time of 3:38?`:
```sql
                SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "res"='win' AND "location"='fort lauderdale, florida, united states' AND "time"='3:38';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds have a time of 2:18?`

### 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,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds have a time of 2:18?`:
```sql
                SELECT COUNT("round") FROM "mixed_martial_arts_record" WHERE "time"='2:18';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Grid with fewer than 65 Laps and with Driver Tim Schenken?`:
```sql
                SELECT MIN("grid") FROM "classification" WHERE "laps"<65 AND "driver"='tim schenken';
```
## Task
Generate a SQL query to answer the following question:
`What Driver has 1 in Grid?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Driver has 1 in Grid?`:
```sql
                SELECT "driver" FROM "classification" WHERE "grid"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is Driver Howden Ganley's Time/Retired?`

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

CREATE TABLE "classification" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Driver Howden Ganley's Time/Retired?`:
```sql
                SELECT "time_retired" FROM "classification" WHERE "driver"='howden ganley';
```
## Task
Generate a SQL query to answer the following question:
`On what date was Hawthorn the home team?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was Hawthorn the home team?`:
```sql
                SELECT "date" FROM "round_18" WHERE "home_team"='hawthorn';
```
## Task
Generate a SQL query to answer the following question:
`Which home team opposed an away team with a score of 16.22 (118)?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team opposed an away team with a score of 16.22 (118)?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "away_team_score"='16.22 (118)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team at Junction Oval?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team at Junction Oval?`:
```sql
                SELECT "away_team" FROM "round_18" WHERE "venue"='junction oval';
```
## Task
Generate a SQL query to answer the following question:
`Which home team played at MCG?`

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

CREATE TABLE "round_18" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "venue" text,
  "crowd" real,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team played at MCG?`:
```sql
                SELECT "home_team" FROM "round_18" WHERE "venue"='mcg';
```
## Task
Generate a SQL query to answer the following question:
`Tell me the sum of draws for position less than 15 with played more than 38`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the sum of draws for position less than 15 with played more than 38`:
```sql
                SELECT SUM("draws") FROM "final_table" WHERE "position"<15 AND "played">38;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27`

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

CREATE TABLE "final_table" (
  "position" real,
  "club" text,
  "played" real,
  "points" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of played for position less than 9 and draws more than 19 with goals against more than 27`:
```sql
                SELECT SUM("played") FROM "final_table" WHERE "position"<9 AND "draws">19 AND "goals_against">27;
```
## Task
Generate a SQL query to answer the following question:
`Name the recorded for translation of sleep my love, good night`

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

CREATE TABLE "track_listing" (
  "track" real,
  "title" text,
  "translation" text,
  "composer" text,
  "recorded" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the recorded for translation of sleep my love, good night`:
```sql
                SELECT "recorded" FROM "track_listing" WHERE "translation"='sleep my love, good night';
```
## Task
Generate a SQL query to answer the following question:
`What is the Winter in 1906?`

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

CREATE TABLE "olympic_host_cities" (
  "city" text,
  "country" text,
  "continent" text,
  "summer" text,
  "winter" text,
  "season" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winter in 1906?`:
```sql
                SELECT "winter" FROM "olympic_host_cities" WHERE "year"=1906;
```
## Task
Generate a SQL query to answer the following question:
`Which driver has a Time/Retired of 2:45:46.2?`

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

CREATE TABLE "race" (
  "driver" text,
  "constructor" text,
  "laps" real,
  "time_retired" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which driver has a Time/Retired of 2:45:46.2?`:
```sql
                SELECT "driver" FROM "race" WHERE "time_retired"='2:45:46.2';
```
## Task
Generate a SQL query to answer the following question:
`What position for the western michigan product picked ahead of 312?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position for the western michigan product picked ahead of 312?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "pick"<312 AND "school_club_team"='western michigan';
```
## Task
Generate a SQL query to answer the following question:
`What date did the Chicago Bears beat the Green bay Packers 31-20?`

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

CREATE TABLE "1950s_bears_14_5_1" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "attendance" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Chicago Bears beat the Green bay Packers 31-20?`:
```sql
                SELECT "date" FROM "1950s_bears_14_5_1" WHERE "loser"='green bay packers' AND "location"='green bay';
```
## Task
Generate a SQL query to answer the following question:
`When were the boston bruins the home team?`

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

CREATE TABLE "march" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were the boston bruins the home team?`:
```sql
                SELECT "date" FROM "march" WHERE "home"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`In what nation is Bordeaux?`

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

CREATE TABLE "in" (
  "nat" text,
  "name" text,
  "moving_from" text,
  "type" text,
  "transfer_window" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what nation is Bordeaux?`:
```sql
                SELECT "nat" FROM "in" WHERE "moving_from"='bordeaux';
```
## Task
Generate a SQL query to answer the following question:
`Who has the lead in Norway?`

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

CREATE TABLE "teams" (
  "nation" text,
  "skip" text,
  "third" text,
  "second" text,
  "lead" text,
  "alternate" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the lead in Norway?`:
```sql
                SELECT "lead" FROM "teams" WHERE "nation"='norway';
```