cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Marc's Surname?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "uninum" real,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Marc's Surname?`:
```sql
                SELECT "surname" FROM "player_roster" WHERE "first"='marc';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest uni# of the person with the first name Todd?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "uninum" real,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest uni# of the person with the first name Todd?`:
```sql
                SELECT MAX("uninum") FROM "player_roster" WHERE "first"='todd';
```
## Task
Generate a SQL query to answer the following question:
`Which position does #14 play?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "uninum" real,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position does #14 play?`:
```sql
                SELECT "position" FROM "player_roster" WHERE "uninum"=14;
```
## Task
Generate a SQL query to answer the following question:
`Which does the lhp player with the first name lachlan bat?`

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

CREATE TABLE "player_roster" (
  "surname" text,
  "first" text,
  "d_o_b" text,
  "uninum" real,
  "bats" text,
  "throws" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which does the lhp player with the first name lachlan bat?`:
```sql
                SELECT "bats" FROM "player_roster" WHERE "position"='lhp' AND "first"='lachlan';
```
## Task
Generate a SQL query to answer the following question:
`How many were in Attendance on December 11, 1954?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in Attendance on December 11, 1954?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "date"='december 11, 1954';
```
## Task
Generate a SQL query to answer the following question:
`In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what Week were there more than 23,875 in Attendance at Memorial Stadium with Detroit Lions as the Opponent?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "attendance">'23,875' AND "game_site"='memorial stadium' AND "opponent"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`What was the Result on Week 3?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Result on Week 3?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=3;
```
## Task
Generate a SQL query to answer the following question:
`On what Week was the Detroit Lions the Opponent?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `On what Week was the Detroit Lions the Opponent?`:
```sql
                SELECT "week" FROM "schedule" WHERE "opponent"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`What was the rangers' record on Game 14?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the rangers' record on Game 14?`:
```sql
                SELECT "record" FROM "schedule_and_results" WHERE "game"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "november" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest game number when the rangers had a record of 11-11-1 and the date was after November 29?`:
```sql
                SELECT MAX("game") FROM "schedule_and_results" WHERE "record"='11-11-1' AND "november">29;
```
## Task
Generate a SQL query to answer the following question:
`What's Francis Harris' position?`

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

CREATE TABLE "list" (
  "name" text,
  "nationality" text,
  "position" text,
  "years" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Francis Harris' position?`:
```sql
                SELECT "position" FROM "list" WHERE "name"='francis harris';
```
## Task
Generate a SQL query to answer the following question:
`Which place has more area (km 2) than 34.42?`

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

CREATE TABLE "main_places" (
  "place" text,
  "code" real,
  "area_km_2" real,
  "population" real,
  "most_spoken_language" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which place has more area (km 2) than 34.42?`:
```sql
                SELECT "place" FROM "main_places" WHERE "area_km_2">34.42;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 4 hoops, 2 clubs of the nation with a total of 38.25?`:
```sql
                SELECT MIN("4_hoops_2_clubs") FROM "groups_all_around" WHERE "total"=38.25;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of Greece, which is placed below 8?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of Greece, which is placed below 8?`:
```sql
                SELECT COUNT("total") FROM "groups_all_around" WHERE "nation"='greece' AND "place">8;
```
## Task
Generate a SQL query to answer the following question:
`What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the palce number of Russia, which has 6 ropes of 19.425 and a total less than 38.925?`:
```sql
                SELECT SUM("place") FROM "groups_all_around" WHERE "6_ropes"=19.425 AND "nation"='russia' AND "total"<38.925;
```
## Task
Generate a SQL query to answer the following question:
`What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the place of the nation with a total greater than 37.85 and 4 hoops, 2 clubs of 19.15?`:
```sql
                SELECT SUM("place") FROM "groups_all_around" WHERE "total">37.85 AND "4_hoops_2_clubs"=19.15;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?`:
```sql
                SELECT MAX("4_hoops_2_clubs") FROM "groups_all_around" WHERE "nation"='belarus' AND "total"<38.25;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the nation with 19.025 4 hoops, 2 clubs?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "6_ropes" real,
  "4_hoops_2_clubs" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the nation with 19.025 4 hoops, 2 clubs?`:
```sql
                SELECT "total" FROM "groups_all_around" WHERE "4_hoops_2_clubs"=19.025;
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Name of janne happonen?`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Name of janne happonen?`:
```sql
                SELECT "nationality" FROM "kuopio" WHERE "name"='janne happonen';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Rank larger than 3, and a Name of tom hilde?`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Rank larger than 3, and a Name of tom hilde?`:
```sql
                SELECT "nationality" FROM "kuopio" WHERE "rank">3 AND "name"='tom hilde';
```
## Task
Generate a SQL query to answer the following question:
`Which Name has a Nationality of nor, and Points of 136?`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Name has a Nationality of nor, and Points of 136?`:
```sql
                SELECT "name" FROM "kuopio" WHERE "nationality"='nor' AND "points"=136;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a 1st (m) smaller than 132.5, and a Nationality of aut, and a Rank larger than 2?`:
```sql
                SELECT AVG("points") FROM "kuopio" WHERE "1st_m"<132.5 AND "nationality"='aut' AND "rank">2;
```
## Task
Generate a SQL query to answer the following question:
`Which Points have a Rank of 3, and a 1st (m) smaller than 132?`

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

CREATE TABLE "kuopio" (
  "rank" real,
  "name" text,
  "nationality" text,
  "1st_m" real,
  "points" real,
  "overall_nt_points" text,
  "overall_wc_points_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have a Rank of 3, and a 1st (m) smaller than 132?`:
```sql
                SELECT SUM("points") FROM "kuopio" WHERE "rank"=3 AND "1st_m"<132;
```
## Task
Generate a SQL query to answer the following question:
`What was the average rank of Wolfgang Schwarz with greater than 13 places?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "nation" text,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average rank of Wolfgang Schwarz with greater than 13 places?`:
```sql
                SELECT AVG("rank") FROM "men" WHERE "name"='wolfgang schwarz' AND "places">13;
```
## Task
Generate a SQL query to answer the following question:
`What nation had 1399.3 points?`

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

CREATE TABLE "men" (
  "rank" real,
  "name" text,
  "nation" text,
  "points" real,
  "places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What nation had 1399.3 points?`:
```sql
                SELECT "nation" FROM "men" WHERE "points"=1399.3;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest round number for the fight that had a time of 1:09?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest round number for the fight that had a time of 1:09?`:
```sql
                SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "time"='1:09';
```
## Task
Generate a SQL query to answer the following question:
`How much Overall has a Pick # smaller than 20, and a Round smaller than 6?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "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 `How much Overall has a Pick # smaller than 20, and a Round smaller than 6?`:
```sql
                SELECT SUM("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"<20 AND "round"<6;
```
## Task
Generate a SQL query to answer the following question:
`Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "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 `Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127?`:
```sql
                SELECT AVG("round") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num">20 AND "college"='virginia' AND "overall">127;
```
## Task
Generate a SQL query to answer the following question:
`How many picks does chad owens have?`

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

CREATE TABLE "jacksonville_jaguars_draft_history" (
  "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 `How many picks does chad owens have?`:
```sql
                SELECT COUNT("pick_num") FROM "jacksonville_jaguars_draft_history" WHERE "name"='chad owens';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value in April with New York Rangers as opponent for a game less than 82?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "april" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value in April with New York Rangers as opponent for a game less than 82?`:
```sql
                SELECT MIN("april") FROM "regular_season" WHERE "opponent"='new york rangers' AND "game"<82;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value in April with a record of 35–37–11 and more than 81 points?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "april" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value in April with a record of 35–37–11 and more than 81 points?`:
```sql
                SELECT MAX("april") FROM "regular_season" WHERE "record"='35–37–11' AND "points">81;
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game played at home by the Blues where the attendance was larger than 4,719?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game played at home by the Blues where the attendance was larger than 4,719?`:
```sql
                SELECT "record" FROM "game_log" WHERE "attendance">'4,719' AND "home"='blues';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the winner when the Score was 274 (–14) in tennessee?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the winner when the Score was 274 (–14) in tennessee?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "score"='274 (–14)' AND "location"='tennessee';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score when the 1st prize was 63,000, and a Winner of keith fergus (1)?`:
```sql
                SELECT "score" FROM "tournament_results" WHERE "1st_prize"='63,000' AND "winner"='keith fergus (1)';
```
## Task
Generate a SQL query to answer the following question:
`What is the winners name at the western open?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winners name at the western open?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "tournament"='western open';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the Tournament named danny thomas memphis classic?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the Tournament named danny thomas memphis classic?`:
```sql
                SELECT "score" FROM "tournament_results" WHERE "tournament"='danny thomas memphis classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Winner in north carolina at the greater greensboro open?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Winner in north carolina at the greater greensboro open?`:
```sql
                SELECT "winner" FROM "tournament_results" WHERE "location"='north carolina' AND "tournament"='greater greensboro open';
```
## Task
Generate a SQL query to answer the following question:
`What is the Location of the byron nelson golf classic?`

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

CREATE TABLE "tournament_results" (
  "date" text,
  "tournament" text,
  "location" text,
  "winner" text,
  "score" text,
  "1st_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Location of the byron nelson golf classic?`:
```sql
                SELECT "location" FROM "tournament_results" WHERE "tournament"='byron nelson golf classic';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of player Tiffany Garofano (2)?`

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

CREATE TABLE "players_of_the_week" (
  "week" text,
  "division" text,
  "position" text,
  "player" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of player Tiffany Garofano (2)?`:
```sql
                SELECT "position" FROM "players_of_the_week" WHERE "player"='tiffany garofano (2)';
```
## Task
Generate a SQL query to answer the following question:
`What is the week with a school that is ball state?`

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

CREATE TABLE "players_of_the_week" (
  "week" text,
  "division" text,
  "position" text,
  "player" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week with a school that is ball state?`:
```sql
                SELECT "week" FROM "players_of_the_week" WHERE "school"='ball state';
```
## Task
Generate a SQL query to answer the following question:
`What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?`

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

CREATE TABLE "performance_of_indian_teams" (
  "club" text,
  "wins" real,
  "last_win" text,
  "runners_up" real,
  "last_runners_up" real
);
### SQL
Given the database schema, here is the SQL query that answers `What number last Runners-up where there when the Last win was 1999 and the Runners-up was bigger than 1?`:
```sql
                SELECT COUNT("last_runners_up") FROM "performance_of_indian_teams" WHERE "last_win"='1999' AND "runners_up">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of Last Runners-up that has the club name of dempo sc?`

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

CREATE TABLE "performance_of_indian_teams" (
  "club" text,
  "wins" real,
  "last_win" text,
  "runners_up" real,
  "last_runners_up" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of Last Runners-up that has the club name of dempo sc?`:
```sql
                SELECT SUM("last_runners_up") FROM "performance_of_indian_teams" WHERE "club"='dempo sc';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Round larger than 6, and a Player of neil pilon?`

### 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 `Which Position has a Round larger than 6, and a Player of neil pilon?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "round">6 AND "player"='neil pilon';
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Player of rudy poeschek?`

### 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 `Which Nationality has a Player of rudy poeschek?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "player"='rudy poeschek';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Player of steve nemeth?`

### 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 `Which Position has a Player of steve nemeth?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "player"='steve nemeth';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Nationality of canada, and a Player of pat janostin?`

### 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 `Which Position has a Nationality of canada, and a Player of pat janostin?`:
```sql
                SELECT "position" FROM "draft_picks" WHERE "nationality"='canada' AND "player"='pat janostin';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the match on April 23, 2007?`

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

CREATE TABLE "doubles_runner_ups_6" (
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the match on April 23, 2007?`:
```sql
                SELECT "score" FROM "doubles_runner_ups_6" WHERE "date"='april 23, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Game site of shea stadium, and a Week of 5?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Game site of shea stadium, and a Week of 5?`:
```sql
                SELECT "date" FROM "schedule" WHERE "game_site"='shea stadium' AND "week"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24–23?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance is the highest one that has a Week smaller than 9, and a Result of l 24–23?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "week"<9 AND "result"='l 24–23';
```
## Task
Generate a SQL query to answer the following question:
`Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Week has an Opponent of baltimore colts, and an Attendance smaller than 55,137?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "opponent"='baltimore colts' AND "attendance"<'55,137';
```
## Task
Generate a SQL query to answer the following question:
`Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?`:
```sql
                SELECT AVG("game") FROM "regular_season" WHERE "points"=53 AND "opponent"='@ minnesota north stars' AND "december">30;
```
## Task
Generate a SQL query to answer the following question:
`Which December has a Record of 21–6–5?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which December has a Record of 21–6–5?`:
```sql
                SELECT AVG("december") FROM "regular_season" WHERE "record"='21–6–5';
```
## Task
Generate a SQL query to answer the following question:
`Which Points have an Opponent of @ pittsburgh penguins?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Points have an Opponent of @ pittsburgh penguins?`:
```sql
                SELECT MAX("points") FROM "regular_season" WHERE "opponent"='@ pittsburgh penguins';
```
## Task
Generate a SQL query to answer the following question:
`What year was the startup for the Project Named of taq taq ph 2?`

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

CREATE TABLE "detailed_list_of_projects_for_2010" (
  "country" text,
  "project_name" text,
  "year_startup" text,
  "operator" text,
  "peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was the startup for the Project Named of taq taq ph 2?`:
```sql
                SELECT "year_startup" FROM "detailed_list_of_projects_for_2010" WHERE "project_name"='taq taq ph 2';
```
## Task
Generate a SQL query to answer the following question:
`What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?`

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

CREATE TABLE "detailed_list_of_projects_for_2010" (
  "country" text,
  "project_name" text,
  "year_startup" text,
  "operator" text,
  "peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?`:
```sql
                SELECT "operator" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='90' AND "year_startup"='2010' AND "project_name"='aosp expansion 1 (jackpine ph 1a)';
```
## Task
Generate a SQL query to answer the following question:
`What country has peak 20 and a project named jarn yabhour; ramhan?`

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

CREATE TABLE "detailed_list_of_projects_for_2010" (
  "country" text,
  "project_name" text,
  "year_startup" text,
  "operator" text,
  "peak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has peak 20 and a project named jarn yabhour; ramhan?`:
```sql
                SELECT "country" FROM "detailed_list_of_projects_for_2010" WHERE "peak"='20' AND "project_name"='jarn yabhour; ramhan';
```
## Task
Generate a SQL query to answer the following question:
`How much Attendance has an Opponent of swindon wildcats?`

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

CREATE TABLE "january" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much Attendance has an Opponent of swindon wildcats?`:
```sql
                SELECT COUNT("attendance") FROM "january" WHERE "opponent"='swindon wildcats';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance is the lowest one that has a Venue of away, and a Date of 19?`

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

CREATE TABLE "january" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance is the lowest one that has a Venue of away, and a Date of 19?`:
```sql
                SELECT MIN("attendance") FROM "january" WHERE "venue"='away' AND "date"=19;
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Result of won 5-4?`

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

CREATE TABLE "january" (
  "date" real,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Result of won 5-4?`:
```sql
                SELECT "venue" FROM "january" WHERE "result"='won 5-4';
```
## Task
Generate a SQL query to answer the following question:
`what country has dubai`

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

CREATE TABLE "structures_between_metres_ft_and_metres_" (
  "planned_pinnacle_height" text,
  "expected_year_of_completion" real,
  "structural_type" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `what country has dubai`:
```sql
                SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';
```
## Task
Generate a SQL query to answer the following question:
`what country is dubai in`

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

CREATE TABLE "structures_between_metres_ft_and_metres_" (
  "planned_pinnacle_height" text,
  "expected_year_of_completion" real,
  "structural_type" text,
  "country" text,
  "town" text
);
### SQL
Given the database schema, here is the SQL query that answers `what country is dubai in`:
```sql
                SELECT "country" FROM "structures_between_metres_ft_and_metres_" WHERE "town"='dubai';
```
## Task
Generate a SQL query to answer the following question:
`What home team has june 22 as the date?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What home team has june 22 as the date?`:
```sql
                SELECT "home_team" FROM "series_summary" WHERE "date"='june 22';
```
## Task
Generate a SQL query to answer the following question:
`What road team has 86-84 as the result?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What road team has 86-84 as the result?`:
```sql
                SELECT "road_team" FROM "series_summary" WHERE "result"='86-84';
```
## Task
Generate a SQL query to answer the following question:
`What road team has 91-82 as the result?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What road team has 91-82 as the result?`:
```sql
                SELECT "road_team" FROM "series_summary" WHERE "result"='91-82';
```
## Task
Generate a SQL query to answer the following question:
`Which game has houston as the road team, and june 15 as the date?`

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

CREATE TABLE "series_summary" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which game has houston as the road team, and june 15 as the date?`:
```sql
                SELECT "game" FROM "series_summary" WHERE "road_team"='houston' AND "date"='june 15';
```
## Task
Generate a SQL query to answer the following question:
`What is listed under occupation for someone from Santa Monica, California?`

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

CREATE TABLE "contestants" (
  "player" text,
  "hometown" text,
  "occupation" text,
  "education" text,
  "game_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is listed under occupation for someone from Santa Monica, California?`:
```sql
                SELECT "occupation" FROM "contestants" WHERE "hometown"='santa monica, california';
```
## Task
Generate a SQL query to answer the following question:
`For natives of St. Louis, Missouri, what was listed under education?`

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

CREATE TABLE "contestants" (
  "player" text,
  "hometown" text,
  "occupation" text,
  "education" text,
  "game_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `For natives of St. Louis, Missouri, what was listed under education?`:
```sql
                SELECT "education" FROM "contestants" WHERE "hometown"='st. louis, missouri';
```
## Task
Generate a SQL query to answer the following question:
`When the occupation was utility worker on-air talent, what was the game status?`

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

CREATE TABLE "contestants" (
  "player" text,
  "hometown" text,
  "occupation" text,
  "education" text,
  "game_status" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the occupation was utility worker on-air talent, what was the game status?`:
```sql
                SELECT "game_status" FROM "contestants" WHERE "occupation"='utility worker on-air talent';
```
## Task
Generate a SQL query to answer the following question:
`Which 2005 has a 2004 of 3–2?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2005 has a 2004 of 3–2?`:
```sql
                SELECT "2005" FROM "grand_slam_tournament_performance_timeli" WHERE "2004"='3–2';
```
## Task
Generate a SQL query to answer the following question:
`Which 2011 has a 2009 of 15–2?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2011 has a 2009 of 15–2?`:
```sql
                SELECT "2011" FROM "grand_slam_tournament_performance_timeli" WHERE "2009"='15–2';
```
## Task
Generate a SQL query to answer the following question:
`Which 2010 has a 2006 of w?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2010 has a 2006 of w?`:
```sql
                SELECT "2010" FROM "grand_slam_tournament_performance_timeli" WHERE "2006"='w';
```
## Task
Generate a SQL query to answer the following question:
`Which 2008 has a 2005 of 13–3?`

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

CREATE TABLE "grand_slam_tournament_performance_timeli" (
  "tournament" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text,
  "2013" text,
  "win_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2008 has a 2005 of 13–3?`:
```sql
                SELECT "2008" FROM "grand_slam_tournament_performance_timeli" WHERE "2005"='13–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the Ghantoot Racing and Polo Club?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" text,
  "date" text,
  "time" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the Ghantoot Racing and Polo Club?`:
```sql
                SELECT "time" FROM "round_1" WHERE "ground"='ghantoot racing and polo club';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score of the game with Adelaide as the away team?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" text,
  "date" text,
  "time" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team score of the game with Adelaide as the away team?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "away_team"='adelaide';
```
## Task
Generate a SQL query to answer the following question:
`What is the time of the Essendon home team game?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" text,
  "date" text,
  "time" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time of the Essendon home team game?`:
```sql
                SELECT "time" FROM "round_1" WHERE "home_team"='essendon';
```
## Task
Generate a SQL query to answer the following question:
`What is the home team score of the Ghantoot Racing and Polo Club Ground?`

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

CREATE TABLE "round_1" (
  "home_team" text,
  "home_team_score" text,
  "away_team" text,
  "away_team_score" text,
  "ground" text,
  "crowd" text,
  "date" text,
  "time" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home team score of the Ghantoot Racing and Polo Club Ground?`:
```sql
                SELECT "home_team_score" FROM "round_1" WHERE "ground"='ghantoot racing and polo club';
```
## Task
Generate a SQL query to answer the following question:
`What shows for region when the date is february 2006?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows for region when the date is february 2006?`:
```sql
                SELECT "region" FROM "release_history" WHERE "date"='february 2006';
```
## Task
Generate a SQL query to answer the following question:
`What shows as the format for catalog 11 135?`

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

CREATE TABLE "release_history" (
  "date" text,
  "label" text,
  "region" text,
  "format" text,
  "catalog" text
);
### SQL
Given the database schema, here is the SQL query that answers `What shows as the format for catalog 11 135?`:
```sql
                SELECT "format" FROM "release_history" WHERE "catalog"='11 135';
```