cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the overall pick number for the player who was picked on round 8?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the overall pick number for the player who was picked on round 8?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college did the player who had the position of OT come from who was pick number less than 12 and a overall pick number bigger than 226?`:
```sql
                SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall">226 AND "pick"<12 AND "position"='ot';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG?`

### 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,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE APPOINTMENT DATE WITH A PRE-SEASON POSITION, AND REPLACED BY THOMAS THOMASBERG?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "position_in_table"='pre-season' AND "replaced_by"='thomas thomasberg';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?`

### 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,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE APPOINTMENT DATE FOR AC HORSENS?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='ac horsens';
```
## Task
Generate a SQL query to answer the following question:
`WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?`

### 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,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT TEAM HAS 12TH TABLE POSITION AND REPLACED BY OVE PEDERSEN?`:
```sql
                SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='12th' AND "replaced_by"='ove pedersen';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when Calgary was visiting team and Niittymaki had the decision?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when Calgary was visiting team and Niittymaki had the decision?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "decision"='niittymaki' AND "visitor"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`What is the score when Biron got the decision and Philadelphia was the visitor on March 1?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when Biron got the decision and Philadelphia was the visitor on March 1?`:
```sql
                SELECT "score" FROM "regular_season" WHERE "decision"='biron' AND "visitor"='philadelphia' AND "date"='march 1';
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance when Pittsburgh is the home team?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance when Pittsburgh is the home team?`:
```sql
                SELECT AVG("attendance") FROM "regular_season" WHERE "home"='pittsburgh';
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance after Week 4 on October 10, 1971?`

### 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 after Week 4 on October 10, 1971?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='october 10, 1971' AND "week">4;
```
## Task
Generate a SQL query to answer the following question:
`What was the Attendance in the game against the New Orleans Saints?`

### 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 in the game against the New Orleans Saints?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "opponent"='new orleans saints';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date in Week 7 with an Attendance greater than 44,000?`

### 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 is the Date in Week 7 with an Attendance greater than 44,000?`:
```sql
                SELECT "date" FROM "schedule" WHERE "attendance">'44,000' AND "week"=7;
```
## Task
Generate a SQL query to answer the following question:
`What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?`

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

