cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which Player has a Team from of south shore kings?`

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

CREATE TABLE "round_one" (
  "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 Player has a Team from of south shore kings?`:
```sql
                SELECT "player" FROM "round_one" WHERE "team_from"='south shore kings';
```
## Task
Generate a SQL query to answer the following question:
`Which NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?`

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

CREATE TABLE "round_one" (
  "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 NHL team has a League from of western hockey league and a Pick # smaller than 23 and a Team from of prince george cougars?`:
```sql
                SELECT "nhl_team" FROM "round_one" WHERE "league_from"='western hockey league' AND "pick_num"<23 AND "team_from"='prince george cougars';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Pick # smaller than 26 and a Player of jack campbell?`

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

CREATE TABLE "round_one" (
  "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 Position has a Pick # smaller than 26 and a Player of jack campbell?`:
```sql
                SELECT "position" FROM "round_one" WHERE "pick_num"<26 AND "player"='jack campbell';
```
## Task
Generate a SQL query to answer the following question:
`How much money did Willie Klein take home from the game in which he had a to par score larger than 13?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much money did Willie Klein take home from the game in which he had a to par score larger than 13?`:
```sql
                SELECT SUM("money") FROM "final_leaderboard" WHERE "player"='willie klein' AND "to_par">13;
```
## Task
Generate a SQL query to answer the following question:
`What week had an attendance more than 63,268 and Kansas City Chiefs 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week had an attendance more than 63,268 and Kansas City Chiefs as the opponent?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "attendance">'63,268' AND "opponent"='kansas city chiefs';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on September 11, 1988?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on September 11, 1988?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='september 11, 1988';
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance on week 1?`

### 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,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance on week 1?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest win when there were 34 points and more than 13 draws?`

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

CREATE TABLE "a_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest win when there were 34 points and more than 13 draws?`:
```sql
                SELECT MIN("wins") FROM "a_lyga" WHERE "points"=34 AND "draws">13;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest win when there were more than 64 goals scored and a position smaller than 2?`

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

CREATE TABLE "a_lyga" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest win when there were more than 64 goals scored and a position smaller than 2?`:
```sql
                SELECT MAX("wins") FROM "a_lyga" WHERE "goals_scored">64 AND "position"<2;
```
## Task
Generate a SQL query to answer the following question:
`Who is the Outgoing Manager replaced by Sandy Clark?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Outgoing Manager replaced by Sandy Clark?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='sandy clark';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of vacancy for Tommy McLean?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of vacancy for Tommy McLean?`:
```sql
                SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='tommy mclean';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Goals scored that has more than 45 Points?`

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

CREATE TABLE "2_lyga_zone_west" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Goals scored that has more than 45 Points?`:
```sql
                SELECT COUNT("goals_scored") FROM "2_lyga_zone_west" WHERE "points">45;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?`

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

CREATE TABLE "2_lyga_zone_west" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of Goals conceded when there were more than 4 losses, less than 5 draws, and more than 9 wins?`:
```sql
                SELECT COUNT("goals_conceded") FROM "2_lyga_zone_west" WHERE "draws"<5 AND "loses">4 AND "wins">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Goals scored when there was less than 20 Games played?`

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

CREATE TABLE "2_lyga_zone_west" (
  "position" real,
  "club" text,
  "games_played" real,
  "wins" real,
  "draws" real,
  "loses" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Goals scored when there was less than 20 Games played?`:
```sql
                SELECT SUM("goals_scored") FROM "2_lyga_zone_west" WHERE "games_played"<20;
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a To par of –2, and a Player of jim thorpe?`

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

CREATE TABLE "final_leaderboard" (
  "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 `Which Country has a To par of –2, and a Player of jim thorpe?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "to_par"='–2' AND "player"='jim thorpe';
```
## Task
Generate a SQL query to answer the following question:
`Name the  Place which has To par of –5, in united states?`

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

CREATE TABLE "final_leaderboard" (
  "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 `Name the  Place which has To par of –5, in united states?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='–5';
```
## Task
Generate a SQL query to answer the following question:
`Name the To par of payne stewart?`

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

CREATE TABLE "final_leaderboard" (
  "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 `Name the To par of payne stewart?`:
```sql
                SELECT "to_par" FROM "final_leaderboard" WHERE "player"='payne stewart';
```
## Task
Generate a SQL query to answer the following question:
`WHo has a Country of united states and a To par of –3?`

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

CREATE TABLE "final_leaderboard" (
  "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 `WHo has a Country of united states and a To par of –3?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='–3';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?`

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

CREATE TABLE "see_also" (
  "harmonic" real,
  "ratio" text,
  "cents" real,
  "12_et_cents" text,
  "53_et_commas" real,
  "53_et_cents" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of cents that has 53ET cents less than 113.21, and a harmonic more than 1?`:
```sql
                SELECT SUM("cents") FROM "see_also" WHERE "53_et_cents"<113.21 AND "harmonic">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?`

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

CREATE TABLE "see_also" (
  "harmonic" real,
  "ratio" text,
  "cents" real,
  "12_et_cents" text,
  "53_et_commas" real,
  "53_et_cents" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of cents that has 12ET cents of 100, and less than 17 harmonic?`:
```sql
                SELECT SUM("cents") FROM "see_also" WHERE "12_et_cents"='100' AND "harmonic"<17;
```
## Task
Generate a SQL query to answer the following question:
`What power plant was commissioned in 2008?`

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

CREATE TABLE "hydro_power_stations" (
  "s_no" real,
  "power_plant" text,
  "state" text,
  "commissioned_capacity_mw" real,
  "year_of_commission" real
);
### SQL
Given the database schema, here is the SQL query that answers `What power plant was commissioned in 2008?`:
```sql
                SELECT "power_plant" FROM "hydro_power_stations" WHERE "year_of_commission"=2008;
```
## Task
Generate a SQL query to answer the following question:
`What is the Nominated work of popularity award (actor in a motion picture)?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "event" text,
  "category" text,
  "nominated_work" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Nominated work of popularity award (actor in a motion picture)?`:
```sql
                SELECT "nominated_work" FROM "awards_and_nominations" WHERE "category"='popularity award (actor in a motion picture)';
```
## Task
Generate a SQL query to answer the following question:
`What is the game site of the game with the san diego chargers 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,
  "game_site" text,
  "record" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game site of the game with the san diego chargers as the opponent?`:
```sql
                SELECT "game_site" FROM "schedule" WHERE "opponent"='san diego chargers';
```
## Task
Generate a SQL query to answer the following question:
`What is the first round when team 1 was toulouse fc (d1)?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "score" text,
  "team_2" text,
  "1st_round" text,
  "2nd_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the first round when team 1 was toulouse fc (d1)?`:
```sql
                SELECT "1st_round" FROM "round_of_16" WHERE "team_1"='toulouse fc (d1)';
```
## Task
Generate a SQL query to answer the following question:
`What is Shahar Pe'er's record?`

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

CREATE TABLE "record_against_other_players" (
  "player" text,
  "ranking" real,
  "record" text,
  "hardcourt" text,
  "clay" text,
  "grass" text,
  "carpet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Shahar Pe'er's record?`:
```sql
                SELECT "record" FROM "record_against_other_players" WHERE "player"='shahar pe''er';
```
## Task
Generate a SQL query to answer the following question:
`Which country placed t3 and had the player Fred Couples?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country placed t3 and had the player Fred Couples?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t3' AND "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What is the to par for Fred Couples when the score is 68-66=134?`

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

CREATE TABLE "second_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 is the to par for Fred Couples when the score is 68-66=134?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "score"='68-66=134' AND "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`Which country scored 66-68=134?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country scored 66-68=134?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='66-68=134';
```
## Task
Generate a SQL query to answer the following question:
`What did Fred Couples place?`

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

CREATE TABLE "second_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 did Fred Couples place?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='fred couples';
```
## Task
Generate a SQL query to answer the following question:
`What player scored 68-66=134?`

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

CREATE TABLE "second_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 player scored 68-66=134?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='68-66=134';
```
## Task
Generate a SQL query to answer the following question:
`What Player has a To par of +5 with a Score of 70-70-71-74=285?`

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

CREATE TABLE "final_leaderboard" (
  "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 has a To par of +5 with a Score of 70-70-71-74=285?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "to_par"='+5' AND "score"='70-70-71-74=285';
```
## Task
Generate a SQL query to answer the following question:
`What is the Place of the Player with a Score of 73-67-74-71=285?`

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

CREATE TABLE "final_leaderboard" (
  "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 Place of the Player with a Score of 73-67-74-71=285?`:
```sql
                SELECT "place" FROM "final_leaderboard" WHERE "score"='73-67-74-71=285';
```
## Task
Generate a SQL query to answer the following question:
`What T9 Place Player had a Score of 73-67-74-71=285?`

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

CREATE TABLE "final_leaderboard" (
  "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 T9 Place Player had a Score of 73-67-74-71=285?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "place"='t9' AND "score"='73-67-74-71=285';
```
## Task
Generate a SQL query to answer the following question:
`Who is the player with a t8 place?`

### 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 `Who is the player with a t8 place?`:
```sql
                SELECT "player" FROM "final_round" WHERE "place"='t8';
```
## Task
Generate a SQL query to answer the following question:
`What is the average amount of money of players in t8 place with a 68-71-69-72=280 score?`

### 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 average amount of money of players in t8 place with a 68-71-69-72=280 score?`:
```sql
                SELECT AVG("money") FROM "final_round" WHERE "place"='t8' AND "score"='68-71-69-72=280';
```
## Task
Generate a SQL query to answer the following question:
`What is the country of player vijay singh?`

### 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 country of player vijay singh?`:
```sql
                SELECT "country" FROM "final_round" WHERE "player"='vijay singh';
```
## Task
Generate a SQL query to answer the following question:
`What is the Result F-A that was the quarter-final first leg round with a H/A of h?`

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

CREATE TABLE "knockout_phase" (
  "date" text,
  "round" text,
  "opponents" text,
  "h_a" text,
  "result_f_a" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Result F-A that was the quarter-final first leg round with a H/A of h?`:
```sql
                SELECT "result_f_a" FROM "knockout_phase" WHERE "h_a"='h' AND "round"='quarter-final first leg';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the decision was Raycroft, with attendance larger than 18,277, on February 11?`:
```sql
                SELECT "score" FROM "game_log" WHERE "decision"='raycroft' AND "attendance">'18,277' AND "date"='february 11';
```
## Task
Generate a SQL query to answer the following question:
`What was the opponent when the score was 3 - 2,  and the decision was Raycroft, with a record of 25-29-1?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the opponent when the score was 3 - 2,  and the decision was Raycroft, with a record of 25-29-1?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='3 - 2' AND "decision"='raycroft' AND "record"='25-29-1';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a League from of western hockey league, and a Team from of everett silvertips?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a League from of western hockey league, and a Team from of everett silvertips?`:
```sql
                SELECT "position" FROM "round_two" WHERE "league_from"='western hockey league' AND "team_from"='everett silvertips';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Position of rw, and a League from of western hockey league?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Position of rw, and a League from of western hockey league?`:
```sql
                SELECT "player" FROM "round_two" WHERE "position"='rw' AND "league_from"='western hockey league';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # has a Nationality of canada, and a Team from of sudbury wolves?`:
```sql
                SELECT MIN("pick_num") FROM "round_two" WHERE "nationality"='canada' AND "team_from"='sudbury wolves';
```
## Task
Generate a SQL query to answer the following question:
`Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Pick # has a League from of ontario hockey league, a Nationality of united states, and a Team from of brampton battalion?`:
```sql
                SELECT COUNT("pick_num") FROM "round_two" WHERE "league_from"='ontario hockey league' AND "nationality"='united states' AND "team_from"='brampton battalion';
```
## Task
Generate a SQL query to answer the following question:
`Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which League from has a Position of lw, a Pick # larger than 34, and a Player of bradley ross?`:
```sql
                SELECT "league_from" FROM "round_two" WHERE "position"='lw' AND "pick_num">34 AND "player"='bradley ross';
```
## Task
Generate a SQL query to answer the following question:
`Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?`

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

CREATE TABLE "round_two" (
  "pick_num" real,
  "player" text,
  "nationality" text,
  "position" text,
  "team_from" text,
  "league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?`:
```sql
                SELECT "position" FROM "round_two" WHERE "team_from"='ottawa 67''s' AND "pick_num"<47;
```
## Task
Generate a SQL query to answer the following question:
`Who is the republican Incumbent for Pennsylvania 9?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the republican Incumbent for Pennsylvania 9?`:
```sql
                SELECT "incumbent" FROM "pennsylvania" WHERE "party"='republican' AND "district"='pennsylvania 9';
```
## Task
Generate a SQL query to answer the following question:
`What are the results for Bill Shuster?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the results for Bill Shuster?`:
```sql
                SELECT "results" FROM "pennsylvania" WHERE "incumbent"='bill shuster';
```
## Task
Generate a SQL query to answer the following question:
`What is the greatest first elected for Pennsylvania 10?`

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

CREATE TABLE "pennsylvania" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the greatest first elected for Pennsylvania 10?`:
```sql
                SELECT MAX("first_elected") FROM "pennsylvania" WHERE "district"='pennsylvania 10';
```
## Task
Generate a SQL query to answer the following question:
`What country had a Finish of t8?`

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

CREATE TABLE "made_the_cut" (
  "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 country had a Finish of t8?`:
```sql
                SELECT "country" FROM "made_the_cut" WHERE "finish"='t8';
```
## Task
Generate a SQL query to answer the following question:
`What Player had a To Par of +2?`

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

CREATE TABLE "made_the_cut" (
  "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 Player had a To Par of +2?`:
```sql
                SELECT "player" FROM "made_the_cut" WHERE "to_par"='+2';
```
## Task
Generate a SQL query to answer the following question:
`What is the To Par of the player with a t8 Finish?`

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

CREATE TABLE "made_the_cut" (
  "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 is the To Par of the player with a t8 Finish?`:
```sql
                SELECT "to_par" FROM "made_the_cut" WHERE "finish"='t8';
```
## Task
Generate a SQL query to answer the following question:
`How tall is the building built in 1985 with 22 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 `How tall is the building built in 1985 with 22 floors?`:
```sql
                SELECT "height_ft_m" FROM "tallest_buildings" WHERE "floors"=22 AND "year"=1985;
```
## Task
Generate a SQL query to answer the following question:
`How many floors are in the building built after 2007, and ranked #10=?`

### 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 `How many floors are in the building built after 2007, and ranked #10=?`:
```sql
                SELECT AVG("floors") FROM "tallest_buildings" WHERE "rank"='10=' AND "year">2007;
```
## Task
Generate a SQL query to answer the following question:
`How tall is the building ranked #13?`

### 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 `How tall is the building ranked #13?`:
```sql
                SELECT "height_ft_m" FROM "tallest_buildings" WHERE "rank"='13';
```
## Task
Generate a SQL query to answer the following question:
`Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?`

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

CREATE TABLE "title_holders_from_2000_until_2010" (
  "year" real,
  "miss_universe_philippines" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "binibining_pilipinas_tourism" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Miss Universe Philippines when the first runner-up was Danielle Castaño and Janina San Miguel won Binibining Pilipinas-World?`:
```sql
                SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "first_runner_up"='danielle castaño' AND "binibining_pilipinas_world"='janina san miguel';
```
## Task
Generate a SQL query to answer the following question:
`Who won Miss Universe Philippines when Regina Hahn was second runner-up?`

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

CREATE TABLE "title_holders_from_2000_until_2010" (
  "year" real,
  "miss_universe_philippines" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "binibining_pilipinas_tourism" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won Miss Universe Philippines when Regina Hahn was second runner-up?`:
```sql
                SELECT "miss_universe_philippines" FROM "title_holders_from_2000_until_2010" WHERE "second_runner_up"='regina hahn';
```
## Task
Generate a SQL query to answer the following question:
`When Bianca Manalo won Miss Universe Philippines who was the second runner-up?`

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

CREATE TABLE "title_holders_from_2000_until_2010" (
  "year" real,
  "miss_universe_philippines" text,
  "binibining_pilipinas_world" text,
  "binibining_pilipinas_international" text,
  "binibining_pilipinas_tourism" text,
  "first_runner_up" text,
  "second_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Bianca Manalo won Miss Universe Philippines who was the second runner-up?`:
```sql
                SELECT "second_runner_up" FROM "title_holders_from_2000_until_2010" WHERE "miss_universe_philippines"='bianca manalo';
```
## Task
Generate a SQL query to answer the following question:
`What order has the title Deacon of SS. Cosma E Damiano?`

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

CREATE TABLE "cardinal_electors" (
  "elector" text,
  "nationality" text,
  "order" text,
  "title" text,
  "elevated" text,
  "elevator" text
);
### SQL
Given the database schema, here is the SQL query that answers `What order has the title Deacon of SS. Cosma E Damiano?`:
```sql
                SELECT "order" FROM "cardinal_electors" WHERE "title"='deacon of ss. cosma e damiano';
```
## Task
Generate a SQL query to answer the following question:
`What is # Eng., when Outside Diameter, Main Passenger Deck is "inches (m)", and when Maximum Metric MTOW is "231.3 tons"?`

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

CREATE TABLE "widebody_specifications" (
  "model" text,
  "eis_final_prod_year" text,
  "num_eng" real,
  "maximum_metric_mtow" text,
  "outside_diameter_main_passenger_deck" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is # Eng., when Outside Diameter, Main Passenger Deck is "inches (m)", and when Maximum Metric MTOW is "231.3 tons"?`:
```sql
                SELECT "num_eng" FROM "widebody_specifications" WHERE "outside_diameter_main_passenger_deck"='inches (m)' AND "maximum_metric_mtow"='231.3 tons';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when 2008 is "A", when 2011 is "A", and when Tournament is "Paris Masters"?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2008"='a' AND "2011"='a' AND "tournament"='paris masters';
```
## Task
Generate a SQL query to answer the following question:
`What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2008, when 2009 is "A", and when Tournament is "Madrid Masters"?`:
```sql
                SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='a' AND "tournament"='madrid masters';
```
## Task
Generate a SQL query to answer the following question:
`What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tournament, when 2012 is "A", when 2011 is "A", and when 2008 is "A"?`:
```sql
                SELECT "tournament" FROM "singles_performance_timeline" WHERE "2012"='a' AND "2011"='a' AND "2008"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is 2009, when 2011 is "Q2"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2009, when 2011 is "Q2"?`:
```sql
                SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='q2';
```
## Task
Generate a SQL query to answer the following question:
`What is 2011, when Tournament is "Year-End Ranking"?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2011, when Tournament is "Year-End Ranking"?`:
```sql
                SELECT "2011" FROM "singles_performance_timeline" WHERE "tournament"='year-end ranking';
```
## Task
Generate a SQL query to answer the following question:
`What was Mark O'Meara's total?`

### 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" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Mark O'Meara's total?`:
```sql
                SELECT "total" FROM "missed_the_cut" WHERE "player"='mark o''meara';
```
## Task
Generate a SQL query to answer the following question:
`What year did Tom Watson win?`

### 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" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Tom Watson win?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 1st member elected in 1511/12?`

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

CREATE TABLE "parliaments_of_king_henry_viii" (
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 1st member elected in 1511/12?`:
```sql
                SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1511/12';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 1st member of the parliament that was dissolved 23 february 1510?`

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

CREATE TABLE "parliaments_of_king_henry_viii" (
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 1st member of the parliament that was dissolved 23 february 1510?`:
```sql
                SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "dissolved"='23 february 1510';
```
## Task
Generate a SQL query to answer the following question:
`When was the parliament that was elected in 1509/10, and had an unknown second member, dissolved?`

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

CREATE TABLE "parliaments_of_king_henry_viii" (
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the parliament that was elected in 1509/10, and had an unknown second member, dissolved?`:
```sql
                SELECT "dissolved" FROM "parliaments_of_king_henry_viii" WHERE "2nd_member"='unknown' AND "elected"='1509/10';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 1st member that was elected in 1541/42?`

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

CREATE TABLE "parliaments_of_king_henry_viii" (
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 1st member that was elected in 1541/42?`:
```sql
                SELECT "1st_member" FROM "parliaments_of_king_henry_viii" WHERE "elected"='1541/42';
```
## Task
Generate a SQL query to answer the following question:
`Who was the 2nd member of the parliament that was assembled on 3 november 1529?`

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

CREATE TABLE "parliaments_of_king_henry_viii" (
  "elected" text,
  "assembled" text,
  "dissolved" text,
  "1st_member" text,
  "2nd_member" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the 2nd member of the parliament that was assembled on 3 november 1529?`:
```sql
                SELECT "2nd_member" FROM "parliaments_of_king_henry_viii" WHERE "assembled"='3 november 1529';
```
## Task
Generate a SQL query to answer the following question:
`What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?`

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

CREATE TABLE "1990s" (
  "date" text,
  "result" text,
  "competition" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the competition of the Emerging Nations Tournament and a result of Scotland 34-9 Russia?`:
```sql
                SELECT "date" FROM "1990s" WHERE "competition"='emerging nations tournament' AND "result"='scotland 34-9 russia';
```
## Task
Generate a SQL query to answer the following question:
`What number was manufactured 1 in 1841?`

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

CREATE TABLE "locomotives_of_the_early_period_for_all_" (
  "class" text,
  "number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number was manufactured 1 in 1841?`:
```sql
                SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='1' AND "year_s_of_manufacture"='1841';
```
## Task
Generate a SQL query to answer the following question:
`What is the quantity of class B V?`

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

CREATE TABLE "locomotives_of_the_early_period_for_all_" (
  "class" text,
  "number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the quantity of class B V?`:
```sql
                SELECT "quantity" FROM "locomotives_of_the_early_period_for_all_" WHERE "class"='b v';
```
## Task
Generate a SQL query to answer the following question:
`What number corresponds to the quantity of 24?`

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

CREATE TABLE "locomotives_of_the_early_period_for_all_" (
  "class" text,
  "number_s" text,
  "quantity" text,
  "year_s_of_manufacture" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number corresponds to the quantity of 24?`:
```sql
                SELECT "number_s" FROM "locomotives_of_the_early_period_for_all_" WHERE "quantity"='24';
```
## Task
Generate a SQL query to answer the following question:
`What is Tim Wollthan's Date of Birth?`

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

CREATE TABLE "germany" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tim Wollthan's Date of Birth?`:
```sql
                SELECT "date_of_birth" FROM "germany" WHERE "name"='tim wollthan';
```
## Task
Generate a SQL query to answer the following question:
`What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?`

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

CREATE TABLE "germany" (
  "name" text,
  "pos" text,
  "height" text,
  "weight" text,
  "date_of_birth" text,
  "club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What D Player with a Height of m (ft 4in) is in the Spandau 04 Club?`:
```sql
                SELECT "name" FROM "germany" WHERE "club"='spandau 04' AND "height"='m (ft 4in)' AND "pos"='d';
```