cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?`

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

CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?`:
```sql
                SELECT COUNT("wins") FROM "group_ii" WHERE "goal_difference"<21 AND "draws"=4 AND "losses"<21;
```
## Task
Generate a SQL query to answer the following question:
`What is the round for the qualifying phase with a draw date on 16 July 2010?`

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

CREATE TABLE "round_and_draw_dates" (
  "phase" text,
  "round" text,
  "draw_date" text,
  "first_leg" text,
  "second_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the round for the qualifying phase with a draw date on 16 July 2010?`:
```sql
                SELECT "round" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "draw_date"='16 july 2010';
```
## Task
Generate a SQL query to answer the following question:
`Jack Nicklaus finished in what place?`

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

CREATE TABLE "made_both_cuts" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Jack Nicklaus finished in what place?`:
```sql
                SELECT "finish" FROM "made_both_cuts" WHERE "player"='jack nicklaus';
```
## Task
Generate a SQL query to answer the following question:
`What year (s) won was +2 the To par, and t22 the finish?`

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

CREATE TABLE "made_both_cuts" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year (s) won was +2 the To par, and t22 the finish?`:
```sql
                SELECT "year_s_won" FROM "made_both_cuts" WHERE "to_par"='+2' AND "finish"='t22';
```
## Task
Generate a SQL query to answer the following question:
`Lee Trevino of the United States with a total greater than 294 had what To par?`

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

CREATE TABLE "made_both_cuts" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `Lee Trevino of the United States with a total greater than 294 had what To par?`:
```sql
                SELECT "to_par" FROM "made_both_cuts" WHERE "total">294 AND "country"='united states' AND "player"='lee trevino';
```
## Task
Generate a SQL query to answer the following question:
`The golfer from Spain with a total less than 294 won in what year (s)?`

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

CREATE TABLE "made_both_cuts" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `The golfer from Spain with a total less than 294 won in what year (s)?`:
```sql
                SELECT "year_s_won" FROM "made_both_cuts" WHERE "total"<294 AND "country"='spain';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Pick # smaller than 130 and a Player of tyler bunz? Question 1`:
```sql
                SELECT "nationality" FROM "round_five" WHERE "pick_num"<130 AND "player"='tyler bunz';
```
## Task
Generate a SQL query to answer the following question:
`Which League from has a Player of louis domingue?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League from has a Player of louis domingue?`:
```sql
                SELECT "league_from" FROM "round_five" WHERE "player"='louis domingue';
```
## Task
Generate a SQL query to answer the following question:
`Which League from has a NHL team of san jose sharks (from carolina) 3?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League from has a NHL team of san jose sharks (from carolina) 3?`:
```sql
                SELECT "league_from" FROM "round_five" WHERE "nhl_team"='san jose sharks (from carolina) 3';
```
## Task
Generate a SQL query to answer the following question:
`Name the Nationality of södertälje sk?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Nationality of södertälje sk?`:
```sql
                SELECT "nationality" FROM "round_five" WHERE "team_from"='södertälje sk';
```
## Task
Generate a SQL query to answer the following question:
`Which Team has a Pick # of 148?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team has a Pick # of 148?`:
```sql
                SELECT "team_from" FROM "round_five" WHERE "pick_num"=148;
```
## Task
Generate a SQL query to answer the following question:
`Which team has a League from of ontario hockey league, and a Player of tony dehart?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "nhl_team" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a League from of ontario hockey league, and a Player of tony dehart?`:
```sql
                SELECT "nhl_team" FROM "round_five" WHERE "league_from"='ontario hockey league' AND "player"='tony dehart';
```
## Task
Generate a SQL query to answer the following question:
`What is T4 Place Player Nick Price's Money?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is T4 Place Player Nick Price's Money?`:
```sql
                SELECT "money" FROM "final_round" WHERE "place"='t4' AND "player"='nick price';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of the Place 1 Player?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the Place 1 Player?`:
```sql
                SELECT "to_par" FROM "final_round" WHERE "place"='1';
```
## Task
Generate a SQL query to answer the following question:
`What Player's Score is 69-68-66-70=273?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Player's Score is 69-68-66-70=273?`:
```sql
                SELECT "player" FROM "final_round" WHERE "score"='69-68-66-70=273';
```
## Task
Generate a SQL query to answer the following question:
`What Player's To par is −6?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Player's To par is −6?`:
```sql
                SELECT "player" FROM "final_round" WHERE "to_par"='−6';
```
## Task
Generate a SQL query to answer the following question:
`What is the height of the the building ranked 13= with fewer than 28 floors?`

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

CREATE TABLE "tallest_buildings" (
  "rank" text,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height of the the building ranked 13= with fewer than 28 floors?`:
```sql
                SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='13=' AND "floors"<28;
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a To par larger than 3, and a Year(s) won of 1979? Question 1`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "to_par">3 AND "year_s_won"='1979';
```
## Task
Generate a SQL query to answer the following question:
`Which To par has a Country of australia, and a Year(s) won of 1990?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which To par has a Country of australia, and a Year(s) won of 1990?`:
```sql
                SELECT MIN("to_par") FROM "missed_the_cut" WHERE "country"='australia' AND "year_s_won"='1990';
```
## Task
Generate a SQL query to answer the following question:
`Which city is in Cantabria?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which city is in Cantabria?`:
```sql
                SELECT "city" FROM "1979" WHERE "province"='cantabria';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the city with the Socialist Party of the Extremadurian People?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the city with the Socialist Party of the Extremadurian People?`:
```sql
                SELECT "city" FROM "1979" WHERE "name_in_english"='socialist party of the extremadurian people';
```
## Task
Generate a SQL query to answer the following question:
`Which province has the partido Socialista del Pueblo Extremeño party?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province has the partido Socialista del Pueblo Extremeño party?`:
```sql
                SELECT "province" FROM "1979" WHERE "party"='partido socialista del pueblo extremeño';
```
## Task
Generate a SQL query to answer the following question:
`When was the Partido radical party in Madrid registered?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Partido radical party in Madrid registered?`:
```sql
                SELECT "date_of_registration" FROM "1979" WHERE "province"='madrid' AND "party"='partido radical';
```
## Task
Generate a SQL query to answer the following question:
`Which province is Pamplona located in?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which province is Pamplona located in?`:
```sql
                SELECT "province" FROM "1979" WHERE "city"='pamplona';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the Canarian Workers Socialist Union registered?`

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

CREATE TABLE "1979" (
  "party" text,
  "name_in_english" text,
  "city" text,
  "province" text,
  "date_of_registration" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the Canarian Workers Socialist Union registered?`:
```sql
                SELECT "date_of_registration" FROM "1979" WHERE "name_in_english"='canarian workers socialist union';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank of Hungary where there was a total of 8 medals, including 2 silver?`:
```sql
                SELECT MIN("rank") FROM "medal_count" WHERE "total"=8 AND "nation"='hungary' AND "silver">2;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of Great Britain who has less than 16 bronze?`

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

CREATE TABLE "medal_count" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of Great Britain who has less than 16 bronze?`:
```sql
                SELECT MAX("rank") FROM "medal_count" WHERE "nation"='great britain' AND "bronze"<16;
```
## Task
Generate a SQL query to answer the following question:
`What was the injured entry for the row with a killed entry of 29?`

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

CREATE TABLE "americas" (
  "perpetrator" text,
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the injured entry for the row with a killed entry of 29?`:
```sql
                SELECT "injured" FROM "americas" WHERE "killed"='29';
```
## Task
Generate a SQL query to answer the following question:
`What location has a killed of 100.9, and a year later than 1993?`

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

CREATE TABLE "americas" (
  "perpetrator" text,
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What location has a killed of 100.9, and a year later than 1993?`:
```sql
                SELECT "location" FROM "americas" WHERE "year">1993 AND "killed"='100.9';
```
## Task
Generate a SQL query to answer the following question:
`What was the injured entry for Venezuela?`

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

CREATE TABLE "americas" (
  "perpetrator" text,
  "date" text,
  "year" real,
  "location" text,
  "country" text,
  "killed" text,
  "injured" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the injured entry for Venezuela?`:
```sql
                SELECT "injured" FROM "americas" WHERE "country"='venezuela';
```
## Task
Generate a SQL query to answer the following question:
`Which season had a season finale of May 13, 2012?`

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

CREATE TABLE "season_ratings" (
  "season" real,
  "timeslot_edt" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" real,
  "18_49_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had a season finale of May 13, 2012?`:
```sql
                SELECT SUM("season") FROM "season_ratings" WHERE "season_finale"='may 13, 2012';
```
## Task
Generate a SQL query to answer the following question:
`How many viewers (in millions) were there for the season premiere on September 26, 2010?`

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

CREATE TABLE "season_ratings" (
  "season" real,
  "timeslot_edt" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "rank" text,
  "viewers_in_millions" real,
  "18_49_average" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers (in millions) were there for the season premiere on September 26, 2010?`:
```sql
                SELECT "viewers_in_millions" FROM "season_ratings" WHERE "season_premiere"='september 26, 2010';
```
## Task
Generate a SQL query to answer the following question:
`How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?`

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

CREATE TABLE "junior_ballroom_dancing_competition" (
  "date" text,
  "round" real,
  "pair" text,
  "ages" text,
  "dance" text,
  "song" text
);
### SQL
Given the database schema, here is the SQL query that answers `How old were Mitchell & Jessica when they danced the Cha-Cha-Cha?`:
```sql
                SELECT "ages" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "pair"='mitchell & jessica';
```
## Task
Generate a SQL query to answer the following question:
`Who danced the Cha-Cha-Cha on November 18, 2008?`

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

CREATE TABLE "junior_ballroom_dancing_competition" (
  "date" text,
  "round" real,
  "pair" text,
  "ages" text,
  "dance" text,
  "song" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who danced the Cha-Cha-Cha on November 18, 2008?`:
```sql
                SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "dance"='cha-cha-cha' AND "date"='november 18, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who danced the Samba on October 14, 2008?`

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

CREATE TABLE "junior_ballroom_dancing_competition" (
  "date" text,
  "round" real,
  "pair" text,
  "ages" text,
  "dance" text,
  "song" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who danced the Samba on October 14, 2008?`:
```sql
                SELECT "pair" FROM "junior_ballroom_dancing_competition" WHERE "date"='october 14, 2008' AND "dance"='samba';
```
## Task
Generate a SQL query to answer the following question:
`What was the pic for Canada for player Yvon Bouillon earlier than 1974?`

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

CREATE TABLE "wha" (
  "year" real,
  "round" real,
  "pick" real,
  "player" text,
  "nationality" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the pic for Canada for player Yvon Bouillon earlier than 1974?`:
```sql
                SELECT AVG("pick") FROM "wha" WHERE "nationality"='canada' AND "year"<1974 AND "player"='yvon bouillon';
```
## Task
Generate a SQL query to answer the following question:
`What was the competition when the score was 3-0?`

### 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 competition when the score was 3-0?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "score"='3-0';
```
## Task
Generate a SQL query to answer the following question:
`Akin Ayodele drafted before round 7 plays what position?`

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

CREATE TABLE "2002_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 `Akin Ayodele drafted before round 7 plays what position?`:
```sql
                SELECT "position" FROM "2002_nfl_draft" WHERE "round"<7 AND "name"='akin ayodele';
```
## Task
Generate a SQL query to answer the following question:
`What is the total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?`

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

CREATE TABLE "2002_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 total overall for the pick that went before round 4, who went to Tennessee for college, and was picked at a number bigger than 9?`:
```sql
                SELECT SUM("overall") FROM "2002_nfl_draft" WHERE "round"<4 AND "college"='tennessee' AND "pick_num">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the pick number average for the player who was drafted before round 7, and went to college at Tennessee?`

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

CREATE TABLE "2002_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 pick number average for the player who was drafted before round 7, and went to college at Tennessee?`:
```sql
                SELECT AVG("pick_num") FROM "2002_nfl_draft" WHERE "round"<7 AND "college"='tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?`

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

CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What visiting team played at the home of the Chicago Black Hawks with a record of 1-1?`:
```sql
                SELECT "visitor" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "home"='chicago black hawks' AND "record"='1-1';
```
## Task
Generate a SQL query to answer the following question:
`What home team has a record of 4-3?`

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

CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has a record of 4-3?`:
```sql
                SELECT "home" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What visiting team has a record of 4-3?`

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

CREATE TABLE "chicago_black_hawks_4_new_york_rangers_3" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What visiting team has a record of 4-3?`:
```sql
                SELECT "visitor" FROM "chicago_black_hawks_4_new_york_rangers_3" WHERE "record"='4-3';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest league up with less than 3 championships, a total less than 2, and a FA cup larger than 0?`:
```sql
                SELECT MAX("league_cup") FROM "yellow_cards" WHERE "championship"<3 AND "total"<2 AND "fa_cup">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average total for less than 1 championship?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average total for less than 1 championship?`:
```sql
                SELECT AVG("total") FROM "yellow_cards" WHERE "championship"<1;
```
## Task
Generate a SQL query to answer the following question:
`What i the total number of championships less than 2, and a league cup larger than 1?`

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

CREATE TABLE "yellow_cards" (
  "name" text,
  "championship" real,
  "league_cup" real,
  "fa_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What i the total number of championships less than 2, and a league cup larger than 1?`:
```sql
                SELECT COUNT("total") FROM "yellow_cards" WHERE "championship"<2 AND "league_cup">1;
```
## Task
Generate a SQL query to answer the following question:
`What home team has a score of 2–1, when the away team was Telford United?`

### 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 a score of 2–1, when the away team was Telford United?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "score"='2–1' AND "away_team"='telford united';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the way team was Wrexham?`

### 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 was the score when the way team was Wrexham?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "away_team"='wrexham';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team when the Tie no is 1?`

### 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 is the home team when the Tie no is 1?`:
```sql
                SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='1';
```
## Task
Generate a SQL query to answer the following question:
`What was Eduardo Romero's score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Eduardo Romero's score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "player"='eduardo romero';
```
## Task
Generate a SQL query to answer the following question:
`Where was the score 67-71-70=208?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the score 67-71-70=208?`:
```sql
                SELECT "place" FROM "third_round" WHERE "score"='67-71-70=208';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Fred Couples played in the United States and placed t9?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Fred Couples played in the United States and placed t9?`:
```sql
                SELECT "score" FROM "third_round" WHERE "country"='united states' AND "place"='t9' AND "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What country does Gary Koch play for?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country does Gary Koch play for?`:
```sql
                SELECT "country" FROM "third_round" WHERE "player"='gary koch';
```
## Task
Generate a SQL query to answer the following question:
`Who plays for Zimbabwe?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who plays for Zimbabwe?`:
```sql
                SELECT "player" FROM "third_round" WHERE "country"='zimbabwe';
```
## Task
Generate a SQL query to answer the following question:
`What was the To par when the place was 4?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the To par when the place was 4?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "place"='4';
```
## Task
Generate a SQL query to answer the following question:
`What is the current club with a position of sg/sf and a height less than 1.96?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the current club with a position of sg/sf and a height less than 1.96?`:
```sql
                SELECT "current_club" FROM "fiba_world_olympic_qualifying_tournament" WHERE "position"='sg/sf' AND "height"<1.96;
```
## Task
Generate a SQL query to answer the following question:
`What year was Rowan Barrett born?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Rowan Barrett born?`:
```sql
                SELECT "year_born_age" FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='rowan barrett';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest height for Rans Brempong?`

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

CREATE TABLE "fiba_world_olympic_qualifying_tournament" (
  "player" text,
  "height" real,
  "position" text,
  "year_born_age" text,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest height for Rans Brempong?`:
```sql
                SELECT MIN("height") FROM "fiba_world_olympic_qualifying_tournament" WHERE "player"='rans brempong';
```
## Task
Generate a SQL query to answer the following question:
`When was the result 0–3?`

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

CREATE TABLE "fa_premier_league" (
  "date" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the result 0–3?`:
```sql
                SELECT "date" FROM "fa_premier_league" WHERE "result"='0–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match on 9 September 2009?`

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

CREATE TABLE "international_goals" (
  "goal" real,
  "date" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match on 9 September 2009?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='9 september 2009';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the player that was loaned out on 13 August 2008 ?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the player that was loaned out on 13 August 2008 ?`:
```sql
                SELECT "name" FROM "loan_out" WHERE "date_from"='13 august 2008';
```
## Task
Generate a SQL query to answer the following question:
`When was febian brandy loaned out until, when was loaned out on 2 february 2009.?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was febian brandy loaned out until, when was loaned out on 2 february 2009.?`:
```sql
                SELECT "date_to" FROM "loan_out" WHERE "name"='febian brandy' AND "date_from"='2 february 2009';
```
## Task
Generate a SQL query to answer the following question:
`When was james chester loaned out until ?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was james chester loaned out until ?`:
```sql
                SELECT "date_to" FROM "loan_out" WHERE "name"='james chester';
```
## Task
Generate a SQL query to answer the following question:
`Where did the player loaned out on 27 november 2008 move to ?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the player loaned out on 27 november 2008 move to ?`:
```sql
                SELECT "moving_to" FROM "loan_out" WHERE "date_from"='27 november 2008';
```
## Task
Generate a SQL query to answer the following question:
`When was ron-robert zieler loaned out until ?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was ron-robert zieler loaned out until ?`:
```sql
                SELECT "date_to" FROM "loan_out" WHERE "name"='ron-robert zieler';
```
## Task
Generate a SQL query to answer the following question:
`Where did the player in Pos mf, move to until 30 june 2009 ?`

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

CREATE TABLE "loan_out" (
  "date_from" text,
  "date_to" text,
  "pos" text,
  "name" text,
  "moving_to" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the player in Pos mf, move to until 30 june 2009 ?`:
```sql
                SELECT "moving_to" FROM "loan_out" WHERE "date_to"='30 june 2009' AND "pos"='mf';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the manager who was replaced by michael skibbe?`

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

CREATE TABLE "managerial_changes" (
  "name" text,
  "club" text,
  "date_of_departure" text,
  "replacement" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the manager who was replaced by michael skibbe?`:
```sql
                SELECT "name" FROM "managerial_changes" WHERE "replacement"='michael skibbe';
```
## Task
Generate a SQL query to answer the following question:
`What is the club the used aykut kocaman as the replacement?`

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

CREATE TABLE "managerial_changes" (
  "name" text,
  "club" text,
  "date_of_departure" text,
  "replacement" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club the used aykut kocaman as the replacement?`:
```sql
                SELECT "club" FROM "managerial_changes" WHERE "replacement"='aykut kocaman';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment of nejat biyedić?`

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

CREATE TABLE "managerial_changes" (
  "name" text,
  "club" text,
  "date_of_departure" text,
  "replacement" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment of nejat biyedić?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "name"='nejat biyedić';
```
## Task
Generate a SQL query to answer the following question:
`When did they play at the wachovia center?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did they play at the wachovia center?`:
```sql
                SELECT "date" FROM "game_log" WHERE "location_attendance"='wachovia center';
```
## Task
Generate a SQL query to answer the following question:
`What game number was played at amway arena?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location_attendance" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game number was played at amway arena?`:
```sql
                SELECT "game" FROM "game_log" WHERE "location_attendance"='amway arena';
```
## Task
Generate a SQL query to answer the following question:
`How many medals were won total for the country that won 1 silver and was ranked 2 or lower?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many medals were won total for the country that won 1 silver and was ranked 2 or lower?`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"=1 AND "rank"<2;
```
## Task
Generate a SQL query to answer the following question:
`How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?`:
```sql
                SELECT COUNT("silver") FROM "medal_table" WHERE "gold">0 AND "rank">1 AND "total"<4;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes were won by the country with a total higher than 5?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes were won by the country with a total higher than 5?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "total">5;
```
## Task
Generate a SQL query to answer the following question:
`How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many bronzes were won for the country that had a larger than 3 rank and a silver win count above 0?`:
```sql
                SELECT SUM("bronze") FROM "medal_table" WHERE "rank">3 AND "silver">0;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?`

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

CREATE TABLE "most_goals" (
  "name" text,
  "years" text,
  "mls_cup" real,
  "u_s_open_cup" real,
  "concacaf" real,
  "other" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value for Other that has CONCACAF value of 0 a U.S. Open Cup larger than 0?`:
```sql
                SELECT MAX("other") FROM "most_goals" WHERE "u_s_open_cup">0 AND "concacaf"=0;
```
## Task
Generate a SQL query to answer the following question:
`Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?`

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

CREATE TABLE "municipalities" (
  "name" text,
  "area_km" real,
  "pop" real,
  "pop_area_1_km" real,
  "no_p" real,
  "no_c_no_t" text,
  "subregion" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Subregion has a No P. of 4, and a Pop/Area (1/km²) of 534?`:
```sql
                SELECT "subregion" FROM "municipalities" WHERE "no_p"=4 AND "pop_area_1_km"=534;
```
## Task
Generate a SQL query to answer the following question:
`Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?`

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

CREATE TABLE "municipalities" (
  "name" text,
  "area_km" real,
  "pop" real,
  "pop_area_1_km" real,
  "no_p" real,
  "no_c_no_t" text,
  "subregion" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pop/Area (1/km²) has a No P. larger than 1, and a Name of albergaria-a-velha?`:
```sql
                SELECT AVG("pop_area_1_km") FROM "municipalities" WHERE "no_p">1 AND "name"='albergaria-a-velha';
```
## Task
Generate a SQL query to answer the following question:
`Which Area (km²) is the lowest one that has a Population of 17,089?`

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

CREATE TABLE "municipalities" (
  "name" text,
  "area_km" real,
  "pop" real,
  "pop_area_1_km" real,
  "no_p" real,
  "no_c_no_t" text,
  "subregion" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Area (km²) is the lowest one that has a Population of 17,089?`:
```sql
                SELECT MIN("area_km") FROM "municipalities" WHERE "pop"='17,089';
```