cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the number of womens doubles for 2011 rio de janeiro`

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

CREATE TABLE "brazil_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of womens doubles for 2011 rio de janeiro`:
```sql
                SELECT COUNT("womens_doubles") FROM "brazil_open" WHERE "year_location"='2011 Rio de Janeiro';
```
## Task
Generate a SQL query to answer the following question:
`Name the year location for  haruna fukuoka`

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

CREATE TABLE "brazil_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the year location for  haruna fukuoka`:
```sql
                SELECT "year_location" FROM "brazil_open" WHERE "womens_singles"='Haruna Fukuoka';
```
## Task
Generate a SQL query to answer the following question:
`Name the mens doubles for dimitrij ovtcharov`

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

CREATE TABLE "brazil_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the mens doubles for dimitrij ovtcharov`:
```sql
                SELECT "mens_doubles" FROM "brazil_open" WHERE "mens_singles"='Dimitrij Ovtcharov';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of womens singles for 1999 rio de janeiro`

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

CREATE TABLE "brazil_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of womens singles for 1999 rio de janeiro`:
```sql
                SELECT COUNT("womens_singles") FROM "brazil_open" WHERE "year_location"='1999 Rio de Janeiro';
```
## Task
Generate a SQL query to answer the following question:
`Name the womens doubles for werner schlager`

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

CREATE TABLE "brazil_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the womens doubles for werner schlager`:
```sql
                SELECT "womens_doubles" FROM "brazil_open" WHERE "mens_singles"='Werner Schlager';
```
## Task
Generate a SQL query to answer the following question:
`Who was the womens double winner when the womens singles winner was Ding Ning?`

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

