cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on 4 February 1987 when Luton Town was away team and there was no replay?`:
```sql
                SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='replay' AND "date"='4 february 1987' AND "away_team"='luton town';
```
## Task
Generate a SQL query to answer the following question:
`What was the score on 31 January 1987 with tie number 1?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score on 31 January 1987 with tie number 1?`:
```sql
                SELECT "score" FROM "fourth_round_proper" WHERE "date"='31 january 1987' AND "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`Who was the away team on 31 January 1987 when the home team was Wimbledon?`

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

CREATE TABLE "fourth_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the away team on 31 January 1987 when the home team was Wimbledon?`:
```sql
                SELECT "away_team" FROM "fourth_round_proper" WHERE "date"='31 january 1987' AND "home_team"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`How high is Macedonia's highest point?`

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

CREATE TABLE "notes" (
  "rank" text,
  "country" text,
  "highest_point" text,
  "height_m" real,
  "height_ft" real
);
### SQL
Given the database schema, here is the SQL query that answers `How high is Macedonia's highest point?`:
```sql
                SELECT "height_ft" FROM "notes" WHERE "country"='macedonia';
```
## Task
Generate a SQL query to answer the following question:
`What is the theme with dani as the winner?`

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

CREATE TABLE "bush_battles" (
  "battle_no" real,
  "broadcast_date" text,
  "name_of_battle" text,
  "theme" text,
  "celebrities_taking_part" text,
  "winner" text,
  "runner_up" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the theme with dani as the winner?`:
```sql
                SELECT "theme" FROM "bush_battles" WHERE "winner"='dani';
```
## Task
Generate a SQL query to answer the following question:
`What are the notes of the patience theme?`

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

CREATE TABLE "bush_battles" (
  "battle_no" real,
  "broadcast_date" text,
  "name_of_battle" text,
  "theme" text,
  "celebrities_taking_part" text,
  "winner" text,
  "runner_up" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the notes of the patience theme?`:
```sql
                SELECT "notes" FROM "bush_battles" WHERE "theme"='patience';
```
## Task
Generate a SQL query to answer the following question:
`what is the round when the position is (c)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the round when the position is (c)?`:
```sql
                SELECT MAX("round") FROM "draft_picks" WHERE "position"='(c)';
```
## Task
Generate a SQL query to answer the following question:
`what is the round for jake gardiner?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the round for jake gardiner?`:
```sql
                SELECT AVG("round") FROM "draft_picks" WHERE "player"='jake gardiner';
```
## Task
Generate a SQL query to answer the following question:
`what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the round is higher than 1, the nationality is canada and the position is (d)?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "round">1 AND "nationality"='canada' AND "position"='(d)';
```
## Task
Generate a SQL query to answer the following question:
`what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the position when the round is higher than 3, the nationality is united states and the player is nick pryor?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "round">3 AND "nationality"='united states' AND "player"='nick pryor';
```
## Task
Generate a SQL query to answer the following question:
`what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "player" text,
  "position" text,
  "nationality" text,
  "college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the college/junior/club team (league) when the position is (c) and the round is higher than 2?`:
```sql
                SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "position"='(c)' AND "round">2;
```
## Task
Generate a SQL query to answer the following question:
`When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?`

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

CREATE TABLE "2011_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?`:
```sql
                SELECT MAX("byes") FROM "2011_ladder" WHERE "south_west_dfl"='heathmere' AND "wins">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the most games lost when the against is greater than 1401, and the draws greater than 0?`

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

CREATE TABLE "2011_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most games lost when the against is greater than 1401, and the draws greater than 0?`:
```sql
                SELECT MAX("losses") FROM "2011_ladder" WHERE "draws">0 AND "against">1401;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum draws when less than 2514 is the against, and less than 0 byes?`

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

CREATE TABLE "2011_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum draws when less than 2514 is the against, and less than 0 byes?`:
```sql
                SELECT MAX("draws") FROM "2011_ladder" WHERE "against"<2514 AND "byes"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the wins average when 17 games were lost?`

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

CREATE TABLE "2011_ladder" (
  "south_west_dfl" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the wins average when 17 games were lost?`:
```sql
                SELECT AVG("wins") FROM "2011_ladder" WHERE "losses"=17;
```
## Task
Generate a SQL query to answer the following question:
`What stadium is in the city of Debrecen?`

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

CREATE TABLE "stadium_and_locations" (
  "club" text,
  "short_name" text,
  "city" text,
  "stadium" text,
  "capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What stadium is in the city of Debrecen?`:
```sql
                SELECT "stadium" FROM "stadium_and_locations" WHERE "city"='debrecen';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of silver when rank was 5, and a bronze was smaller than 14?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "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 number of silver when rank was 5, and a bronze was smaller than 14?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "rank"='5' AND "bronze"<14;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest bronze number when silver is 0, and the total is smaller than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "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 highest bronze number when silver is 0, and the total is smaller than 1?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "silver"=0 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total when the nation was Argentina, and a Goldwas smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total when the nation was Argentina, and a Goldwas smaller than 0?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "nation"='argentina' AND "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "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 nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "bronze"<7 AND "gold">0 AND "total">7 AND "silver"<3;
```
## Task
Generate a SQL query to answer the following question:
`What date was the game against manchester city when they had a league position of 2nd?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game against manchester city when they had a league position of 2nd?`:
```sql
                SELECT "date" FROM "fa_premier_league" WHERE "h_a"='a' AND "league_position"='2nd' AND "opponents"='manchester city';
```
## Task
Generate a SQL query to answer the following question:
`What is the result F-A of the game on 6 march 1993?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result F-A of the game on 6 march 1993?`:
```sql
                SELECT "result_f_a" FROM "fa_premier_league" WHERE "date"='6 march 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is the result F-A of the game on 3 may 1993?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real,
  "league_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result F-A of the game on 3 may 1993?`:
```sql
                SELECT "result_f_a" FROM "fa_premier_league" WHERE "date"='3 may 1993';
```
## Task
Generate a SQL query to answer the following question:
`What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tie no, when Date is "18 Nov 1989", and when Home Team is "Doncaster Rovers"?`:
```sql
                SELECT "tie_no" FROM "first_round_proper" WHERE "date"='18 nov 1989' AND "home_team"='doncaster rovers';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Away Team is "Yeovil Town"?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Away Team is "Yeovil Town"?`:
```sql
                SELECT "score" FROM "first_round_proper" WHERE "away_team"='yeovil town';
```
## Task
Generate a SQL query to answer the following question:
`What is Home Team, when Tie no is "27"?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home Team, when Tie no is "27"?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "tie_no"='27';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Tie no is "37"?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Tie no is "37"?`:
```sql
                SELECT "date" FROM "first_round_proper" WHERE "tie_no"='37';
```
## Task
Generate a SQL query to answer the following question:
`What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?`

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

CREATE TABLE "first_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Home Team, when Date is "22 Nov 1989", and when Away Team is "Bath City"?`:
```sql
                SELECT "home_team" FROM "first_round_proper" WHERE "date"='22 nov 1989' AND "away_team"='bath city';
```
## Task
Generate a SQL query to answer the following question:
`What year was the play-by-play for Don Earle?`

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

CREATE TABLE "1970s" (
  "year" text,
  "channel" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the play-by-play for Don Earle?`:
```sql
                SELECT "year" FROM "1970s" WHERE "play_by_play"='don earle';
```
## Task
Generate a SQL query to answer the following question:
`What is Tom Kite with a Score of 68's To Par?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tom Kite with a Score of 68's To Par?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"=68 AND "player"='tom kite';
```
## Task
Generate a SQL query to answer the following question:
`What is Tom Kite's Place?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tom Kite's Place?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='tom kite';
```
## Task
Generate a SQL query to answer the following question:
`What is the televote points for 0 jury points and 23 draws?`

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

CREATE TABLE "televoting_results" (
  "draw" real,
  "televotes" text,
  "televote_points" text,
  "jury_points" text,
  "total" text,
  "final_points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the televote points for 0 jury points and 23 draws?`:
```sql
                SELECT "televote_points" FROM "televoting_results" WHERE "jury_points"='0' AND "draw"=23;
```
## Task
Generate a SQL query to answer the following question:
`What district was a republican first elected in 2000?`

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

CREATE TABLE "missouri" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district was a republican first elected in 2000?`:
```sql
                SELECT "district" FROM "missouri" WHERE "first_elected"=2000 AND "party"='republican';
```
## Task
Generate a SQL query to answer the following question:
`In what district was incumbent Russ Carnahan elected after 2000?`

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

CREATE TABLE "missouri" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what district was incumbent Russ Carnahan elected after 2000?`:
```sql
                SELECT "district" FROM "missouri" WHERE "first_elected">2000 AND "incumbent"='russ carnahan';
```
## Task
Generate a SQL query to answer the following question:
`For which venue did Leicester City lose?`

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

CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
  "season" text,
  "date" text,
  "winner" text,
  "loser" text,
  "score" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `For which venue did Leicester City lose?`:
```sql
                SELECT "venue" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "loser"='leicester city';
```
## Task
Generate a SQL query to answer the following question:
`What season did Stoke City win?`

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

CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
  "season" text,
  "date" text,
  "winner" text,
  "loser" text,
  "score" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season did Stoke City win?`:
```sql
                SELECT "season" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "winner"='stoke city';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance for St Andrew's?`

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

CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
  "season" text,
  "date" text,
  "winner" text,
  "loser" text,
  "score" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance for St Andrew's?`:
```sql
                SELECT "attendance" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "venue"='st andrew''s';
```
## Task
Generate a SQL query to answer the following question:
`What season did Wolverhampton Wanderers win?`

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

CREATE TABLE "list_of_fa_cup_third_fourth_place_matche" (
  "season" text,
  "date" text,
  "winner" text,
  "loser" text,
  "score" text,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season did Wolverhampton Wanderers win?`:
```sql
                SELECT "season" FROM "list_of_fa_cup_third_fourth_place_matche" WHERE "winner"='wolverhampton wanderers';
```
## Task
Generate a SQL query to answer the following question:
`Which Call sign has an ERP W of 75?`

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

CREATE TABLE "broadcast_translators_of_kjth" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "facility_id" real,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Call sign has an ERP W of 75?`:
```sql
                SELECT "call_sign" FROM "broadcast_translators_of_kjth" WHERE "erp_w"=75;
```
## Task
Generate a SQL query to answer the following question:
`Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?`

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

CREATE TABLE "broadcast_translators_of_kjth" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "facility_id" real,
  "erp_w" real,
  "height_m_ft" text,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has a Facility ID greater than 85076 and a Call Sign of K289au?`:
```sql
                SELECT "class" FROM "broadcast_translators_of_kjth" WHERE "facility_id">85076 AND "call_sign"='k289au';
```
## Task
Generate a SQL query to answer the following question:
`What year was jack cole nominated?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was jack cole nominated?`:
```sql
                SELECT "year" FROM "original_broadway_production" WHERE "nominee"='jack cole';
```
## Task
Generate a SQL query to answer the following question:
`What award ceremony was howard bay and patton campbell nominated?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award_ceremony" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What award ceremony was howard bay and patton campbell nominated?`:
```sql
                SELECT "award_ceremony" FROM "original_broadway_production" WHERE "nominee"='howard bay and patton campbell';
```
## Task
Generate a SQL query to answer the following question:
`What is Visitor, when Date is "May 9"?`

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

CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Visitor, when Date is "May 9"?`:
```sql
                SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='may 9';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?`

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

CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Home is "Montreal Canadiens", and when Date is "May 16"?`:
```sql
                SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='montreal canadiens' AND "date"='may 16';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Date is "May 11"?`

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

CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Date is "May 11"?`:
```sql
                SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "date"='may 11';
```
## Task
Generate a SQL query to answer the following question:
`What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?`

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

CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Visitor, when Home is "Chicago Black Hawks", and when Date is "May 4"?`:
```sql
                SELECT "visitor" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "home"='chicago black hawks' AND "date"='may 4';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Record is "2-0"?`

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

CREATE TABLE "montreal_canadiens_4_chicago_black_hawks" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Record is "2-0"?`:
```sql
                SELECT "score" FROM "montreal_canadiens_4_chicago_black_hawks" WHERE "record"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament included the round played on 14 May?`

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

CREATE TABLE "competitive" (
  "date" text,
  "tournament" text,
  "round" text,
  "ground" text,
  "opponent" text,
  "score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament included the round played on 14 May?`:
```sql
                SELECT "tournament" FROM "competitive" WHERE "date"='14 may';
```
## Task
Generate a SQL query to answer the following question:
`Which round was played on 10 May?`

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

CREATE TABLE "competitive" (
  "date" text,
  "tournament" text,
  "round" text,
  "ground" text,
  "opponent" text,
  "score_1" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round was played on 10 May?`:
```sql
                SELECT "round" FROM "competitive" WHERE "date"='10 may';
```
## Task
Generate a SQL query to answer the following question:
`what is the language when the points is more than 119 and the place is higher than 5?`

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

CREATE TABLE "participants" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "national_final" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the language when the points is more than 119 and the place is higher than 5?`:
```sql
                SELECT "language" FROM "participants" WHERE "points">119 AND "place">5;
```
## Task
Generate a SQL query to answer the following question:
`what is the highest place when the national final is 4th and the points is less than 139?`

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

CREATE TABLE "participants" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "national_final" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest place when the national final is 4th and the points is less than 139?`:
```sql
                SELECT MAX("place") FROM "participants" WHERE "national_final"='4th' AND "points"<139;
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest place when the language is croatian?`

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

CREATE TABLE "participants" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "national_final" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest place when the language is croatian?`:
```sql
                SELECT MIN("place") FROM "participants" WHERE "language"='croatian';
```
## Task
Generate a SQL query to answer the following question:
`what is the language when the english translation is come to me?`

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

CREATE TABLE "participants" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "national_final" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the language when the english translation is come to me?`:
```sql
                SELECT "language" FROM "participants" WHERE "english_translation"='come to me';
```
## Task
Generate a SQL query to answer the following question:
`what is the song when the points is more than 64, the national final is 4th and draw is more than 3?`

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

CREATE TABLE "participants" (
  "draw" real,
  "language" text,
  "artist" text,
  "song" text,
  "english_translation" text,
  "national_final" text,
  "place" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the song when the points is more than 64, the national final is 4th and draw is more than 3?`:
```sql
                SELECT "song" FROM "participants" WHERE "points">64 AND "national_final"='4th' AND "draw">3;
```
## Task
Generate a SQL query to answer the following question:
`What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Category, when Result is "Nominated", when Award is "Drama Desk Award", and when Nominee is "Nathan Lane"?`:
```sql
                SELECT "category" FROM "original_broadway_production" WHERE "result"='nominated' AND "award"='drama desk award' AND "nominee"='nathan lane';
```
## Task
Generate a SQL query to answer the following question:
`What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth"?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Category, when Result is "Won", and when Nominee is "Bebe Neuwirth"?`:
```sql
                SELECT "category" FROM "original_broadway_production" WHERE "result"='won' AND "nominee"='bebe neuwirth';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"?`:
```sql
                SELECT COUNT("year") FROM "original_broadway_production" WHERE "result"='nominated' AND "category"='outstanding actor in a musical' AND "award"='drama desk award';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"?`

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

CREATE TABLE "original_broadway_production" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"?`:
```sql
                SELECT SUM("year") FROM "original_broadway_production" WHERE "award"='outer critics circle award' AND "nominee"='nathan lane';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Builder is "Kerr Stuart"?`

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

CREATE TABLE "locomotives" (
  "name" text,
  "builder" text,
  "type" text,
  "works_number" text,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Builder is "Kerr Stuart"?`:
```sql
                SELECT "name" FROM "locomotives" WHERE "builder"='kerr stuart';
```
## Task
Generate a SQL query to answer the following question:
`What is Built, when Works Number is "717"?`

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

CREATE TABLE "locomotives" (
  "name" text,
  "builder" text,
  "type" text,
  "works_number" text,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Built, when Works Number is "717"?`:
```sql
                SELECT "built" FROM "locomotives" WHERE "works_number"='717';
```
## Task
Generate a SQL query to answer the following question:
`What is Type, when Works Number is "unknown"?`

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

CREATE TABLE "locomotives" (
  "name" text,
  "builder" text,
  "type" text,
  "works_number" text,
  "built" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Type, when Works Number is "unknown"?`:
```sql
                SELECT "type" FROM "locomotives" WHERE "works_number"='unknown';
```
## Task
Generate a SQL query to answer the following question:
`What is the circuit for the ADAC großer preis der tourenwagen race?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the circuit for the ADAC großer preis der tourenwagen race?`:
```sql
                SELECT "circuit" FROM "race_calendar_and_winners" WHERE "race"='adac großer preis der tourenwagen';
```
## Task
Generate a SQL query to answer the following question:
`What is the date that Fabrizio Giovanardi Christian Abt won?`

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

CREATE TABLE "race_calendar_and_winners" (
  "round" real,
  "race" text,
  "circuit" text,
  "date" text,
  "event" text,
  "winning_driver" text,
  "winning_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that Fabrizio Giovanardi Christian Abt won?`:
```sql
                SELECT "date" FROM "race_calendar_and_winners" WHERE "winning_driver"='fabrizio giovanardi christian abt';
```
## Task
Generate a SQL query to answer the following question:
`What home team has 16 as the tie no.?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has 16 as the tie no.?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='16';
```
## Task
Generate a SQL query to answer the following question:
`What score has hull city as the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has hull city as the away team?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "away_team"='hull city';
```
## Task
Generate a SQL query to answer the following question:
`What away team has 12 as the tie no.?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What away team has 12 as the tie no.?`:
```sql
                SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='12';
```
## Task
Generate a SQL query to answer the following question:
`What date has 11 as the tie no.?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has 11 as the tie no.?`:
```sql
                SELECT "date" FROM "second_round_proper" WHERE "tie_no"='11';
```
## Task
Generate a SQL query to answer the following question:
`What home team has blackpool as the away team?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has blackpool as the away team?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='blackpool';
```
## Task
Generate a SQL query to answer the following question:
`What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?`

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

CREATE TABLE "doubles_6_2_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?`:
```sql
                SELECT "surface" FROM "doubles_6_2_4" WHERE "opponents"='sergiy stakhovsky mikhail youzhny';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the opponent lukáš dlouhý leander paes?`

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

CREATE TABLE "doubles_6_2_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the opponent lukáš dlouhý leander paes?`:
```sql
                SELECT "score" FROM "doubles_6_2_4" WHERE "opponents"='lukáš dlouhý leander paes';
```
## Task
Generate a SQL query to answer the following question:
`What day was there a hard surface when the partner was Marc Gicquel?`

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

CREATE TABLE "doubles_6_2_4" (
  "outcome" text,
  "date" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What day was there a hard surface when the partner was Marc Gicquel?`:
```sql
                SELECT "date" FROM "doubles_6_2_4" WHERE "surface"='hard' AND "partner"='marc gicquel';
```
## Task
Generate a SQL query to answer the following question:
`What is the total (kg) when the snatch was 84, and bodyweight was less than 57.35?`

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

CREATE TABLE "lightweight_58_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total (kg) when the snatch was 84, and bodyweight was less than 57.35?`:
```sql
                SELECT AVG("total_kg") FROM "lightweight_58_kg" WHERE "snatch"=84 AND "bodyweight"<57.35;
```
## Task
Generate a SQL query to answer the following question:
`What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?`

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

CREATE TABLE "lightweight_58_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?`:
```sql
                SELECT AVG("clean_jerk") FROM "lightweight_58_kg" WHERE "total_kg">204 AND "snatch">98;
```
## Task
Generate a SQL query to answer the following question:
`What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?`

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

CREATE TABLE "lightweight_58_kg" (
  "name" text,
  "bodyweight" real,
  "snatch" real,
  "clean_jerk" real,
  "total_kg" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?`:
```sql
                SELECT SUM("total_kg") FROM "lightweight_58_kg" WHERE "bodyweight">57.8 AND "clean_jerk"<103;
```
## Task
Generate a SQL query to answer the following question:
`What is the Overall of the pick less than 20?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Overall of the pick less than 20?`:
```sql
                SELECT "overall" FROM "nfl_draft" WHERE "pick_num"<20;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the cornerback from Wisconsin college?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the cornerback from Wisconsin college?`:
```sql
                SELECT "name" FROM "nfl_draft" WHERE "position"='cornerback' AND "college"='wisconsin';
```
## Task
Generate a SQL query to answer the following question:
`What college is Pat Thomas from?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college is Pat Thomas from?`:
```sql
                SELECT "college" FROM "nfl_draft" WHERE "name"='pat thomas';
```
## Task
Generate a SQL query to answer the following question:
`What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made?`:
```sql
                SELECT MAX("top_10") FROM "summary" WHERE "events"<39 AND "top_5"=1 AND "cuts_made">5;
```