cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What were the total career titles of the player who led for 5 years?`

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

CREATE TABLE "chronological_list_of_grand_slam_singles" (
  "years_led" text,
  "span_of_years_led" real,
  "player" text,
  "titles_won_at_point_of_lead" real,
  "total_career_titles" real,
  "tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the total career titles of the player who led for 5 years?`:
```sql
                SELECT COUNT("total_career_titles") FROM "chronological_list_of_grand_slam_singles" WHERE "span_of_years_led"=5;
```
## Task
Generate a SQL query to answer the following question:
`Of the players whose lead began at the australian championships, what was the shortest span of years led?`

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

CREATE TABLE "chronological_list_of_grand_slam_singles" (
  "years_led" text,
  "span_of_years_led" real,
  "player" text,
  "titles_won_at_point_of_lead" real,
  "total_career_titles" real,
  "tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of the players whose lead began at the australian championships, what was the shortest span of years led?`:
```sql
                SELECT MIN("span_of_years_led") FROM "chronological_list_of_grand_slam_singles" WHERE "tournament_at_which_lead_began"='Australian Championships';
```
## Task
Generate a SQL query to answer the following question:
`At which tournament did william renshaw begin his lead when he had won 7 titles?`

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

CREATE TABLE "chronological_list_of_grand_slam_singles" (
  "years_led" text,
  "span_of_years_led" real,
  "player" text,
  "titles_won_at_point_of_lead" real,
  "total_career_titles" real,
  "tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `At which tournament did william renshaw begin his lead when he had won 7 titles?`:
```sql
                SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='William Renshaw' AND "titles_won_at_point_of_lead"=7;
```
## Task
Generate a SQL query to answer the following question:
`At what tournament did pete sampras begin his lead?`

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

CREATE TABLE "chronological_list_of_grand_slam_singles" (
  "years_led" text,
  "span_of_years_led" real,
  "player" text,
  "titles_won_at_point_of_lead" real,
  "total_career_titles" real,
  "tournament_at_which_lead_began" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what tournament did pete sampras begin his lead?`:
```sql
                SELECT "tournament_at_which_lead_began" FROM "chronological_list_of_grand_slam_singles" WHERE "player"='Pete Sampras';
```
## Task
Generate a SQL query to answer the following question:
`Who are all directors when Sherwood Schwartz is the writer?`

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

CREATE TABLE "table1_2342078_2" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who are all directors when Sherwood Schwartz is the writer?`:
```sql
                SELECT "directed_by" FROM "table1_2342078_2" WHERE "written_by"='Sherwood Schwartz';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest episode# with the writer Paul West?`

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

CREATE TABLE "table1_2342078_2" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest episode# with the writer Paul West?`:
```sql
                SELECT MAX("episode_num") FROM "table1_2342078_2" WHERE "written_by"='Paul West';
```
## Task
Generate a SQL query to answer the following question:
`What is every production code for episode # 13?`

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

CREATE TABLE "table1_2342078_2" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_order_they_were_made_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every production code for episode # 13?`:
```sql
                SELECT "production_code_order_they_were_made_num" FROM "table1_2342078_2" WHERE "episode_num"=13;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest episode number written by Harry Winkler?`

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

CREATE TABLE "table1_2342078_4" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest episode number written by Harry Winkler?`:
```sql
                SELECT MAX("episode_num") FROM "table1_2342078_4" WHERE "written_by"='Harry Winkler';
```
## Task
Generate a SQL query to answer the following question:
`List all directors when Brad Radnitz was the writer?`

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

CREATE TABLE "table1_2342078_4" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `List all directors when Brad Radnitz was the writer?`:
```sql
                SELECT "directed_by" FROM "table1_2342078_4" WHERE "written_by"='Brad Radnitz';
```
## Task
Generate a SQL query to answer the following question:
`Name the airdate for the episode written by howard ostroff`

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

CREATE TABLE "table1_2342078_6" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the airdate for the episode written by howard ostroff`:
```sql
                SELECT "original_airdate" FROM "table1_2342078_6" WHERE "written_by"='Howard Ostroff';
```
## Task
Generate a SQL query to answer the following question:
`Name the production code # for episode 109`

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

CREATE TABLE "table1_2342078_6" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the production code # for episode 109`:
```sql
                SELECT COUNT("production_code_num") FROM "table1_2342078_6" WHERE "episode_num"=109;
```
## Task
Generate a SQL query to answer the following question:
`Name who drected the episode written by george tibbles`

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

CREATE TABLE "table1_2342078_6" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name who drected the episode written by george tibbles`:
```sql
                SELECT "directed_by" FROM "table1_2342078_6" WHERE "written_by"='George Tibbles';
```
## Task
Generate a SQL query to answer the following question:
`How many different people directed the episode titled "Fright Night"?`

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

CREATE TABLE "table1_2342078_5" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different people directed the episode titled "Fright Night"?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_2342078_5" WHERE "title"='\"Fright Night\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of the episode titled "Everyone can't be George Washington"?`

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

CREATE TABLE "table1_2342078_5" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of the episode titled "Everyone can't be George Washington"?`:
```sql
                SELECT MIN("episode_num") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"';
```
## Task
Generate a SQL query to answer the following question:
`How many original air dates are there for the episode titled "Everyone can't be George Washington"?`

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

CREATE TABLE "table1_2342078_5" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates are there for the episode titled "Everyone can't be George Washington"?`:
```sql
                SELECT COUNT("original_airdate") FROM "table1_2342078_5" WHERE "title"='\"Everyone Can''t Be George Washington\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode written by Harry Winkler?`

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

CREATE TABLE "table1_2342078_5" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode written by Harry Winkler?`:
```sql
                SELECT "title" FROM "table1_2342078_5" WHERE "written_by"='Harry Winkler';
```
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode titled "The subject was noses"?`

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

CREATE TABLE "table1_2342078_5" (
  "episode_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_airdate" text,
  "production_code_num" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the production code of the episode titled "The subject was noses"?`:
```sql
                SELECT MIN("production_code_num") FROM "table1_2342078_5" WHERE "title"='\"The Subject Was Noses\"';
```
## Task
Generate a SQL query to answer the following question:
`During the 1st Place (Won the Series), who was the act?`

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

CREATE TABLE "final" (
  "place_came" text,
  "artist" text,
  "category" text,
  "act" text,
  "semi_final" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the 1st Place (Won the Series), who was the act?`:
```sql
                SELECT "act" FROM "final" WHERE "place_came"='1st Place (Won the Series)';
```
## Task
Generate a SQL query to answer the following question:
`During the act, Playing on Glasses, what was the semi-final?`

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

CREATE TABLE "final" (
  "place_came" text,
  "artist" text,
  "category" text,
  "act" text,
  "semi_final" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Playing on Glasses, what was the semi-final?`:
```sql
                SELECT "semi_final" FROM "final" WHERE "act"='Playing on Glasses';
```
## Task
Generate a SQL query to answer the following question:
`During the act, Performance of "Lost" by Anouk, what was the result?`

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

CREATE TABLE "final" (
  "place_came" text,
  "artist" text,
  "category" text,
  "act" text,
  "semi_final" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Performance of "Lost" by Anouk, what was the result?`:
```sql
                SELECT "result" FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk';
```
## Task
Generate a SQL query to answer the following question:
`What was the final place came for the performance of Erlend Bratland?`

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

CREATE TABLE "final" (
  "place_came" text,
  "artist" text,
  "category" text,
  "act" text,
  "semi_final" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the final place came for the performance of Erlend Bratland?`:
```sql
                SELECT "place_came" FROM "final" WHERE "artist"='Erlend Bratland';
```
## Task
Generate a SQL query to answer the following question:
`During the act, Performance of "Lost" by Anouk, what was the result?`

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

CREATE TABLE "final" (
  "place_came" text,
  "artist" text,
  "category" text,
  "act" text,
  "semi_final" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `During the act, Performance of "Lost" by Anouk, what was the result?`:
```sql
                SELECT COUNT("result") FROM "final" WHERE "act"='Performance of \"Lost\" by Anouk';
```
## Task
Generate a SQL query to answer the following question:
`How many imr* have 64.3 life expectancy males?`

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

CREATE TABLE "table1_23423_2" (
  "period" text,
  "live_births_per_year" text,
  "deaths_per_year" text,
  "natural_change_per_year" text,
  "cbr" text,
  "cdr" text,
  "nc" text,
  "tfr" text,
  "imr" real,
  "life_expectancy_total" text,
  "life_expectancy_males" text,
  "life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have 64.3 life expectancy males?`:
```sql
                SELECT MIN("imr") FROM "table1_23423_2" WHERE "life_expectancy_males"='64.3';
```
## Task
Generate a SQL query to answer the following question:
`How many imr* have tfr* of 4.31?`

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

CREATE TABLE "table1_23423_2" (
  "period" text,
  "live_births_per_year" text,
  "deaths_per_year" text,
  "natural_change_per_year" text,
  "cbr" text,
  "cdr" text,
  "nc" text,
  "tfr" text,
  "imr" real,
  "life_expectancy_total" text,
  "life_expectancy_males" text,
  "life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have tfr* of 4.31?`:
```sql
                SELECT "imr" FROM "table1_23423_2" WHERE "tfr"='4.31';
```
## Task
Generate a SQL query to answer the following question:
`How many deaths per year have 66.3 as the life expectancy females?`

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

CREATE TABLE "table1_23423_2" (
  "period" text,
  "live_births_per_year" text,
  "deaths_per_year" text,
  "natural_change_per_year" text,
  "cbr" text,
  "cdr" text,
  "nc" text,
  "tfr" text,
  "imr" real,
  "life_expectancy_total" text,
  "life_expectancy_males" text,
  "life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many deaths per year have 66.3 as the life expectancy females?`:
```sql
                SELECT "deaths_per_year" FROM "table1_23423_2" WHERE "life_expectancy_females"='66.3';
```
## Task
Generate a SQL query to answer the following question:
`How many imr* have tfr* 5.35?`

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

CREATE TABLE "table1_23423_2" (
  "period" text,
  "live_births_per_year" text,
  "deaths_per_year" text,
  "natural_change_per_year" text,
  "cbr" text,
  "cdr" text,
  "nc" text,
  "tfr" text,
  "imr" real,
  "life_expectancy_total" text,
  "life_expectancy_males" text,
  "life_expectancy_females" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many imr* have tfr* 5.35?`:
```sql
                SELECT COUNT("imr") FROM "table1_23423_2" WHERE "tfr"='5.35';
```
## Task
Generate a SQL query to answer the following question:
`Which leagues entered in rounds where there were 16 winners from the previous round?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leagues entered in rounds where there were 16 winners from the previous round?`:
```sql
                SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "winners_from_previous_round"='16';
```
## Task
Generate a SQL query to answer the following question:
`Which rounds had 32 clubs involved?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which rounds had 32 clubs involved?`:
```sql
                SELECT "round" FROM "teams" WHERE "clubs_involved"=32;
```
## Task
Generate a SQL query to answer the following question:
`Which round had 24 new entries?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which round had 24 new entries?`:
```sql
                SELECT "round" FROM "teams" WHERE "new_entries_this_round"='24';
```
## Task
Generate a SQL query to answer the following question:
`Which leagues entered an extra preliminary round?`

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

CREATE TABLE "teams" (
  "round" text,
  "clubs_remaining" real,
  "clubs_involved" real,
  "winners_from_previous_round" text,
  "new_entries_this_round" text,
  "leagues_entering_at_this_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which leagues entered an extra preliminary round?`:
```sql
                SELECT "leagues_entering_at_this_round" FROM "teams" WHERE "round"='Extra Preliminary Round';
```
## Task
Generate a SQL query to answer the following question:
`Name the location of buffalo sabres`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location of buffalo sabres`:
```sql
                SELECT "location" FROM "game_log" WHERE "opponent"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`Name the game for 13–17–9`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game for 13–17–9`:
```sql
                SELECT "game" FROM "game_log" WHERE "record"='13–17–9';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for december 19`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for december 19`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='December 19';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for new york islanders`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for new york islanders`:
```sql
                SELECT "date" FROM "game_log" WHERE "opponent"='New York Islanders';
```
## Task
Generate a SQL query to answer the following question:
`Name the opponents for december 3`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponents for december 3`:
```sql
                SELECT COUNT("opponent") FROM "game_log" WHERE "date"='December 3';
```
## Task
Generate a SQL query to answer the following question:
`How many games did they play the carolina hurricanes?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play the carolina hurricanes?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "opponent"='Carolina Hurricanes';
```
## Task
Generate a SQL query to answer the following question:
`What was the score when they had 62 points?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when they had 62 points?`:
```sql
                SELECT "score" FROM "game_log" WHERE "points"=62;
```
## Task
Generate a SQL query to answer the following question:
`What team did the Maple Leafs score 9 points against?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the Maple Leafs score 9 points against?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "points"=9;
```
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?`

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

CREATE TABLE "2009_junior_classic_practice_times_and_l" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 23' 18.82 97.102mph on Tuesday 25th August?`:
```sql
                SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='23'' 18.82 97.102mph';
```
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?`

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

CREATE TABLE "2009_junior_classic_practice_times_and_l" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 24' 17.26 93.208mph on Monday 24th August?`:
```sql
                SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "mon_24_aug"='24'' 17.26 93.208mph';
```
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?`

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

CREATE TABLE "2009_junior_classic_practice_times_and_l" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 22' 54.20 98.842mph on Tuesday 25th August?`:
```sql
                SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "tues_25_aug"='22'' 54.20 98.842mph';
```
## Task
Generate a SQL query to answer the following question:
`What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?`

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

CREATE TABLE "2009_junior_classic_practice_times_and_l" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text,
  "sat_29_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time was achieved on Saturday 29th August by the rider who recorded 25' 01.89 90.438mph on Friday 28th August?`:
```sql
                SELECT "sat_29_aug" FROM "2009_junior_classic_practice_times_and_l" WHERE "fri_28_aug"='25'' 01.89 90.438mph';
```
## Task
Generate a SQL query to answer the following question:
`What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?`

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

CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event on Wed 26 Aug where rider is Andrew Farrell 400cc Kawasaki?`:
```sql
                SELECT "wed_26_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "rider"='Andrew Farrell 400cc Kawasaki';
```
## Task
Generate a SQL query to answer the following question:
`What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?`

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

CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the event on Thurs 27 Aug when Tues 25 Aug was 23' 00.59 98.384mph?`:
```sql
                SELECT "thurs_27_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "tues_25_aug"='23'' 00.59 98.384mph';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?`

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

CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tues 25 Aug time and speed when Mon 24 Aug was 22' 24.56 101.021mph?`:
```sql
                SELECT "tues_25_aug" FROM "2009_newcomers_race_b_practice_times_and" WHERE "mon_24_aug"='22'' 24.56 101.021mph';
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?`

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

CREATE TABLE "2009_newcomers_race_b_practice_times_and" (
  "rank" real,
  "rider" text,
  "mon_24_aug" text,
  "tues_25_aug" text,
  "wed_26_aug" text,
  "thurs_27_aug" text,
  "fri_28_aug" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph?`:
```sql
                SELECT "rider" FROM "2009_newcomers_race_b_practice_times_and" WHERE "fri_28_aug"='24'' 23.36 92.820mph';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has 32194 as the attendance?`

### 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,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has 32194 as the attendance?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"=32194;
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has 36102 is the attendance?`

### 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,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has 36102 is the attendance?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"=36102;
```
## Task
Generate a SQL query to answer the following question:
`What is the attendance?`

### 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,
  "location" text,
  "final_score" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance?`:
```sql
                SELECT MAX("attendance") FROM "schedule";
```
## Task
Generate a SQL query to answer the following question:
`What is the hometown of contestants who are from the province of Huesca?`

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

CREATE TABLE "delegates" (
  "province" text,
  "contestant" text,
  "age" real,
  "height_in" text,
  "height_mt" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hometown of contestants who are from the province of Huesca?`:
```sql
                SELECT "hometown" FROM "delegates" WHERE "province"='Huesca';
```
## Task
Generate a SQL query to answer the following question:
`What is the height in inches of contestants who are from the province of La Rioja?`

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

CREATE TABLE "delegates" (
  "province" text,
  "contestant" text,
  "age" real,
  "height_in" text,
  "height_mt" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height in inches of contestants who are from the province of La Rioja?`:
```sql
                SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja';
```
## Task
Generate a SQL query to answer the following question:
`How many contestants of whatever age are there whose hometown of Andujar?`

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

CREATE TABLE "delegates" (
  "province" text,
  "contestant" text,
  "age" real,
  "height_in" text,
  "height_mt" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many contestants of whatever age are there whose hometown of Andujar?`:
```sql
                SELECT COUNT("age") FROM "delegates" WHERE "hometown"='Andujar';
```
## Task
Generate a SQL query to answer the following question:
`How tall are contestants whose home province is La Rioja?`

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

CREATE TABLE "delegates" (
  "province" text,
  "contestant" text,
  "age" real,
  "height_in" text,
  "height_mt" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall are contestants whose home province is La Rioja?`:
```sql
                SELECT "height_in" FROM "delegates" WHERE "province"='La Rioja';
```
## Task
Generate a SQL query to answer the following question:
`What's the service number of the Jammu Duronto train? `

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

CREATE TABLE "list_of_duronto_express_trains" (
  "service" real,
  "train_number" real,
  "train_name" text,
  "source" text,
  "departure" text,
  "destination" text,
  "arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the service number of the Jammu Duronto train? `:
```sql
                SELECT MAX("service") FROM "list_of_duronto_express_trains" WHERE "train_name"='Jammu Duronto';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the train to Madurai Junction?`

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

CREATE TABLE "list_of_duronto_express_trains" (
  "service" real,
  "train_number" real,
  "train_name" text,
  "source" text,
  "departure" text,
  "destination" text,
  "arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the train to Madurai Junction?`:
```sql
                SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Madurai Junction';
```
## Task
Generate a SQL query to answer the following question:
`What's the service number of the Pune Duronto train that departures at 21:35?`

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

CREATE TABLE "list_of_duronto_express_trains" (
  "service" real,
  "train_number" real,
  "train_name" text,
  "source" text,
  "departure" text,
  "destination" text,
  "arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the service number of the Pune Duronto train that departures at 21:35?`:
```sql
                SELECT "service" FROM "list_of_duronto_express_trains" WHERE "train_name"='Pune Duronto' AND "departure"='21:35';
```
## Task
Generate a SQL query to answer the following question:
`What's the name of the train that goes to Bhubaneswar?`

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

CREATE TABLE "list_of_duronto_express_trains" (
  "service" real,
  "train_number" real,
  "train_name" text,
  "source" text,
  "departure" text,
  "destination" text,
  "arrival" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the name of the train that goes to Bhubaneswar?`:
```sql
                SELECT "train_name" FROM "list_of_duronto_express_trains" WHERE "destination"='Bhubaneswar';
```
## Task
Generate a SQL query to answer the following question:
`What is the record when the opposing team was the Pittsburgh Penguins?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the opposing team was the Pittsburgh Penguins?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='Pittsburgh Penguins';
```
## Task
Generate a SQL query to answer the following question:
`What was the game number when the opposing team was the Buffalo Sabres?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the game number when the opposing team was the Buffalo Sabres?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "opponent"='Buffalo Sabres';
```
## Task
Generate a SQL query to answer the following question:
`What is the product code for the episode titled "Kafelnikov"?`

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

CREATE TABLE "table1_234886_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the product code for the episode titled "Kafelnikov"?`:
```sql
                SELECT "prod_code" FROM "table1_234886_3" WHERE "title"='\"Kafelnikov\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode no. 44 in the series?`

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

CREATE TABLE "table1_234886_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode no. 44 in the series?`:
```sql
                SELECT "directed_by" FROM "table1_234886_3" WHERE "no_in_series"=44;
```
## Task
Generate a SQL query to answer the following question:
`What is the number in the season of the episode with a production code of 2-05?`

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

CREATE TABLE "table1_234886_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number in the season of the episode with a production code of 2-05?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_234886_3" WHERE "prod_code"='2-05';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode with the production code 2-19?`

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

CREATE TABLE "table1_234886_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode with the production code 2-19?`:
```sql
                SELECT "title" FROM "table1_234886_3" WHERE "prod_code"='2-19';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of titles for the episode numbered 29 in the series?`

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

CREATE TABLE "table1_234886_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of titles for the episode numbered 29 in the series?`:
```sql
                SELECT COUNT("title") FROM "table1_234886_3" WHERE "no_in_series"=29;
```
## Task
Generate a SQL query to answer the following question:
`What was the name of the episode directed by Jessica Yu?`

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

CREATE TABLE "table1_23492454_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the name of the episode directed by Jessica Yu?`:
```sql
                SELECT "title" FROM "table1_23492454_1" WHERE "directed_by"='Jessica Yu';
```
## Task
Generate a SQL query to answer the following question:
`who directed the episode written by Shonda Rhimes?`

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

CREATE TABLE "table1_23492454_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the episode written by Shonda Rhimes?`:
```sql
                SELECT "directed_by" FROM "table1_23492454_1" WHERE "written_by"='Shonda Rhimes';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series are also episode 18 in the season?`

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

CREATE TABLE "table1_23492454_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series are also episode 18 in the season?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_23492454_1" WHERE "no_in_season"=18;
```
## Task
Generate a SQL query to answer the following question:
`Who is every opponent on the date of March 16?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every opponent on the date of March 16?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='March 16';
```
## Task
Generate a SQL query to answer the following question:
`What is every score for the opponent of Atlanta Thrashers?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score for the opponent of Atlanta Thrashers?`:
```sql
                SELECT "score" FROM "game_log" WHERE "opponent"='Atlanta Thrashers';
```
## Task
Generate a SQL query to answer the following question:
`What is every location for the date of March 20?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every location for the date of March 20?`:
```sql
                SELECT "location" FROM "game_log" WHERE "date"='March 20';
```
## Task
Generate a SQL query to answer the following question:
`What is every score at the location of Verizon Center and points of 68?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every score at the location of Verizon Center and points of 68?`:
```sql
                SELECT "score" FROM "game_log" WHERE "location"='Verizon Center' AND "points"=68;
```
## Task
Generate a SQL query to answer the following question:
`What is every date with a record of 30–34–12?`

### 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,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every date with a record of 30–34–12?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='30–34–12';
```
## Task
Generate a SQL query to answer the following question:
`How many officers o/s were there on the day when the number of USAAF was 2373882?`

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

CREATE TABLE "growth_personnel" (
  "date" text,
  "total_usaaf" real,
  "tot_officers" real,
  "tot_enlisted" real,
  "num_overseas" real,
  "officers_o_s" real,
  "enlisted_o_s" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many officers o/s were there on the day when the number of USAAF was 2373882?`:
```sql
                SELECT MAX("officers_o_s") FROM "growth_personnel" WHERE "total_usaaf"=2373882;
```