CREATE TABLE "characters" (
  "gatchaman" text,
  "battle_of_the_planets" text,
  "g_force" text,
  "eagle_riders" text,
  "ova_harmony_gold_dub" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_botp" text,
  "voice_actor_g_force" text,
  "voice_actor_harmony_gold_ova_dub" text,
  "voice_actor_eagle_riders" text,
  "voice_actor_adv_tv_sentai_ova_dub" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Eagle Riders character voiced by Japanese voice actor Katsuji Mori?`:
```sql
                SELECT "eagle_riders" FROM "characters" WHERE "japanese_voice_actor"='katsuji mori';
```
## Task
Generate a SQL query to answer the following question:
`Which Voice Actor for Eagle Riders had a bird uniform of condor?`

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

CREATE TABLE "characters" (
  "gatchaman" text,
  "battle_of_the_planets" text,
  "g_force" text,
  "eagle_riders" text,
  "ova_harmony_gold_dub" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_botp" text,
  "voice_actor_g_force" text,
  "voice_actor_harmony_gold_ova_dub" text,
  "voice_actor_eagle_riders" text,
  "voice_actor_adv_tv_sentai_ova_dub" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Voice Actor for Eagle Riders had a bird uniform of condor?`:
```sql
                SELECT "voice_actor_eagle_riders" FROM "characters" WHERE "bird_uniform"='condor';
```
## Task
Generate a SQL query to answer the following question:
`Which weapon was used when the Battle of the Planets was Jason?`

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

CREATE TABLE "characters" (
  "gatchaman" text,
  "battle_of_the_planets" text,
  "g_force" text,
  "eagle_riders" text,
  "ova_harmony_gold_dub" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_botp" text,
  "voice_actor_g_force" text,
  "voice_actor_harmony_gold_ova_dub" text,
  "voice_actor_eagle_riders" text,
  "voice_actor_adv_tv_sentai_ova_dub" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which weapon was used when the Battle of the Planets was Jason?`:
```sql
                SELECT "weapon" FROM "characters" WHERE "battle_of_the_planets"='jason';
```
## Task
Generate a SQL query to answer the following question:
`Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun?`

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

CREATE TABLE "characters" (
  "gatchaman" text,
  "battle_of_the_planets" text,
  "g_force" text,
  "eagle_riders" text,
  "ova_harmony_gold_dub" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_botp" text,
  "voice_actor_g_force" text,
  "voice_actor_harmony_gold_ova_dub" text,
  "voice_actor_eagle_riders" text,
  "voice_actor_adv_tv_sentai_ova_dub" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the voice actor (ADV TV/Sentai OVA dub) for the Gatchaman, jun?`:
```sql
                SELECT "voice_actor_adv_tv_sentai_ova_dub" FROM "characters" WHERE "gatchaman"='jun';
```
## Task
Generate a SQL query to answer the following question:
`Which Japanese voice actor had the Mecha of airplane?`

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

CREATE TABLE "characters" (
  "gatchaman" text,
  "battle_of_the_planets" text,
  "g_force" text,
  "eagle_riders" text,
  "ova_harmony_gold_dub" text,
  "rank" text,
  "bird_uniform" text,
  "weapon" text,
  "mecha" text,
  "japanese_voice_actor" text,
  "voice_actor_botp" text,
  "voice_actor_g_force" text,
  "voice_actor_harmony_gold_ova_dub" text,
  "voice_actor_eagle_riders" text,
  "voice_actor_adv_tv_sentai_ova_dub" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Japanese voice actor had the Mecha of airplane?`:
```sql
                SELECT "japanese_voice_actor" FROM "characters" WHERE "mecha"='airplane';
```
## Task
Generate a SQL query to answer the following question:
`Which 1st leg has a Team 1 of drita?`

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

CREATE TABLE "eighth_finals" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 1st leg has a Team 1 of drita?`:
```sql
                SELECT "1st_leg" FROM "eighth_finals" WHERE "team_1"='drita';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 2 has a Team 1 of vardar?`

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

CREATE TABLE "eighth_finals" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 2 has a Team 1 of vardar?`:
```sql
                SELECT "team_2" FROM "eighth_finals" WHERE "team_1"='vardar';
```
## Task
Generate a SQL query to answer the following question:
`Which Team 1 has a 2nd leg of 1–2?`

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

CREATE TABLE "eighth_finals" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Team 1 has a 2nd leg of 1–2?`:
```sql
                SELECT "team_1" FROM "eighth_finals" WHERE "2nd_leg"='1–2';
```
## Task
Generate a SQL query to answer the following question:
`What years was the jersey number(s) smaller than 3?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "jersey_number_s" real,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years was the jersey number(s) smaller than 3?`:
```sql
                SELECT "years" FROM "f" WHERE "jersey_number_s"<3;
```
## Task
Generate a SQL query to answer the following question:
`Which position was played by the player wearing jersey number 40?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "jersey_number_s" real,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position was played by the player wearing jersey number 40?`:
```sql
                SELECT "position" FROM "f" WHERE "jersey_number_s"=40;
```
## Task
Generate a SQL query to answer the following question:
`What was the jersey number(s) when the position was SG from North Carolina?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "jersey_number_s" real,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the jersey number(s) when the position was SG from North Carolina?`:
```sql
                SELECT "jersey_number_s" FROM "f" WHERE "position"='sg' AND "from"='north carolina';
```
## Task
Generate a SQL query to answer the following question:
`Which nationality does Cincinnati belong to?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "jersey_number_s" real,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nationality does Cincinnati belong to?`:
```sql
                SELECT "nationality" FROM "f" WHERE "from"='cincinnati';
```
## Task
Generate a SQL query to answer the following question:
`Where is jersey number 3 from?`

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

CREATE TABLE "f" (
  "player" text,
  "nationality" text,
  "jersey_number_s" real,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is jersey number 3 from?`:
```sql
                SELECT "from" FROM "f" WHERE "jersey_number_s"=3;
```
## Task
Generate a SQL query to answer the following question:
`What pick number was the rhp with a hometown/school of university of hawaii?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick number was the rhp with a hometown/school of university of hawaii?`:
```sql
                SELECT MIN("pick") FROM "first_round_selections" WHERE "position"='rhp' AND "hometown_school"='university of hawaii';
```
## Task
Generate a SQL query to answer the following question:
`What player was drafted number 10?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player was drafted number 10?`:
```sql
                SELECT "player" FROM "first_round_selections" WHERE "pick"=10;
```
## Task
Generate a SQL query to answer the following question:
`What number pick was the player with the hometown school of concordia college?`

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

CREATE TABLE "first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "hometown_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number pick was the player with the hometown school of concordia college?`:
```sql
                SELECT "pick" FROM "first_round_selections" WHERE "hometown_school"='concordia college';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of game 66?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of game 66?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "game"=66;
```
## Task
Generate a SQL query to answer the following question:
`What is the game on February 21?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game on February 21?`:
```sql
                SELECT "game" FROM "season_schedule" WHERE "date"='february 21';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of draws that has a played entry of less than 30 and a goal difference greater than 2?`:
```sql
                SELECT AVG("draws") FROM "group_i" WHERE "goal_difference">2 AND "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number played that has fewer than 11 wins, more than 42 goals, more than 22 points, and 11 losses?`:
```sql
                SELECT AVG("played") FROM "group_i" WHERE "wins"<11 AND "goals_for">42 AND "points">22 AND "losses"=11;
```
## Task
Generate a SQL query to answer the following question:
`What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total of the goal difference entries for entries with fewer than 49 goals and position smaller than 8?`:
```sql
                SELECT COUNT("goal_difference") FROM "group_i" WHERE "goals_for"<49 AND "position"<8;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest played for the entry with position of 2 and fewer than 9 losses?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest played for the entry with position of 2 and fewer than 9 losses?`:
```sql
                SELECT MIN("played") FROM "group_i" WHERE "position"=2 AND "losses"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14?`

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

CREATE TABLE "group_i" (
  "position" real,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of losses for entries that have 12 wins and a goal difference smaller than -14?`:
```sql
                SELECT COUNT("losses") FROM "group_i" WHERE "wins"=12 AND "goal_difference"<-14;
```
## Task
Generate a SQL query to answer the following question:
`What are the goals for Pelletieri in ARG?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the goals for Pelletieri in ARG?`:
```sql
                SELECT "goals_l_c_e" FROM "squad_information" WHERE "nat"='arg' AND "name"='pelletieri';
```
## Task
Generate a SQL query to answer the following question:
`What are the fewest ends with an App(L/C/E) of 51 (44/6/1)?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the fewest ends with an App(L/C/E) of 51 (44/6/1)?`:
```sql
                SELECT MIN("ends") FROM "squad_information" WHERE "app_l_c_e"='51 (44/6/1)';
```
## Task
Generate a SQL query to answer the following question:
`Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a nationality of GRE and an App(L/C/E) of 49 (40/8/1)?`:
```sql
                SELECT "name" FROM "squad_information" WHERE "nat"='gre' AND "app_l_c_e"='49 (40/8/1)';
```
## Task
Generate a SQL query to answer the following question:
`What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)?`

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

CREATE TABLE "squad_information" (
  "nat" text,
  "name" text,
  "since" text,
  "app_l_c_e" text,
  "goals_l_c_e" text,
  "ends" real,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the gaols(L/C/E) with an App(L/C/E) of 55 (47/5/3)?`:
```sql
                SELECT "goals_l_c_e" FROM "squad_information" WHERE "app_l_c_e"='55 (47/5/3)';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the reader's vote na and the lifetime achievement na?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "best_teenage_young_adult" text,
  "reader_s_vote" text,
  "best_non_fiction" text,
  "lifetime_achievement" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the reader's vote na and the lifetime achievement na?`:
```sql
                SELECT COUNT("year") FROM "previous_winners" WHERE "reader_s_vote"='na' AND "lifetime_achievement"='na';
```
## Task
Generate a SQL query to answer the following question:
`who won the lifetime achievement in the year 1998?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "best_teenage_young_adult" text,
  "reader_s_vote" text,
  "best_non_fiction" text,
  "lifetime_achievement" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the lifetime achievement in the year 1998?`:
```sql
                SELECT "lifetime_achievement" FROM "previous_winners" WHERE "year"=1998;
```
## Task
Generate a SQL query to answer the following question:
`who won the lifetime achievement when the best non-fiction is na, reader's vote is ne and the year is after 2005?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "best_teenage_young_adult" text,
  "reader_s_vote" text,
  "best_non_fiction" text,
  "lifetime_achievement" text
);
### SQL
Given the database schema, here is the SQL query that answers `who won the lifetime achievement when the best non-fiction is na, reader's vote is ne and the year is after 2005?`:
```sql
                SELECT "lifetime_achievement" FROM "previous_winners" WHERE "best_non_fiction"='na' AND "reader_s_vote"='na' AND "year">2005;
```
## Task
Generate a SQL query to answer the following question:
`what is the reader's vote for 2011?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "best_teenage_young_adult" text,
  "reader_s_vote" text,
  "best_non_fiction" text,
  "lifetime_achievement" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the reader's vote for 2011?`:
```sql
                SELECT "reader_s_vote" FROM "previous_winners" WHERE "year"=2011;
```
## Task
Generate a SQL query to answer the following question:
`Constructor with total time of 2:45.416`

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

CREATE TABLE "qualifying" (
  "driver" text,
  "constructor" text,
  "q1_order" real,
  "q1_time" text,
  "q1_pos" real,
  "q1_q2_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Constructor with total time of 2:45.416`:
```sql
                SELECT "constructor" FROM "qualifying" WHERE "q1_q2_time"='2:45.416';
```
## Task
Generate a SQL query to answer the following question:
`Driver at larger than 10 with a Q1 of 18.`

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

CREATE TABLE "qualifying" (
  "driver" text,
  "constructor" text,
  "q1_order" real,
  "q1_time" text,
  "q1_pos" real,
  "q1_q2_time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Driver at larger than 10 with a Q1 of 18.`:
```sql
                SELECT "driver" FROM "qualifying" WHERE "q1_order">10 AND "q1_pos"=18;
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent when the record was 55-14?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent when the record was 55-14?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='55-14';
```
## Task
Generate a SQL query to answer the following question:
`What was the game number when record is 59-15?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game number when record is 59-15?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "record"='59-15';
```
## Task
Generate a SQL query to answer the following question:
`What is the date that the record was 51-14?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date that the record was 51-14?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='51-14';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Pick #, when College is Laurier?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Pick #, when College is Laurier?`:
```sql
                SELECT SUM("pick_num") FROM "round_five" WHERE "college"='laurier';
```
## Task
Generate a SQL query to answer the following question:
`What is CFL Team, when Pick # is greater than 34, and when College is Boise State?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is CFL Team, when Pick # is greater than 34, and when College is Boise State?`:
```sql
                SELECT "cfl_team" FROM "round_five" WHERE "pick_num">34 AND "college"='boise state';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Pick #, when Position is REC, and when CFL Team is Hamilton Tiger-Cats?`:
```sql
                SELECT MIN("pick_num") FROM "round_five" WHERE "position"='rec' AND "cfl_team"='hamilton tiger-cats';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Position is DB, and when College is Saint Mary's?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Position is DB, and when College is Saint Mary's?`:
```sql
                SELECT "player" FROM "round_five" WHERE "position"='db' AND "college"='saint mary''s';
```
## Task
Generate a SQL query to answer the following question:
`What is Position, when Pick # is less than 40, and when College is Western?`

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

CREATE TABLE "round_five" (
  "pick_num" real,
  "cfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Position, when Pick # is less than 40, and when College is Western?`:
```sql
                SELECT "position" FROM "round_five" WHERE "pick_num"<40 AND "college"='western';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Time of 12:00?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Time of 12:00?`:
```sql
                SELECT "date" FROM "pool_e" WHERE "time"='12:00';
```
## Task
Generate a SQL query to answer the following question:
`Set 1 of 25–20, what was Set 2?`

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

CREATE TABLE "pool_e" (
  "date" text,
  "time" text,
  "score" text,
  "set_1" text,
  "set_2" text,
  "set_3" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `Set 1 of 25–20, what was Set 2?`:
```sql
                SELECT "set_2" FROM "pool_e" WHERE "set_1"='25–20';
```
## Task
Generate a SQL query to answer the following question:
`Whose rule began in 1906 BC?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Whose rule began in 1906 BC?`:
```sql
                SELECT "name" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1906 bc';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the one who ruled from 2007 BC?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the one who ruled from 2007 BC?`:
```sql
                SELECT "title" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='2007 bc';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the ruler whose rule began in 1924 BC?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the ruler whose rule began in 1924 BC?`:
```sql
                SELECT "name" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "from"='1924 bc';
```
## Task
Generate a SQL query to answer the following question:
`What royal house did Shaokang belong to?`

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

CREATE TABLE "list_of_state_leaders_in_the_20th_centur" (
  "type" text,
  "name" text,
  "title" text,
  "royal_house" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What royal house did Shaokang belong to?`:
```sql
                SELECT "royal_house" FROM "list_of_state_leaders_in_the_20th_centur" WHERE "name"='shaokang';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank of a building erected in 1976 with fewer than 21 floors?`

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

CREATE TABLE "tallest_buildings" (
  "rank" real,
  "name" text,
  "height_ft_m" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank of a building erected in 1976 with fewer than 21 floors?`:
```sql
                SELECT MAX("rank") FROM "tallest_buildings" WHERE "year"=1976 AND "floors"<21;
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when February shows more than 2, with a game number less than 55?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent when February shows more than 2, with a game number less than 55?`:
```sql
                SELECT "opponent" FROM "schedule_and_results" WHERE "february">2 AND "game"<55;
```
## Task
Generate a SQL query to answer the following question:
`What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number when the Toronto Maple Leafs were the opponent, and the February was less than 17?`:
```sql
                SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='toronto maple leafs' AND "february"<17;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the game when the opponent was the New York Islanders, and a February less than 24?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the game when the opponent was the New York Islanders, and a February less than 24?`:
```sql
                SELECT SUM("game") FROM "schedule_and_results" WHERE "opponent"='new york islanders' AND "february"<24;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest game number when the record was 26-24-9?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "february" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest game number when the record was 26-24-9?`:
```sql
                SELECT MIN("game") FROM "schedule_and_results" WHERE "record"='26-24-9';
```
## Task
Generate a SQL query to answer the following question:
`What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has less than 16 gold, more than 2 bronze and silver, and a total of 14?`:
```sql
                SELECT "rank" FROM "medal_table" WHERE "gold"<16 AND "bronze">2 AND "silver">2 AND "total"=14;
```
## Task
Generate a SQL query to answer the following question:
`What's the silver for rank 1 with less than 2 bronze?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the silver for rank 1 with less than 2 bronze?`:
```sql
                SELECT MIN("silver") FROM "medal_table" WHERE "rank"='1' AND "bronze"<2;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest total when there's less than 16 bronze and more than 6 silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest total when there's less than 16 bronze and more than 6 silver?`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "bronze"<16 AND "silver">6;
```
## Task
Generate a SQL query to answer the following question:
`What's the lowest gold with a total over 15 and less than 16 silver?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the lowest gold with a total over 15 and less than 16 silver?`:
```sql
                SELECT MIN("gold") FROM "medal_table" WHERE "total">15 AND "silver"<16;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Rank of 7, a Nation of italy, and a Silver smaller than 0?`:
```sql
                SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='7' AND "nation"='italy' AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Gold has a Total larger than 3, a Rank of total, and a Silver larger than 8?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "total">3 AND "rank"='total' AND "silver">8;
```
## Task
Generate a SQL query to answer the following question:
`Which Club team has a Pick larger than 139?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Club team has a Pick larger than 139?`:
```sql
                SELECT "club_team" FROM "draft_picks" WHERE "pick">139;
```
## Task
Generate a SQL query to answer the following question:
`Which Nationality has a Pick larger than 109, and a Round smaller than 5?`

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

CREATE TABLE "draft_picks" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "nationality" text,
  "club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Nationality has a Pick larger than 109, and a Round smaller than 5?`:
```sql
                SELECT "nationality" FROM "draft_picks" WHERE "pick">109 AND "round"<5;
```
## Task
Generate a SQL query to answer the following question:
`Which school was Lawrence Roberts from ?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school was Lawrence Roberts from ?`:
```sql
                SELECT "school_club_team" FROM "r" WHERE "player"='lawrence roberts';
```
## Task
Generate a SQL query to answer the following question:
`Which school was Chris Robinson from?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school was Chris Robinson from?`:
```sql
                SELECT "school_club_team" FROM "r" WHERE "player"='chris robinson';
```
## Task
Generate a SQL query to answer the following question:
`What was the position that Chris Robinson played?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the position that Chris Robinson played?`:
```sql
                SELECT "position" FROM "r" WHERE "player"='chris robinson';
```
## Task
Generate a SQL query to answer the following question:
`In which years did Zach Randolph play for the Grizzlies?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which years did Zach Randolph play for the Grizzlies?`:
```sql
                SELECT "years_for_grizzlies" FROM "r" WHERE "player"='zach randolph';
```
## Task
Generate a SQL query to answer the following question:
`Which player played for Western Kentucky?`

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

CREATE TABLE "r" (
  "player" text,
  "nationality" text,
  "position" text,
  "years_for_grizzlies" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player played for Western Kentucky?`:
```sql
                SELECT "player" FROM "r" WHERE "school_club_team"='western kentucky';
```