cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the rnd for hap sharp`

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

CREATE TABLE "table1_27561503_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rnd for hap sharp`:
```sql
                SELECT MIN("rnd") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='Hap Sharp';
```
## Task
Generate a SQL query to answer the following question:
`Name the results for #23 lotus`

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

CREATE TABLE "table1_27561503_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the results for #23 lotus`:
```sql
                SELECT COUNT("results") FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='#23 Lotus';
```
## Task
Generate a SQL query to answer the following question:
`Name the sports 2.0 winning team for hap sharp and castle rock`

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

CREATE TABLE "table1_27561503_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sports 2.0 winning team for hap sharp and castle rock`:
```sql
                SELECT "sports_2_0_winning_team" FROM "table1_27561503_2" WHERE "sports_2_0_winning_team"='Hap Sharp' AND "circuit"='Castle Rock';
```
## Task
Generate a SQL query to answer the following question:
`Name results for herb wetanson`

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

CREATE TABLE "table1_27561503_2" (
  "rnd" real,
  "circuit" text,
  "sports_2_0_winning_team" text,
  "sports_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "gt_2_0_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name results for herb wetanson`:
```sql
                SELECT "results" FROM "table1_27561503_2" WHERE "gt_2_0_winning_team"='Herb Wetanson';
```
## Task
Generate a SQL query to answer the following question:
`What was the province if the electorate was Collingwood?`

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

CREATE TABLE "table1_27592654_2" (
  "member" text,
  "electorate" text,
  "province" text,
  "m_ps_term" text,
  "election_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the province if the electorate was Collingwood?`:
```sql
                SELECT "province" FROM "table1_27592654_2" WHERE "electorate"='Collingwood';
```
## Task
Generate a SQL query to answer the following question:
`What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?`

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

CREATE TABLE "table1_27592654_2" (
  "member" text,
  "electorate" text,
  "province" text,
  "m_ps_term" text,
  "election_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?`:
```sql
                SELECT "province" FROM "table1_27592654_2" WHERE "election_date"='5 Cannot handle non-empty timestamp argument! 1861';
```
## Task
Generate a SQL query to answer the following question:
`Name the races for final placing being 5th`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums" real,
  "f_laps" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the races for final placing being 5th`:
```sql
                SELECT "races" FROM "career_summary" WHERE "final_placing"='5th';
```
## Task
Generate a SQL query to answer the following question:
`Name the post poles for 4 podiums`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team_name" text,
  "races" real,
  "poles" real,
  "wins" real,
  "podiums" real,
  "f_laps" real,
  "points" real,
  "final_placing" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the post poles for 4 podiums`:
```sql
                SELECT MAX("poles") FROM "career_summary" WHERE "podiums"=4;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for Barreto when his song choice was "Olhar 43"?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for Barreto when his song choice was "Olhar 43"?`:
```sql
                SELECT "result" FROM "performances" WHERE "song_choice"='\"Olhar 43\"';
```
## Task
Generate a SQL query to answer the following question:
`What was Barreto's song choice when the theme was samba?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Barreto's song choice when the theme was samba?`:
```sql
                SELECT "song_choice" FROM "performances" WHERE "theme"='Samba';
```
## Task
Generate a SQL query to answer the following question:
`What was Barreto's song choice where the original artist was Patricia Marx?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was Barreto's song choice where the original artist was Patricia Marx?`:
```sql
                SELECT "song_choice" FROM "performances" WHERE "original_artist"='Patricia Marx';
```
## Task
Generate a SQL query to answer the following question:
`In which week # was the original artist of Barreto's song choice was Leila Pinheiro?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which week # was the original artist of Barreto's song choice was Leila Pinheiro?`:
```sql
                SELECT "week_num" FROM "performances" WHERE "original_artist"='Leila Pinheiro';
```
## Task
Generate a SQL query to answer the following question:
`Who is the original artist of "É Preciso Saber Viver"?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the original artist of "É Preciso Saber Viver"?`:
```sql
                SELECT "original_artist" FROM "performances" WHERE "song_choice"='\"É Preciso Saber Viver\"';
```
## Task
Generate a SQL query to answer the following question:
`When did the earliest tournament happened?`

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

CREATE TABLE "doubles_19_9_titles_10_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the earliest tournament happened?`:
```sql
                SELECT MIN("year") FROM "doubles_19_9_titles_10_runners_up";
```
## Task
Generate a SQL query to answer the following question:
`Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?`

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

CREATE TABLE "doubles_19_9_titles_10_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was Petrova's partner where she scored 6–2, 3–6, 6–7 (7-9)?`:
```sql
                SELECT "partner" FROM "doubles_19_9_titles_10_runners_up" WHERE "score"='6–2, 3–6, 6–7 (7-9)';
```
## Task
Generate a SQL query to answer the following question:
`Who were Petrova's opponents with Vania King?`

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

CREATE TABLE "doubles_19_9_titles_10_runners_up" (
  "outcome" text,
  "year" real,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were Petrova's opponents with Vania King?`:
```sql
                SELECT "opponents" FROM "doubles_19_9_titles_10_runners_up" WHERE "partner"='Vania King';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes titled "Blue in the face" were directed by Sean McNamara?`

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

CREATE TABLE "table1_27610775_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes titled "Blue in the face" were directed by Sean McNamara?`:
```sql
                SELECT COUNT("series_num") FROM "table1_27610775_1" WHERE "directed_by"='Sean McNamara' AND "title"='\"Blue in the Face\"';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode with the production code 211?`

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

CREATE TABLE "table1_27610775_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode with the production code 211?`:
```sql
                SELECT "written_by" FROM "table1_27610775_1" WHERE "prod_code"=211;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum production code of the episode directed by Sean McNamara?`

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

CREATE TABLE "table1_27610775_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum production code of the episode directed by Sean McNamara?`:
```sql
                SELECT MAX("prod_code") FROM "table1_27610775_1" WHERE "directed_by"='Sean McNamara';
```
## Task
Generate a SQL query to answer the following question:
`How many audition city's are there with an episode air date of June 24, 2010?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many audition city's are there with an episode air date of June 24, 2010?`:
```sql
                SELECT COUNT("audition_city") FROM "regional_auditions" WHERE "episode_air_date"='June 24, 2010';
```
## Task
Generate a SQL query to answer the following question:
`List all episode air dates that auditioned at Nego Quirido Sambadrome?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates that auditioned at Nego Quirido Sambadrome?`:
```sql
                SELECT "episode_air_date" FROM "regional_auditions" WHERE "audition_venue"='Nego Quirido Sambadrome';
```
## Task
Generate a SQL query to answer the following question:
`List all episode air dates where Luiza Possi was the guest fourth judge?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates where Luiza Possi was the guest fourth judge?`:
```sql
                SELECT "episode_air_date" FROM "regional_auditions" WHERE "guest_fourth_judge"='Luiza Possi';
```
## Task
Generate a SQL query to answer the following question:
`How many episode air dates are there for auditioning city Rio De Janeiro?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episode air dates are there for auditioning city Rio De Janeiro?`:
```sql
                SELECT COUNT("episode_air_date") FROM "regional_auditions" WHERE "audition_city"='Rio de Janeiro';
```
## Task
Generate a SQL query to answer the following question:
`List all episode air dates whose audition venues were Nego Quirido Sambadrome?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all episode air dates whose audition venues were Nego Quirido Sambadrome?`:
```sql
                SELECT "episode_air_date" FROM "regional_auditions" WHERE "audition_venue"='Nego Quirido Sambadrome';
```
## Task
Generate a SQL query to answer the following question:
`Where was the audition venue where Peninha was the guest fourth judge?`

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

CREATE TABLE "regional_auditions" (
  "episode_air_date" text,
  "audition_city" text,
  "audition_date" text,
  "audition_venue" text,
  "guest_fourth_judge" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the audition venue where Peninha was the guest fourth judge?`:
```sql
                SELECT "audition_venue" FROM "regional_auditions" WHERE "guest_fourth_judge"='Peninha';
```
## Task
Generate a SQL query to answer the following question:
`Which song was picked that was originally performed by Marisa Monte?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which song was picked that was originally performed by Marisa Monte?`:
```sql
                SELECT "song_choice" FROM "performances" WHERE "original_artist"='Marisa Monte';
```
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the song choice "Sozinho"?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the song choice "Sozinho"?`:
```sql
                SELECT "original_artist" FROM "performances" WHERE "song_choice"='\"Sozinho\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the performance of the song by Caetano Veloso?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the performance of the song by Caetano Veloso?`:
```sql
                SELECT "result" FROM "performances" WHERE "original_artist"='Caetano Veloso';
```
## Task
Generate a SQL query to answer the following question:
`What was the order # of the theme Male Singers?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the order # of the theme Male Singers?`:
```sql
                SELECT "order_num" FROM "performances" WHERE "theme"='Male Singers';
```
## Task
Generate a SQL query to answer the following question:
`What was the theme when original artist Rosana's song was performed?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the theme when original artist Rosana's song was performed?`:
```sql
                SELECT "theme" FROM "performances" WHERE "original_artist"='Rosana';
```
## Task
Generate a SQL query to answer the following question:
`How many different weeks are there in order number 4 that were judge's choice?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different weeks are there in order number 4 that were judge's choice?`:
```sql
                SELECT COUNT("week_num") FROM "performances" WHERE "theme"='Judge''s Choice' AND "order_num"='4';
```
## Task
Generate a SQL query to answer the following question:
`What Marisa Monte song choice was song during top 5?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Marisa Monte song choice was song during top 5?`:
```sql
                SELECT "song_choice" FROM "performances" WHERE "week_num"='Top 5' AND "original_artist"='Marisa Monte';
```
## Task
Generate a SQL query to answer the following question:
`Who was the original artist of the Top 12 Men theme?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the original artist of the Top 12 Men theme?`:
```sql
                SELECT "original_artist" FROM "performances" WHERE "theme"='Top 12 Men';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the Top 12 Men theme?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the Top 12 Men theme?`:
```sql
                SELECT "result" FROM "performances" WHERE "theme"='Top 12 Men';
```
## Task
Generate a SQL query to answer the following question:
`What week number was the result bottom 3?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What week number was the result bottom 3?`:
```sql
                SELECT "week_num" FROM "performances" WHERE "result"='Bottom 3';
```
## Task
Generate a SQL query to answer the following question:
`How many points per game did he have when he had 1.5 assists per game?`

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

CREATE TABLE "international_stats" (
  "tournament" text,
  "games_played" real,
  "points_per_game" text,
  "rebounds_per_game" text,
  "assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points per game did he have when he had 1.5 assists per game?`:
```sql
                SELECT "points_per_game" FROM "international_stats" WHERE "assists_per_game"='1.5';
```
## Task
Generate a SQL query to answer the following question:
`How many rebounds per game did he have at the 2006 fiba world championship?`

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

CREATE TABLE "international_stats" (
  "tournament" text,
  "games_played" real,
  "points_per_game" text,
  "rebounds_per_game" text,
  "assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds per game did he have at the 2006 fiba world championship?`:
```sql
                SELECT "rebounds_per_game" FROM "international_stats" WHERE "tournament"='2006 FIBA World Championship';
```
## Task
Generate a SQL query to answer the following question:
`How many rebounds per game did he have at the 2003 eurobasket?`

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

CREATE TABLE "international_stats" (
  "tournament" text,
  "games_played" real,
  "points_per_game" text,
  "rebounds_per_game" text,
  "assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rebounds per game did he have at the 2003 eurobasket?`:
```sql
                SELECT "rebounds_per_game" FROM "international_stats" WHERE "tournament"='2003 EuroBasket';
```
## Task
Generate a SQL query to answer the following question:
`How many assists per game did he have when he had 6.8 points per game?`

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

CREATE TABLE "international_stats" (
  "tournament" text,
  "games_played" real,
  "points_per_game" text,
  "rebounds_per_game" text,
  "assists_per_game" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many assists per game did he have when he had 6.8 points per game?`:
```sql
                SELECT "assists_per_game" FROM "international_stats" WHERE "points_per_game"='6.8';
```
## Task
Generate a SQL query to answer the following question:
`which is the production code when the number of the episode in series is 87? `

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `which is the production code when the number of the episode in series is 87? `:
```sql
                SELECT "prod_code" FROM "table1_27622417_1" WHERE "no_in_series"=87;
```
## Task
Generate a SQL query to answer the following question:
`how many directors had the episode called "magic unmasked"?`

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many directors had the episode called "magic unmasked"?`:
```sql
                SELECT COUNT("directed_by") FROM "table1_27622417_1" WHERE "title"='\"Magic Unmasked\"';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of the episode in the series whose production code is 405?`

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of the episode in the series whose production code is 405?`:
```sql
                SELECT "no_in_series" FROM "table1_27622417_1" WHERE "prod_code"='405';
```
## Task
Generate a SQL query to answer the following question:
`when was the premiere of the episode whose production code is 415? `

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the premiere of the episode whose production code is 415? `:
```sql
                SELECT "original_u_s_air_date" FROM "table1_27622417_1" WHERE "prod_code"='415';
```
## Task
Generate a SQL query to answer the following question:
`who were the writers in the episode whose production code was 411? `

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `who were the writers in the episode whose production code was 411? `:
```sql
                SELECT "written_by" FROM "table1_27622417_1" WHERE "prod_code"='411';
```
## Task
Generate a SQL query to answer the following question:
`who were the director of the episode whose number in the season is 17? `

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

CREATE TABLE "table1_27622417_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "u_s_viewers_millions" text,
  "original_u_s_air_date" text,
  "prod_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `who were the director of the episode whose number in the season is 17? `:
```sql
                SELECT "directed_by" FROM "table1_27622417_1" WHERE "no_in_season"=17;
```
## Task
Generate a SQL query to answer the following question:
`Name the currency for negotiable debt being 1300`

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

CREATE TABLE "main_issuers" (
  "currency" text,
  "country" text,
  "generic_name_or_nickname" text,
  "rating_s_p_moodys" text,
  "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
  "government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
  "issuer" text,
  "internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the currency for negotiable debt being 1300`:
```sql
                SELECT "currency" FROM "main_issuers" WHERE "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent"=1300;
```
## Task
Generate a SQL query to answer the following question:
`Name the country that has the yen`

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

CREATE TABLE "main_issuers" (
  "currency" text,
  "country" text,
  "generic_name_or_nickname" text,
  "rating_s_p_moodys" text,
  "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
  "government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
  "issuer" text,
  "internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country that has the yen`:
```sql
                SELECT "country" FROM "main_issuers" WHERE "currency"='Yen';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of countries that have the us dollar`

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

CREATE TABLE "main_issuers" (
  "currency" text,
  "country" text,
  "generic_name_or_nickname" text,
  "rating_s_p_moodys" text,
  "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
  "government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
  "issuer" text,
  "internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of countries that have the us dollar`:
```sql
                SELECT COUNT("country") FROM "main_issuers" WHERE "currency"='US dollar';
```
## Task
Generate a SQL query to answer the following question:
`Name the country for the us dollar`

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

CREATE TABLE "main_issuers" (
  "currency" text,
  "country" text,
  "generic_name_or_nickname" text,
  "rating_s_p_moodys" text,
  "negotiable_debt_at_mid_2005_us_dollar_bn_equivalent" real,
  "government_financial_liabilities_as_pct_of_gdp_end_2003_source_oecd" text,
  "issuer" text,
  "internet_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country for the us dollar`:
```sql
                SELECT "country" FROM "main_issuers" WHERE "currency"='US dollar';
```
## Task
Generate a SQL query to answer the following question:
`How many teams have a head coach named mahdi ali?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams have a head coach named mahdi ali?`:
```sql
                SELECT COUNT("team") FROM "personnel_and_sponsorship" WHERE "head_coach"='Mahdi Ali';
```
## Task
Generate a SQL query to answer the following question:
`How many captains have the kitmaker as n/a?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many captains have the kitmaker as n/a?`:
```sql
                SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "kitmaker"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`How many kitmaker correspond to team ittihad kalba?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many kitmaker correspond to team ittihad kalba?`:
```sql
                SELECT COUNT("kitmaker") FROM "personnel_and_sponsorship" WHERE "team"='Ittihad Kalba';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the captain when teh shirt sponsor is n/a?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the captain when teh shirt sponsor is n/a?`:
```sql
                SELECT "captain" FROM "personnel_and_sponsorship" WHERE "shirt_sponsor"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`How many captains when the shirt sponsor is toshiba?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many captains when the shirt sponsor is toshiba?`:
```sql
                SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "shirt_sponsor"='Toshiba';
```
## Task
Generate a SQL query to answer the following question:
`Who is the chairman when teh captain is fawzi bashir?`

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

CREATE TABLE "personnel_and_sponsorship" (
  "team" text,
  "chairman" text,
  "head_coach" text,
  "captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the chairman when teh captain is fawzi bashir?`:
```sql
                SELECT "chairman" FROM "personnel_and_sponsorship" WHERE "captain"='Fawzi Bashir';
```
## Task
Generate a SQL query to answer the following question:
`Which season had f/laps is 0 and races is 2?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had f/laps is 0 and races is 2?`:
```sql
                SELECT "season" FROM "career_summary" WHERE "f_laps"=0 AND "races"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many entries are there for points for the 6th position?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are there for points for the 6th position?`:
```sql
                SELECT COUNT("points") FROM "career_summary" WHERE "position"='6th';
```
## Task
Generate a SQL query to answer the following question:
`How many season are shown for the 2nd position?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many season are shown for the 2nd position?`:
```sql
                SELECT COUNT("season") FROM "career_summary" WHERE "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What are the wins for the 7th position?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the wins for the 7th position?`:
```sql
                SELECT "wins" FROM "career_summary" WHERE "position"='7th';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for the austria formel 3 cup series?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for the austria formel 3 cup series?`:
```sql
                SELECT "position" FROM "career_summary" WHERE "series"='Austria Formel 3 Cup';
```
## Task
Generate a SQL query to answer the following question:
`How many different PPI does the model with ppcm of 87 have?`

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

CREATE TABLE "retina_display_models" (
  "model" text,
  "ppi_pixels_per_inch" real,
  "ppcm_pixels_per_cm" real,
  "resolution" text,
  "typical_viewing_distance_in_cm" text,
  "pixels_per_degree_ppd" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many different PPI does the model with ppcm of 87 have?`:
```sql
                SELECT COUNT("ppi_pixels_per_inch") FROM "retina_display_models" WHERE "ppcm_pixels_per_cm"=87;
```
## Task
Generate a SQL query to answer the following question:
`What's the resolution of the model with a PPD of 69?`

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

CREATE TABLE "retina_display_models" (
  "model" text,
  "ppi_pixels_per_inch" real,
  "ppcm_pixels_per_cm" real,
  "resolution" text,
  "typical_viewing_distance_in_cm" text,
  "pixels_per_degree_ppd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's the resolution of the model with a PPD of 69?`:
```sql
                SELECT "resolution" FROM "retina_display_models" WHERE "pixels_per_degree_ppd"=69;
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSA music class for the mascot that is the lancers?`

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

CREATE TABLE "current_membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "colors" text,
  "enrollment" real,
  "ihsa_classes_2_3_4" text,
  "ihsa_music_class" text,
  "ihsa_football_class" text,
  "ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSA music class for the mascot that is the lancers?`:
```sql
                SELECT "ihsa_music_class" FROM "current_membership" WHERE "mascot"='Lancers';
```
## Task
Generate a SQL query to answer the following question:
`What is the IHSA cheerleading class for the enrollment of 2600?`

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

CREATE TABLE "current_membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "colors" text,
  "enrollment" real,
  "ihsa_classes_2_3_4" text,
  "ihsa_music_class" text,
  "ihsa_football_class" text,
  "ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the IHSA cheerleading class for the enrollment of 2600?`:
```sql
                SELECT "ihsa_cheerleading_class" FROM "current_membership" WHERE "enrollment"=2600;
```
## Task
Generate a SQL query to answer the following question:
`What are the colors for the enrollment of 2020?`

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

CREATE TABLE "current_membership" (
  "school" text,
  "location" text,
  "mascot" text,
  "colors" text,
  "enrollment" real,
  "ihsa_classes_2_3_4" text,
  "ihsa_music_class" text,
  "ihsa_football_class" text,
  "ihsa_cheerleading_class" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the colors for the enrollment of 2020?`:
```sql
                SELECT "colors" FROM "current_membership" WHERE "enrollment"=2020;
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest number for old membership total?`

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

CREATE TABLE "ice_hockey" (
  "conference" text,
  "old_membership_total" real,
  "new_membership_total" real,
  "net_change" text,
  "members_added" real,
  "members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest number for old membership total?`:
```sql
                SELECT MIN("old_membership_total") FROM "ice_hockey";
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of members lost when the  net change is −1?`

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

CREATE TABLE "ice_hockey" (
  "conference" text,
  "old_membership_total" real,
  "new_membership_total" real,
  "net_change" text,
  "members_added" real,
  "members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of members lost when the  net change is −1?`:
```sql
                SELECT MIN("members_lost") FROM "ice_hockey" WHERE "net_change"='−1';
```
## Task
Generate a SQL query to answer the following question:
`What is the new membership total if the members lost is bigger than 1.0?`

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

CREATE TABLE "ice_hockey" (
  "conference" text,
  "old_membership_total" real,
  "new_membership_total" real,
  "net_change" text,
  "members_added" real,
  "members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the new membership total if the members lost is bigger than 1.0?`:
```sql
                SELECT MAX("new_membership_total") FROM "ice_hockey" WHERE "members_lost">1.0;
```
## Task
Generate a SQL query to answer the following question:
`How many members were added at the nchc (men only) conference?`

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

CREATE TABLE "ice_hockey" (
  "conference" text,
  "old_membership_total" real,
  "new_membership_total" real,
  "net_change" text,
  "members_added" real,
  "members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many members were added at the nchc (men only) conference?`:
```sql
                SELECT "members_added" FROM "ice_hockey" WHERE "conference"='NCHC (men only)';
```
## Task
Generate a SQL query to answer the following question:
`What was the new membership total at the nchc (men only) conference?`

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

CREATE TABLE "ice_hockey" (
  "conference" text,
  "old_membership_total" real,
  "new_membership_total" real,
  "net_change" text,
  "members_added" real,
  "members_lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the new membership total at the nchc (men only) conference?`:
```sql
                SELECT "new_membership_total" FROM "ice_hockey" WHERE "conference"='NCHC (men only)';
```
## Task
Generate a SQL query to answer the following question:
`What is the outgoing manager when the incoming manager is štefan tarkovič?`

### 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,
  "table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the outgoing manager when the incoming manager is štefan tarkovič?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "incoming_manager"='Štefan Tarkovič';
```
## Task
Generate a SQL query to answer the following question:
`How many dates of vacancy were on 30 october 2010?`

### 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,
  "table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many dates of vacancy were on 30 october 2010?`:
```sql
                SELECT COUNT("team") FROM "managerial_changes" WHERE "date_of_vacancy"='30 October 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure when the date of vacancy is 28 september 2010?`

### 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,
  "table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the manner of departure when the date of vacancy is 28 september 2010?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_vacancy"='28 September 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of appointment when the date of vacancy is 24 november 2010?`

### 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,
  "table" text,
  "incoming_manager" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of appointment when the date of vacancy is 24 november 2010?`:
```sql
                SELECT "date_of_appointment" FROM "managerial_changes" WHERE "date_of_vacancy"='24 November 2010';
```