CREATE TABLE "slovenian_open" (
  "year_location" text,
  "mens_singles" text,
  "womens_singles" text,
  "mens_doubles" text,
  "womens_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the womens double winner when the womens singles winner was Ding Ning?`:
```sql
                SELECT "womens_doubles" FROM "slovenian_open" WHERE "womens_singles"='Ding Ning';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode number 19 in the series?`

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

CREATE TABLE "table1_28140578_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode number 19 in the series?`:
```sql
                SELECT "written_by" FROM "table1_28140578_1" WHERE "no_in_series"=19;
```
## Task
Generate a SQL query to answer the following question:
`How many marks are there when tackles are 3?`

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

CREATE TABLE "season_statistics" (
  "year" real,
  "team" text,
  "number" real,
  "games" real,
  "kicks" real,
  "handballs" real,
  "total_disposals" real,
  "marks" real,
  "tackles" real,
  "goals" real,
  "behinds" real,
  "goal_accuracy_pct" text,
  "brownlow_medal_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many marks are there when tackles are 3?`:
```sql
                SELECT "marks" FROM "season_statistics" WHERE "tackles"=3;
```
## Task
Generate a SQL query to answer the following question:
`What was the goal accuracy % when the total disposals are 481?`

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

CREATE TABLE "season_statistics" (
  "year" real,
  "team" text,
  "number" real,
  "games" real,
  "kicks" real,
  "handballs" real,
  "total_disposals" real,
  "marks" real,
  "tackles" real,
  "goals" real,
  "behinds" real,
  "goal_accuracy_pct" text,
  "brownlow_medal_votes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the goal accuracy % when the total disposals are 481?`:
```sql
                SELECT "goal_accuracy_pct" FROM "season_statistics" WHERE "total_disposals"=481;
```
## Task
Generate a SQL query to answer the following question:
`Who directed "it's a wonderful lie"?`

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

CREATE TABLE "table1_28140590_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed "it's a wonderful lie"?`:
```sql
                SELECT "directed_by" FROM "table1_28140590_1" WHERE "title"='\"It''s a Wonderful Lie\"';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode with a production code of 60072 originally air?`

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

CREATE TABLE "table1_28140590_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with a production code of 60072 originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_28140590_1" WHERE "production_code"=60072;
```
## Task
Generate a SQL query to answer the following question:
`How many different people directed the episode titled "Fail Fish"?`

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

CREATE TABLE "table1_28146944_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "story_storyboards_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 different people directed the episode titled "Fail Fish"?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_28146944_2" WHERE "title"='\"Fail Fish\"';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of people in the US watched the episode titled "Peopleing"?`

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

CREATE TABLE "table1_28146944_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "story_storyboards_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 millions of people in the US watched the episode titled "Peopleing"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_28146944_2" WHERE "title"='\"Peopleing\"';
```
## Task
Generate a SQL query to answer the following question:
`How many different pairs of people did the story and storyboard of the episode titled "Milo's big idea"?`

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

CREATE TABLE "table1_28146944_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "story_storyboards_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 different pairs of people did the story and storyboard of the episode titled "Milo's big idea"?`:
```sql
                SELECT COUNT("story_storyboards_by") FROM "table1_28146944_2" WHERE "title"='\"Milo''s Big Idea\"';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Baldwin the Super FIsh"?`

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

CREATE TABLE "table1_28146944_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "story_storyboards_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 titled "Baldwin the Super FIsh"?`:
```sql
                SELECT "directed_by" FROM "table1_28146944_2" WHERE "title"='\"Baldwin the Super Fish\"';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with series number 36?`

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

CREATE TABLE "table1_28146944_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "story_storyboards_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with series number 36?`:
```sql
                SELECT "title" FROM "table1_28146944_2" WHERE "no_in_series"=36;
```
## Task
Generate a SQL query to answer the following question:
`when was the next coach appointed after niger tornadoes fired their coach?`

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

CREATE TABLE "managerial_head_coach_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the next coach appointed after niger tornadoes fired their coach?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_head_coach_changes" WHERE "manner_of_departure"='fired' AND "team"='Niger Tornadoes';
```
## Task
Generate a SQL query to answer the following question:
`how many managers left sunshine stars?`

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

CREATE TABLE "managerial_head_coach_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many managers left sunshine stars?`:
```sql
                SELECT COUNT("outgoing_manager") FROM "managerial_head_coach_changes" WHERE "team"='Sunshine Stars';
```
## Task
Generate a SQL query to answer the following question:
`how many new managers replaced  manager(s) who resigned? `

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

CREATE TABLE "managerial_head_coach_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many new managers replaced  manager(s) who resigned? `:
```sql
                SELECT COUNT("incoming_manager") FROM "managerial_head_coach_changes" WHERE "manner_of_departure"='Resigned';
```
## Task
Generate a SQL query to answer the following question:
`how many times did tunde abdulrahman leave the team?`

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

CREATE TABLE "managerial_head_coach_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times did tunde abdulrahman leave the team?`:
```sql
                SELECT COUNT("date_of_vacancy") FROM "managerial_head_coach_changes" WHERE "outgoing_manager"='Tunde Abdulrahman';
```
## Task
Generate a SQL query to answer the following question:
`How many platforms have celsius calibur as mystic arte?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many platforms have celsius calibur as mystic arte?`:
```sql
                SELECT COUNT("platform") FROM "series_characters" WHERE "mystic_arte"='Celsius Calibur';
```
## Task
Generate a SQL query to answer the following question:
`Which character is yumi kakazu the character voice?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which character is yumi kakazu the character voice?`:
```sql
                SELECT "character" FROM "series_characters" WHERE "character_voice"='Yumi Kakazu';
```
## Task
Generate a SQL query to answer the following question:
`How many mystic arte have hisui (jadeite) hearts 1 as the character?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many mystic arte have hisui (jadeite) hearts 1 as the character?`:
```sql
                SELECT COUNT("mystic_arte") FROM "series_characters" WHERE "character"='Hisui (Jadeite) Hearts 1';
```
## Task
Generate a SQL query to answer the following question:
`How many platforms have nanaly fletch as the character?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many platforms have nanaly fletch as the character?`:
```sql
                SELECT COUNT("platform") FROM "series_characters" WHERE "character"='Nanaly Fletch';
```
## Task
Generate a SQL query to answer the following question:
`What is the status of the character keel (keele) zeibel?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the status of the character keel (keele) zeibel?`:
```sql
                SELECT "status" FROM "series_characters" WHERE "character"='Keel (Keele) Zeibel';
```
## Task
Generate a SQL query to answer the following question:
`Which character is mio yasuda the character voice?`

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

CREATE TABLE "series_characters" (
  "character" text,
  "game" text,
  "platform" text,
  "status" text,
  "mystic_arte" text,
  "character_voice" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which character is mio yasuda the character voice?`:
```sql
                SELECT "character" FROM "series_characters" WHERE "character_voice"='Mio Yasuda';
```
## Task
Generate a SQL query to answer the following question:
`What sesaon(s) did they have 254 goals against?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" real,
  "won" real,
  "lost" real,
  "tied" real,
  "points" real,
  "goals_for" real,
  "goals_against" real,
  "standing" text,
  "head_coaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sesaon(s) did they have 254 goals against?`:
```sql
                SELECT "season" FROM "regular_season" WHERE "goals_against"=254;
```
## Task
Generate a SQL query to answer the following question:
`What is the largest number of points in a season?`

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

CREATE TABLE "regular_season" (
  "season" text,
  "games" real,
  "won" real,
  "lost" real,
  "tied" real,
  "points" real,
  "goals_for" real,
  "goals_against" real,
  "standing" text,
  "head_coaches" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest number of points in a season?`:
```sql
                SELECT MAX("points") FROM "regular_season";
```
## Task
Generate a SQL query to answer the following question:
`What is the phonology used in the example streht > "straight"?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the phonology used in the example streht > "straight"?`:
```sql
                SELECT "early_middle_english" FROM "diphthongs" WHERE "example"='streht > \"straight\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Anglian phonology used in the example dæg > "day"; grǣg > "gray"?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Anglian phonology used in the example dæg > "day"; grǣg > "gray"?`:
```sql
                SELECT "late_old_english_anglian" FROM "diphthongs" WHERE "example"='dæg > \"day\"; grǣg > \"gray\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the modern English phonology used in the example weg > "way"; regn > "rain"?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the modern English phonology used in the example weg > "way"; regn > "rain"?`:
```sql
                SELECT "modern_english" FROM "diphthongs" WHERE "example"='weg > \"way\"; regn > \"rain\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Early Modern English phonology used in the example bōg > "bough"; plōg > plōh > "plough"?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Early Modern English phonology used in the example bōg > "bough"; plōg > plōh > "plough"?`:
```sql
                SELECT "early_modern_english" FROM "diphthongs" WHERE "example"='bōg > \"bough\"; plōg > plōh > \"plough\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the Late Middle English equivalent of the Anglian æg, ǣg?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Late Middle English equivalent of the Anglian æg, ǣg?`:
```sql
                SELECT "late_middle_english" FROM "diphthongs" WHERE "late_old_english_anglian"='æg, ǣg';
```
## Task
Generate a SQL query to answer the following question:
`What is the example of the Early Modern English ( [x] → /f/) /ɔf/?`

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

CREATE TABLE "diphthongs" (
  "late_old_english_anglian" text,
  "early_middle_english" text,
  "late_middle_english" text,
  "early_modern_english" text,
  "modern_english" text,
  "example" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the example of the Early Modern English ( [x] → /f/) /ɔf/?`:
```sql
                SELECT "example" FROM "diphthongs" WHERE "early_modern_english"='( [x] → /f/) /ɔf/';
```
## Task
Generate a SQL query to answer the following question:
`List the numer of miles for 2010.`

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

CREATE TABLE "table1_28178756_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the numer of miles for 2010.`:
```sql
                SELECT "miles_km" FROM "table1_28178756_1" WHERE "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`On what day did tommy ellis drive?`

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

CREATE TABLE "table1_28178756_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day did tommy ellis drive?`:
```sql
                SELECT "date" FROM "table1_28178756_1" WHERE "driver"='Tommy Ellis';
```
## Task
Generate a SQL query to answer the following question:
`On what day did joe gibbs racing record a time of 1:53:26?`

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

CREATE TABLE "table1_28178756_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what day did joe gibbs racing record a time of 1:53:26?`:
```sql
                SELECT "date" FROM "table1_28178756_1" WHERE "team"='Joe Gibbs Racing' AND "race_time"='1:53:26';
```
## Task
Generate a SQL query to answer the following question:
`What is the average speed for filmar racing?`

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

CREATE TABLE "table1_28178756_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average speed for filmar racing?`:
```sql
                SELECT "average_speed_mph" FROM "table1_28178756_1" WHERE "team"='FILMAR Racing';
```
## Task
Generate a SQL query to answer the following question:
`List the race time for may 11.`

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

CREATE TABLE "table1_28178756_1" (
  "year" real,
  "date" text,
  "driver" text,
  "team" text,
  "manufacturer" text,
  "laps" text,
  "miles_km" text,
  "race_time" text,
  "average_speed_mph" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the race time for may 11.`:
```sql
                SELECT "race_time" FROM "table1_28178756_1" WHERE "date"='May 11';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of modern grannies performed?`

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

CREATE TABLE "series_1_round_summary_top_24" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "semifinal_week" real,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of modern grannies performed?`:
```sql
                SELECT COUNT("act") FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Modern Grannies';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the performance zhu xiaoming performed?`

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

CREATE TABLE "series_1_round_summary_top_24" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "semifinal_week" real,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the performance zhu xiaoming performed?`:
```sql
                SELECT "act" FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Zhu Xiaoming';
```
## Task
Generate a SQL query to answer the following question:
`How many performers are 29 that made it to the semi finals?`

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

CREATE TABLE "series_1_round_summary_top_24" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "semifinal_week" real,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many performers are 29 that made it to the semi finals?`:
```sql
                SELECT "semifinal_week" FROM "series_1_round_summary_top_24" WHERE "age_s"='29';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the zhou jinsong's hometown?`

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

CREATE TABLE "series_1_round_summary_top_24" (
  "name_name_of_act" text,
  "age_s" text,
  "genre" text,
  "act" text,
  "hometown" text,
  "semifinal_week" real,
  "position_reached" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the zhou jinsong's hometown?`:
```sql
                SELECT "hometown" FROM "series_1_round_summary_top_24" WHERE "name_name_of_act"='Zhou Jinsong';
```
## Task
Generate a SQL query to answer the following question:
`How many different production codes does the episode originally aired on October 18, 1984 have?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different production codes does the episode originally aired on October 18, 1984 have?`:
```sql
                SELECT COUNT("production_code") FROM "table1_2818164_2" WHERE "original_air_date"='October 18, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What's the title of the episode with production code 104?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the title of the episode with production code 104?`:
```sql
                SELECT "title" FROM "table1_2818164_2" WHERE "production_code"=104;
```
## Task
Generate a SQL query to answer the following question:
`How many different titles does the episode originally aired on September 27, 1984 have?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different titles does the episode originally aired on September 27, 1984 have?`:
```sql
                SELECT COUNT("title") FROM "table1_2818164_2" WHERE "original_air_date"='September 27, 1984';
```
## Task
Generate a SQL query to answer the following question:
`What's the production code of the episode originally aired on February 21, 1985?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the production code of the episode originally aired on February 21, 1985?`:
```sql
                SELECT MIN("production_code") FROM "table1_2818164_2" WHERE "original_air_date"='February 21, 1985';
```
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "Bad dreams" air for the first time?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "Bad dreams" air for the first time?`:
```sql
                SELECT "original_air_date" FROM "table1_2818164_2" WHERE "title"='\"Bad Dreams\"';
```
## Task
Generate a SQL query to answer the following question:
`When did the episode titled "Vanessa's new class" air for the first time?`

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

CREATE TABLE "table1_2818164_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did the episode titled "Vanessa's new class" air for the first time?`:
```sql
                SELECT "original_air_date" FROM "table1_2818164_2" WHERE "title"='\"Vanessa''s New Class\"';
```
## Task
Generate a SQL query to answer the following question:
`when roberts 86' is the scorer what is the round?`

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

CREATE TABLE "table1_28181401_4" (
  "date" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "scorers" text,
  "attendance" real,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `when roberts 86' is the scorer what is the round?`:
```sql
                SELECT "round" FROM "table1_28181401_4" WHERE "scorers"='Roberts 86''';
```
## Task
Generate a SQL query to answer the following question:
`When semi final (2nd leg) is the round what is the highest attendance?`

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

CREATE TABLE "table1_28181401_4" (
  "date" text,
  "round" text,
  "opponent" text,
  "result" text,
  "venue" text,
  "scorers" text,
  "attendance" real,
  "match_report" text
);
### SQL
Given the database schema, here is the SQL query that answers `When semi final (2nd leg) is the round what is the highest attendance?`:
```sql
                SELECT MAX("attendance") FROM "table1_28181401_4" WHERE "round"='Semi Final (2nd leg)';
```
## Task
Generate a SQL query to answer the following question:
`When Mark Stimson started his job in 2007-08 what posiiton was the team on the table`

### 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 `When Mark Stimson started his job in 2007-08 what posiiton was the team on the table`:
```sql
                SELECT "position_in_table" FROM "managerial_changes" WHERE "replaced_by"='Mark Stimson';
```
## Task
Generate a SQL query to answer the following question:
`In football league one, what coach was hired as a replacement on 8 October 2007`

### 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 `In football league one, what coach was hired as a replacement on 8 October 2007`:
```sql
                SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='8 October 2007';
```
## Task
Generate a SQL query to answer the following question:
`One 6 November 2007 what was the manner of departure for the coach release in football league one?`

### 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 `One 6 November 2007 what was the manner of departure for the coach release in football league one?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='6 November 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for the episode written by janet leahy?`

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

CREATE TABLE "table1_2818164_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for the episode written by janet leahy?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "written_by"='Janet Leahy';
```
## Task
Generate a SQL query to answer the following question:
`What was the air date of the episode with the production code of 322?`

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

CREATE TABLE "table1_2818164_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the air date of the episode with the production code of 322?`:
```sql
                SELECT "original_air_date" FROM "table1_2818164_4" WHERE "production_code"=322;
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for the episode directed by  jay sandrich that aired October 23, 1986?`

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

CREATE TABLE "table1_2818164_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for the episode directed by  jay sandrich that aired October 23, 1986?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_2818164_4" WHERE "directed_by"='Jay Sandrich' AND "original_air_date"='October 23, 1986';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode titled "man talk"?`

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

CREATE TABLE "table1_2818164_4" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode titled "man talk"?`:
```sql
                SELECT "written_by" FROM "table1_2818164_4" WHERE "title"='\"Man Talk\"';
```
## Task
Generate a SQL query to answer the following question:
`Name the tries for when L is less than 2.0`

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

CREATE TABLE "pool_3" (
  "team" text,
  "p" real,
  "w" real,
  "d" real,
  "l" real,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the tries for when L is less than 2.0`:
```sql
                SELECT "tries_for" FROM "pool_3" WHERE "l"<2.0;
```
## Task
Generate a SQL query to answer the following question:
`Name the points for for when try diff is +19`

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

CREATE TABLE "pool_3" (
  "team" text,
  "p" real,
  "w" real,
  "d" real,
  "l" real,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for for when try diff is +19`:
```sql
                SELECT "points_for" FROM "pool_3" WHERE "try_diff"='+19';
```
## Task
Generate a SQL query to answer the following question:
`Name the most points for when tries against is 8`

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

CREATE TABLE "pool_3" (
  "team" text,
  "p" real,
  "w" real,
  "d" real,
  "l" real,
  "tries_for" real,
  "tries_against" real,
  "try_diff" text,
  "points_for" real,
  "points_against" real,
  "points_diff" text,
  "pts" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most points for when tries against is 8`:
```sql
                SELECT MAX("points_for") FROM "pool_3" WHERE "tries_against"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year shown for Betty Stove?`

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

CREATE TABLE "women_s_doubles_14_6_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year shown for Betty Stove?`:
```sql
                SELECT MAX("year") FROM "women_s_doubles_14_6_titles_8_runner_ups";
```
## Task
Generate a SQL query to answer the following question:
`Who was Betty's partner when the surface is hard?`

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

CREATE TABLE "women_s_doubles_14_6_titles_8_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Betty's partner when the surface is hard?`:
```sql
                SELECT "partner" FROM "women_s_doubles_14_6_titles_8_runner_ups" WHERE "surface"='Hard';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of drawn games by a team?`

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

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "points" real,
  "percent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of drawn games by a team?`:
```sql
                SELECT MIN("drawn") FROM "table";
```
## Task
Generate a SQL query to answer the following question:
`How many points did the team that won 5 games make?`

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

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "points" real,
  "percent" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points did the team that won 5 games make?`:
```sql
                SELECT "pts_for" FROM "table" WHERE "won"=5;
```
## Task
Generate a SQL query to answer the following question:
`How many points does the club that had 45 points against it have?`

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

CREATE TABLE "table" (
  "position" real,
  "club" text,
  "played" real,
  "won" real,
  "drawn" real,
  "lost" real,
  "pts_for" real,
  "pts_agst" real,
  "points" real,
  "percent" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points does the club that had 45 points against it have?`:
```sql
                SELECT "points" FROM "table" WHERE "pts_agst"=45;
```
## Task
Generate a SQL query to answer the following question:
`When gray wolves is the team nickname how many institutions are there?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When gray wolves is the team nickname how many institutions are there?`:
```sql
                SELECT COUNT("institution") FROM "division_ii" WHERE "team_nickname"='Gray Wolves';
```
## Task
Generate a SQL query to answer the following question:
`When sylvania, oh is the location what is the team nickname?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When sylvania, oh is the location what is the team nickname?`:
```sql
                SELECT "team_nickname" FROM "division_ii" WHERE "location"='Sylvania, OH';
```
## Task
Generate a SQL query to answer the following question:
`When indianapolis, indiana is the location what is the institution?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When indianapolis, indiana is the location what is the institution?`:
```sql
                SELECT "institution" FROM "division_ii" WHERE "location"='Indianapolis, Indiana';
```
## Task
Generate a SQL query to answer the following question:
`When private/ nonsectarian is the the affiliation what is the team nickname?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `When private/ nonsectarian is the the affiliation what is the team nickname?`:
```sql
                SELECT "team_nickname" FROM "division_ii" WHERE "affiliation"='Private/ Nonsectarian';
```
## Task
Generate a SQL query to answer the following question:
`4512 is the enrollment what is the team nickname?`

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

CREATE TABLE "division_ii" (
  "institution" text,
  "location" text,
  "founded" real,
  "affiliation" text,
  "enrollment" real,
  "team_nickname" text,
  "primary_conference" text
);
### SQL
Given the database schema, here is the SQL query that answers `4512 is the enrollment what is the team nickname?`:
```sql
                SELECT "team_nickname" FROM "division_ii" WHERE "enrollment"=4512;
```
## Task
Generate a SQL query to answer the following question:
`What championship was played with Allan Stone as a partner?`

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

CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship was played with Allan Stone as a partner?`:
```sql
                SELECT "championship" FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "partner"='Allan Stone';
```
## Task
Generate a SQL query to answer the following question:
`How many different partners played in the finale in 1973?`

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

CREATE TABLE "mixed_doubles_13_4_titles_9_runner_ups" (
  "outcome" text,
  "year" real,
  "championship" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different partners played in the finale in 1973?`:
```sql
                SELECT COUNT("partner") FROM "mixed_doubles_13_4_titles_9_runner_ups" WHERE "year"=1973;
```