cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When the present is mogu what is 1st?`

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

CREATE TABLE "table1_27298240_28" (
  "pronoun" text,
  "present" text,
  "1st" text,
  "2nd" text,
  "perfect" text,
  "aorist" text,
  "imperfect" text,
  "pluperfect" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the present is mogu what is 1st?`:
```sql
                SELECT "1st" FROM "table1_27298240_28" WHERE "present"='mogu';
```
## Task
Generate a SQL query to answer the following question:
`What is 2nd when ćemo moći is 1st?`

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

CREATE TABLE "table1_27298240_28" (
  "pronoun" text,
  "present" text,
  "1st" text,
  "2nd" text,
  "perfect" text,
  "aorist" text,
  "imperfect" text,
  "pluperfect" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is 2nd when ćemo moći is 1st?`:
```sql
                SELECT "2nd" FROM "table1_27298240_28" WHERE "1st"='ćemo moći';
```
## Task
Generate a SQL query to answer the following question:
`What is the R when the total is 1 and the position is fw?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "the_championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the R when the total is 1 and the position is fw?`:
```sql
                SELECT "r" FROM "assists" WHERE "total"=1 AND "position"='FW';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest league cup?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "the_championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest league cup?`:
```sql
                SELECT MIN("league_cup") FROM "assists";
```
## Task
Generate a SQL query to answer the following question:
`What is the position for the player becchio?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "the_championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for the player becchio?`:
```sql
                SELECT "position" FROM "assists" WHERE "player"='Becchio';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the r 4?`

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

CREATE TABLE "assists" (
  "r" real,
  "player" text,
  "position" text,
  "the_championship" real,
  "fa_cup" real,
  "league_cup" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the r 4?`:
```sql
                SELECT COUNT("league_cup") FROM "assists" WHERE "r"=4;
```
## Task
Generate a SQL query to answer the following question:
`What is the parent for peak cima tosa?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the parent for peak cima tosa?`:
```sql
                SELECT "parent" FROM "see_also" WHERE "peak"='Cima Tosa';
```
## Task
Generate a SQL query to answer the following question:
`What is the elevation for the peak wildspitze in Austria?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elevation for the peak wildspitze in Austria?`:
```sql
                SELECT MIN("elevation_m") FROM "see_also" WHERE "location"='Austria' AND "peak"='Wildspitze';
```
## Task
Generate a SQL query to answer the following question:
`What is the elevation for number 39?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elevation for number 39?`:
```sql
                SELECT MAX("elevation_m") FROM "see_also" WHERE "no"=39;
```
## Task
Generate a SQL query to answer the following question:
`What is the col location for the location of france / italy?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the col location for the location of france / italy?`:
```sql
                SELECT "col_location" FROM "see_also" WHERE "location"='France / Italy';
```
## Task
Generate a SQL query to answer the following question:
`What is the col location with a col height (m) of 1107?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the col location with a col height (m) of 1107?`:
```sql
                SELECT "col_location" FROM "see_also" WHERE "col_height_m"=1107;
```
## Task
Generate a SQL query to answer the following question:
`Which location has an elevation of 3798?`

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

CREATE TABLE "see_also" (
  "no" real,
  "peak" text,
  "location" text,
  "elevation_m" real,
  "prominence_m" real,
  "col_height_m" real,
  "col_location" text,
  "parent" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has an elevation of 3798?`:
```sql
                SELECT "location" FROM "see_also" WHERE "elevation_m"=3798;
```
## Task
Generate a SQL query to answer the following question:
`What is the title when the catalog number is cal01 / 0091037137319?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title when the catalog number is cal01 / 0091037137319?`:
```sql
                SELECT "title" FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL01 / 0091037137319';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the title am/pm callanetics?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the title am/pm callanetics?`:
```sql
                SELECT COUNT("studio") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "title"='AM/PM Callanetics';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the catalog number cal04 / 0091037553546?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the catalog number cal04 / 0091037553546?`:
```sql
                SELECT COUNT("title") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL04 / 0091037553546';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the catalog number cal04 / 0091037553546?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the catalog number cal04 / 0091037553546?`:
```sql
                SELECT COUNT("copyright_information") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL04 / 0091037553546';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the catalog number cal01 / 0091037137319?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the catalog number cal01 / 0091037137319?`:
```sql
                SELECT COUNT("copyright_information") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL01 / 0091037137319';
```
## Task
Generate a SQL query to answer the following question:
`how many times was the catalog number cal05 / 0091037137357?`

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

CREATE TABLE "official_callanetics_dv_ds_by_callan_pin" (
  "year" real,
  "title" text,
  "format" text,
  "studio" text,
  "release_date" text,
  "copyright_information" text,
  "catalog_number" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times was the catalog number cal05 / 0091037137357?`:
```sql
                SELECT COUNT("title") FROM "official_callanetics_dv_ds_by_callan_pin" WHERE "catalog_number"='CAL05 / 0091037137357';
```
## Task
Generate a SQL query to answer the following question:
`who directed the episode that elaine ko wrote?`

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

CREATE TABLE "table1_27332038_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `who directed the episode that elaine ko wrote?`:
```sql
                SELECT "directed_by" FROM "table1_27332038_1" WHERE "written_by"='Elaine Ko';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode with production code "2arg01" originally aired?`

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

CREATE TABLE "table1_27332038_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode with production code "2arg01" originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_27332038_1" WHERE "production_code"='2ARG01';
```
## Task
Generate a SQL query to answer the following question:
`what is the title of the episode with production code "2arg09"?`

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

CREATE TABLE "table1_27332038_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title of the episode with production code "2arg09"?`:
```sql
                SELECT "title" FROM "table1_27332038_1" WHERE "production_code"='2ARG09';
```
## Task
Generate a SQL query to answer the following question:
`when was the episode with production code "2arg24" originally aired?`

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

CREATE TABLE "table1_27332038_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `when was the episode with production code "2arg24" originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_27332038_1" WHERE "production_code"='2ARG24';
```
## Task
Generate a SQL query to answer the following question:
`What episode had a share percentage of 41.5%?`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had a share percentage of 41.5%?`:
```sql
                SELECT "episode" FROM "series_7_2013" WHERE "share_pct"='41.5';
```
## Task
Generate a SQL query to answer the following question:
`What date was the show's weekly ranking 12?`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the show's weekly ranking 12?`:
```sql
                SELECT "date" FROM "series_7_2013" WHERE "weekly_rank"=12;
```
## Task
Generate a SQL query to answer the following question:
`How many total itv viewers were there for the episode with official itv ratings of 10.24 million?`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total itv viewers were there for the episode with official itv ratings of 10.24 million?`:
```sql
                SELECT "total_itv_viewers_millions" FROM "series_7_2013" WHERE "official_itv_rating_millions"='10.24';
```
## Task
Generate a SQL query to answer the following question:
`How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total itv viewers were there for the episode with official itv hd ratings of 1.12 million?`:
```sql
                SELECT "total_itv_viewers_millions" FROM "series_7_2013" WHERE "official_itv_hd_rating_millions"='1.12';
```
## Task
Generate a SQL query to answer the following question:
`What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the official itv ratings in millions for the episode with a total of 8.53 million itv viewers`:
```sql
                SELECT "official_itv_rating_millions" FROM "series_7_2013" WHERE "total_itv_viewers_millions"='8.53';
```
## Task
Generate a SQL query to answer the following question:
`What were the official itv ratings in millions for semi-final 5?`

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

CREATE TABLE "series_7_2013" (
  "episode" text,
  "date" text,
  "official_itv_rating_millions" text,
  "weekly_rank" real,
  "share_pct" text,
  "official_itv_hd_rating_millions" text,
  "total_itv_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the official itv ratings in millions for semi-final 5?`:
```sql
                SELECT "official_itv_rating_millions" FROM "series_7_2013" WHERE "episode"='Semi-final 5';
```
## Task
Generate a SQL query to answer the following question:
`What is the club when the chairman is roger lambrecht?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "club" text,
  "chairman" text,
  "current_manager" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club when the chairman is roger lambrecht?`:
```sql
                SELECT "club" FROM "personnel_and_sponsoring" WHERE "chairman"='Roger Lambrecht';
```
## Task
Generate a SQL query to answer the following question:
`What is the team captain when the shirt sponser is quick?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "club" text,
  "chairman" text,
  "current_manager" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team captain when the shirt sponser is quick?`:
```sql
                SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='Quick';
```
## Task
Generate a SQL query to answer the following question:
`Who is the chairman when the current manager is bob peeters?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "club" text,
  "chairman" text,
  "current_manager" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the chairman when the current manager is bob peeters?`:
```sql
                SELECT "chairman" FROM "personnel_and_sponsoring" WHERE "current_manager"='Bob Peeters';
```
## Task
Generate a SQL query to answer the following question:
`What is the club when the shirt sponsor is e-lotto.be?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "club" text,
  "chairman" text,
  "current_manager" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the club when the shirt sponsor is e-lotto.be?`:
```sql
                SELECT "club" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='e-lotto.be';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team captain when the club is k.f.c. germinal beerschot?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "club" text,
  "chairman" text,
  "current_manager" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team captain when the club is k.f.c. germinal beerschot?`:
```sql
                SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "club"='K.F.C. Germinal Beerschot';
```
## Task
Generate a SQL query to answer the following question:
`What is the varsity name of the university of mcgill university?`

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

CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" (
  "university" text,
  "varsity_name" text,
  "city" text,
  "province" text,
  "founded" real,
  "soccer_stadium" text,
  "stadium_capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the varsity name of the university of mcgill university?`:
```sql
                SELECT "varsity_name" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "university"='McGill University';
```
## Task
Generate a SQL query to answer the following question:
`What is the soccer stadium with the varsity name is citadins?`

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

CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" (
  "university" text,
  "varsity_name" text,
  "city" text,
  "province" text,
  "founded" real,
  "soccer_stadium" text,
  "stadium_capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the soccer stadium with the varsity name is citadins?`:
```sql
                SELECT "soccer_stadium" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "varsity_name"='Citadins';
```
## Task
Generate a SQL query to answer the following question:
`What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?`

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

CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" (
  "university" text,
  "varsity_name" text,
  "city" text,
  "province" text,
  "founded" real,
  "soccer_stadium" text,
  "stadium_capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the province where the soccer statium is terrain #2 of complexe sportif claude-robillard?`:
```sql
                SELECT "province" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "soccer_stadium"='terrain #2 of Complexe sportif Claude-Robillard';
```
## Task
Generate a SQL query to answer the following question:
`What is the province for with the stadium capacity of 5100?`

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

CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" (
  "university" text,
  "varsity_name" text,
  "city" text,
  "province" text,
  "founded" real,
  "soccer_stadium" text,
  "stadium_capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the province for with the stadium capacity of 5100?`:
```sql
                SELECT "province" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "stadium_capacity"=5100;
```
## Task
Generate a SQL query to answer the following question:
`What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?`

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

CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec" (
  "university" text,
  "varsity_name" text,
  "city" text,
  "province" text,
  "founded" real,
  "soccer_stadium" text,
  "stadium_capacity" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the university where the soccer stadium is terrain #2 of complexe sportif claude-robillard?`:
```sql
                SELECT "university" FROM "r_seau_du_sport_tudiant_du_qu_bec" WHERE "soccer_stadium"='terrain #2 of Complexe sportif Claude-Robillard';
```
## Task
Generate a SQL query to answer the following question:
`When was the date of appointment by Hugo Broos?`

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

CREATE TABLE "during_regular_season" (
  "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 was the date of appointment by Hugo Broos?`:
```sql
                SELECT "date_of_appointment" FROM "during_regular_season" WHERE "replaced_by"='Hugo Broos';
```
## Task
Generate a SQL query to answer the following question:
`How many times did outgoing manager Bart de Roover vacated a position?`

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

CREATE TABLE "during_regular_season" (
  "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 `How many times did outgoing manager Bart de Roover vacated a position?`:
```sql
                SELECT COUNT("date_of_vacancy") FROM "during_regular_season" WHERE "outgoing_manager"='Bart De Roover';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager of the team in 15th position that was sacked?`

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

CREATE TABLE "during_regular_season" (
  "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 `Who was the outgoing manager of the team in 15th position that was sacked?`:
```sql
                SELECT "outgoing_manager" FROM "during_regular_season" WHERE "manner_of_departure"='Sacked' AND "position_in_table"='15th';
```
## Task
Generate a SQL query to answer the following question:
`What was the team's position in table when Danny OST was the outgoing manager?`

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

CREATE TABLE "during_regular_season" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the team's position in table when Danny OST was the outgoing manager?`:
```sql
                SELECT "position_in_table" FROM "during_regular_season" WHERE "outgoing_manager"='Danny Ost';
```
## Task
Generate a SQL query to answer the following question:
`how many maximum # when viewers (m) is 8.01`

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

CREATE TABLE "ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many maximum # when viewers (m) is 8.01`:
```sql
                SELECT MAX("num") FROM "ratings" WHERE "viewers_m"='8.01';
```
## Task
Generate a SQL query to answer the following question:
`how many number 18-49 (rating/share) when viewers (m) is 7.35`

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

CREATE TABLE "ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many number 18-49 (rating/share) when viewers (m) is 7.35`:
```sql
                SELECT "18_49_rating_share" FROM "ratings" WHERE "viewers_m"='7.35';
```
## Task
Generate a SQL query to answer the following question:
`what is episode "take two"  air date`

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

CREATE TABLE "ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is episode "take two"  air date`:
```sql
                SELECT "air_date" FROM "ratings" WHERE "episode"='\"Take Two\"';
```
## Task
Generate a SQL query to answer the following question:
`when air date is october 14, 2010 what are all 18-49 (rating/share date.`

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

CREATE TABLE "ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "weekly_rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `when air date is october 14, 2010 what are all 18-49 (rating/share date.`:
```sql
                SELECT "18_49_rating_share" FROM "ratings" WHERE "air_date"='October 14, 2010';
```
## Task
Generate a SQL query to answer the following question:
`How many outgoing managers were replaced by Bob Peeters?`

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

CREATE TABLE "during_summer_break" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many outgoing managers were replaced by Bob Peeters?`:
```sql
                SELECT COUNT("outgoing_manager") FROM "during_summer_break" WHERE "replaced_by"='Bob Peeters';
```
## Task
Generate a SQL query to answer the following question:
`Who replaced Michel Preud'homme?`

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

CREATE TABLE "during_summer_break" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who replaced Michel Preud'homme?`:
```sql
                SELECT "replaced_by" FROM "during_summer_break" WHERE "outgoing_manager"='Michel Preud''homme';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the manager of Cercle Brugge?`

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

CREATE TABLE "during_summer_break" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the manager of Cercle Brugge?`:
```sql
                SELECT "manner_of_departure" FROM "during_summer_break" WHERE "team"='Cercle Brugge';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager of Charleroi?`

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

CREATE TABLE "during_summer_break" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager of Charleroi?`:
```sql
                SELECT "outgoing_manager" FROM "during_summer_break" WHERE "team"='Charleroi';
```
## Task
Generate a SQL query to answer the following question:
`What sponsor has the head coach Samad Marfavi?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kit_maker" text,
  "shirt_sponsor" text,
  "past_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sponsor has the head coach Samad Marfavi?`:
```sql
                SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "head_coach"='Samad Marfavi';
```
## Task
Generate a SQL query to answer the following question:
`What sponsor has merooj kit maker and captain Pejman Nouri?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kit_maker" text,
  "shirt_sponsor" text,
  "past_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What sponsor has merooj kit maker and captain Pejman Nouri?`:
```sql
                SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "kit_maker"='Merooj' AND "team_captain"='Pejman Nouri';
```
## Task
Generate a SQL query to answer the following question:
`Which team has Ali Daei as head coach?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kit_maker" text,
  "shirt_sponsor" text,
  "past_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has Ali Daei as head coach?`:
```sql
                SELECT "team" FROM "personnel_and_sponsoring" WHERE "head_coach"='Ali Daei';
```
## Task
Generate a SQL query to answer the following question:
`What is the kit maker for team foolad?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kit_maker" text,
  "shirt_sponsor" text,
  "past_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the kit maker for team foolad?`:
```sql
                SELECT "kit_maker" FROM "personnel_and_sponsoring" WHERE "team"='Foolad';
```
## Task
Generate a SQL query to answer the following question:
`How many head coaches named Darius Mikaeili?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kit_maker" text,
  "shirt_sponsor" text,
  "past_season" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many head coaches named Darius Mikaeili?`:
```sql
                SELECT COUNT("head_coach") FROM "personnel_and_sponsoring" WHERE "team_captain"='Darius Mikaeili';
```
## Task
Generate a SQL query to answer the following question:
`Who is the outgoing head coach when the incoming head coach is abdollah veysi?`

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

CREATE TABLE "in_season" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" real,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the outgoing head coach when the incoming head coach is abdollah veysi?`:
```sql
                SELECT "outgoing_head_coach" FROM "in_season" WHERE "incoming_head_coach"='Abdollah Veysi';
```
## Task
Generate a SQL query to answer the following question:
`When is the date of appointment when the position in table is 16?`

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

CREATE TABLE "in_season" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" real,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `When is the date of appointment when the position in table is 16?`:
```sql
                SELECT "date_of_appointment" FROM "in_season" WHERE "position_in_table"=16;
```
## Task
Generate a SQL query to answer the following question:
`How many times is the incoming head coach abdollah veysi?`

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

CREATE TABLE "in_season" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" real,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the incoming head coach abdollah veysi?`:
```sql
                SELECT COUNT("team") FROM "in_season" WHERE "incoming_head_coach"='Abdollah Veysi';
```
## Task
Generate a SQL query to answer the following question:
`What is the team with the date of vacancy 8 dec 2010?`

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

CREATE TABLE "in_season" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" real,
  "incoming_head_coach" text,
  "date_of_appointment" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team with the date of vacancy 8 dec 2010?`:
```sql
                SELECT "team" FROM "in_season" WHERE "date_of_vacancy"='8 Dec 2010';
```
## Task
Generate a SQL query to answer the following question:
`What is the manner of departure when the incoming head coach is mohammad khakpour?`

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

CREATE TABLE "in_season" (
  "team" text,
  "outgoing_head_coach" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "position_in_table" real,
  "incoming_head_coach" 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 incoming head coach is mohammad khakpour?`:
```sql
                SELECT "manner_of_departure" FROM "in_season" WHERE "incoming_head_coach"='Mohammad Khakpour';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S viewers watched the episode titled "Mended Hearts"?`

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

CREATE TABLE "table1_27389024_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S viewers watched the episode titled "Mended Hearts"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_27389024_2" WHERE "title"='\"Mended Hearts\"';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S. viewers watched the episode titled "Lost Boys"?`

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

CREATE TABLE "table1_27389024_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode titled "Lost Boys"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_27389024_2" WHERE "title"='\"Lost Boys\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode that was written by Rama Stagner? `

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

CREATE TABLE "table1_27389024_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode that was written by Rama Stagner? `:
```sql
                SELECT "original_air_date" FROM "table1_27389024_2" WHERE "written_by"='Rama Stagner';
```
## Task
Generate a SQL query to answer the following question:
`For the #19 car, what was their finish position?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "grid" real,
  "car" real,
  "driver" text,
  "constructor" text,
  "manufacturer" text,
  "laps" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the #19 car, what was their finish position?`:
```sql
                SELECT MAX("pos") FROM "race_results" WHERE "car"=19;
```
## Task
Generate a SQL query to answer the following question:
`How many constructors had a grid of 13?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "grid" real,
  "car" real,
  "driver" text,
  "constructor" text,
  "manufacturer" text,
  "laps" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many constructors had a grid of 13?`:
```sql
                SELECT COUNT("constructor") FROM "race_results" WHERE "grid"=13;
```
## Task
Generate a SQL query to answer the following question:
`What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?`

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

CREATE TABLE "race_results" (
  "pos" real,
  "grid" real,
  "car" real,
  "driver" text,
  "constructor" text,
  "manufacturer" text,
  "laps" real,
  "laps_led" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum finish position of the car whose constructor was Joe Gibbs Racing, driven by Denny Hamlin?`:
```sql
                SELECT MAX("pos") FROM "race_results" WHERE "constructor"='Joe Gibbs Racing' AND "driver"='Denny Hamlin';
```
## Task
Generate a SQL query to answer the following question:
`List all titles with a 57 series number.`

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

CREATE TABLE "table1_27397948_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `List all titles with a 57 series number.`:
```sql
                SELECT "title" FROM "table1_27397948_2" WHERE "no_in_series"=57;
```
## Task
Generate a SQL query to answer the following question:
`What's the highest season number with a series number of 47?`

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

CREATE TABLE "table1_27397948_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest season number with a series number of 47?`:
```sql
                SELECT MAX("no_in_season") FROM "table1_27397948_2" WHERE "no_in_series"=47;
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer for season episode 7?`

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

CREATE TABLE "table1_27397948_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer for season episode 7?`:
```sql
                SELECT "written_by" FROM "table1_27397948_2" WHERE "no_in_season"=7;
```
## Task
Generate a SQL query to answer the following question:
`How many millions of US viewers were there for the episode "No Safe Place"?`

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

CREATE TABLE "table1_27397948_2" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of US viewers were there for the episode "No Safe Place"?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_27397948_2" WHERE "title"='\"No Safe Place\"';
```
## Task
Generate a SQL query to answer the following question:
`Name who directed when the viewers is 5.86`

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

CREATE TABLE "table1_27401228_1" (
  "no" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name who directed when the viewers is 5.86`:
```sql
                SELECT "directed_by" FROM "table1_27401228_1" WHERE "u_s_viewers_million"='5.86';
```
## Task
Generate a SQL query to answer the following question:
`Where is lootos põlva from?`

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

CREATE TABLE "2013_naiste_meistriliiga" (
  "club" text,
  "location" text,
  "ground" text,
  "manager" text,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is lootos põlva from?`:
```sql
                SELECT "location" FROM "2013_naiste_meistriliiga" WHERE "club"='Lootos Põlva';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manager for lootos põlva?`

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

CREATE TABLE "2013_naiste_meistriliiga" (
  "club" text,
  "location" text,
  "ground" text,
  "manager" text,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manager for lootos põlva?`:
```sql
                SELECT "manager" FROM "2013_naiste_meistriliiga" WHERE "club"='Lootos Põlva';
```
## Task
Generate a SQL query to answer the following question:
`Where is  lootospark from?`

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

CREATE TABLE "2013_naiste_meistriliiga" (
  "club" text,
  "location" text,
  "ground" text,
  "manager" text,
  "titles" real,
  "last_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is  lootospark from?`:
```sql
                SELECT "location" FROM "2013_naiste_meistriliiga" WHERE "ground"='Lootospark';
```