cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the number of rank with the viewership of 5.96 million?`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of rank with the viewership of 5.96 million?`:
```sql
                SELECT COUNT("rank_num") FROM "weekly_ratings" WHERE "viewers_m"='5.96';
```
## Task
Generate a SQL query to answer the following question:
`What is the viewership on november 9, 2007?`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "timeslot_est" text,
  "season" text,
  "rating" text,
  "share" real,
  "18_49" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the viewership on november 9, 2007?`:
```sql
                SELECT "viewers_m" FROM "weekly_ratings" WHERE "air_date"='November 9, 2007';
```
## Task
Generate a SQL query to answer the following question:
`How many platinum points were awarded when 6 gold points were awarded?`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many platinum points were awarded when 6 gold points were awarded?`:
```sql
                SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "points_awarded_gold"=6;
```
## Task
Generate a SQL query to answer the following question:
`What was the range of finishing position for 15 awarded platinum points?`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the range of finishing position for 15 awarded platinum points?`:
```sql
                SELECT "finishing_position" FROM "ranking_points" WHERE "points_awarded_platinum"=15;
```
## Task
Generate a SQL query to answer the following question:
`How many platinum points were awarded for 5th place?`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many platinum points were awarded for 5th place?`:
```sql
                SELECT MAX("points_awarded_platinum") FROM "ranking_points" WHERE "finishing_position"='5th';
```
## Task
Generate a SQL query to answer the following question:
`How many platinum points were awarded when 70 silver points were awarded?`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many platinum points were awarded when 70 silver points were awarded?`:
```sql
                SELECT "points_awarded_platinum" FROM "ranking_points" WHERE "points_awarded_silver"=70;
```
## Task
Generate a SQL query to answer the following question:
`How many platinum points were awarded when 9 gold points were awarded?`

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

CREATE TABLE "ranking_points" (
  "finishing_position" text,
  "points_awarded_platinum" real,
  "points_awarded_gold" real,
  "points_awarded_silver" real,
  "points_awarded_satellite" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many platinum points were awarded when 9 gold points were awarded?`:
```sql
                SELECT "points_awarded_platinum" FROM "ranking_points" WHERE "points_awarded_gold"=9;
```
## Task
Generate a SQL query to answer the following question:
`How did the episode rank that had 2.65 million viewers?`

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

CREATE TABLE "season_1" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the episode rank that had 2.65 million viewers?`:
```sql
                SELECT "rank_num" FROM "season_1" WHERE "viewers_m"='2.65';
```
## Task
Generate a SQL query to answer the following question:
`What was the share for the first episode that ranked 85?`

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

CREATE TABLE "season_1" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the share for the first episode that ranked 85?`:
```sql
                SELECT MIN("share") FROM "season_1" WHERE "rank_num"='85';
```
## Task
Generate a SQL query to answer the following question:
`Which timeslot did episode no. 15 hold?`

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

CREATE TABLE "season_1" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which timeslot did episode no. 15 hold?`:
```sql
                SELECT "timeslot" FROM "season_1" WHERE "no"=15;
```
## Task
Generate a SQL query to answer the following question:
`What was the timeslot for the episode that aired on May 12, 2009?`

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

CREATE TABLE "season_2" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the timeslot for the episode that aired on May 12, 2009?`:
```sql
                SELECT "timeslot" FROM "season_2" WHERE "air_date"='May 12, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the 18-49 (rating/share) of the episode that originally aired on May 5, 2009?`

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

CREATE TABLE "season_2" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the 18-49 (rating/share) of the episode that originally aired on May 5, 2009?`:
```sql
                SELECT "18_49_rating_share" FROM "season_2" WHERE "air_date"='May 5, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What's the total number of episodes whose original airings were viewed by 1.82 million viewers?`

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

CREATE TABLE "season_2" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the total number of episodes whose original airings were viewed by 1.82 million viewers?`:
```sql
                SELECT COUNT("air_date") FROM "season_2" WHERE "viewers_m"='1.82';
```
## Task
Generate a SQL query to answer the following question:
`What's the rating of the episode originally aired on May 5, 2009?`

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

CREATE TABLE "season_2" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the rating of the episode originally aired on May 5, 2009?`:
```sql
                SELECT "rating" FROM "season_2" WHERE "air_date"='May 5, 2009';
```
## Task
Generate a SQL query to answer the following question:
`What episode was seen by 2.05 million viewers?`

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

CREATE TABLE "season_2" (
  "no" real,
  "episode" text,
  "air_date" text,
  "timeslot" text,
  "rating" text,
  "share" text,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_num" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode was seen by 2.05 million viewers?`:
```sql
                SELECT "episode" FROM "season_2" WHERE "viewers_m"='2.05';
```
## Task
Generate a SQL query to answer the following question:
` what's the extroverted, relationship-oriented where extroverted, task-oriented is director`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the extroverted, relationship-oriented where extroverted, task-oriented is director`:
```sql
                SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "extroverted_task_oriented"='Director';
```
## Task
Generate a SQL query to answer the following question:
` what's the extroverted, relationship-oriented where moderate is introverted sanguine`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the extroverted, relationship-oriented where moderate is introverted sanguine`:
```sql
                SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "moderate"='Introverted Sanguine';
```
## Task
Generate a SQL query to answer the following question:
` what's the founder where moderate is ether`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the founder where moderate is ether`:
```sql
                SELECT "founder" FROM "table1_11256021_1" WHERE "moderate"='ether';
```
## Task
Generate a SQL query to answer the following question:
` what's the extroverted, relationship-oriented where date is c. 1928`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the extroverted, relationship-oriented where date is c. 1928`:
```sql
                SELECT "extroverted_relationship_oriented" FROM "table1_11256021_1" WHERE "date"='c. 1928';
```
## Task
Generate a SQL query to answer the following question:
` who is the founder where date is c. 1900`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the founder where date is c. 1900`:
```sql
                SELECT "founder" FROM "table1_11256021_1" WHERE "date"='c. 1900';
```
## Task
Generate a SQL query to answer the following question:
` what's the people-task orientation scale where extroverted, relationship-oriented is team type`

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

CREATE TABLE "table1_11256021_1" (
  "date" text,
  "founder" text,
  "extroversion_scales" text,
  "people_task_orientation_scale" text,
  "introverted_task_oriented" text,
  "extroverted_task_oriented" text,
  "extroverted_relationship_oriented" text,
  "introverted_relationship_oriented" text,
  "moderate" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the people-task orientation scale where extroverted, relationship-oriented is team type`:
```sql
                SELECT "people_task_orientation_scale" FROM "table1_11256021_1" WHERE "extroverted_relationship_oriented"='Team Type';
```
## Task
Generate a SQL query to answer the following question:
`What is the batting team where the runs are 276?`

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

CREATE TABLE "table1_11303072_5" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the batting team where the runs are 276?`:
```sql
                SELECT "batting_team" FROM "table1_11303072_5" WHERE "runs"='276';
```
## Task
Generate a SQL query to answer the following question:
`Name the batting team at Durham`

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

CREATE TABLE "table1_11303072_5" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the batting team at Durham`:
```sql
                SELECT "batting_team" FROM "table1_11303072_5" WHERE "fielding_team"='Durham';
```
## Task
Generate a SQL query to answer the following question:
`What is the batting team with the batting partnets of thilina kandamby and rangana herath?`

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

CREATE TABLE "table1_11303072_5" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the batting team with the batting partnets of thilina kandamby and rangana herath?`:
```sql
                SELECT "batting_team" FROM "table1_11303072_5" WHERE "batting_partners"='Thilina Kandamby and Rangana Herath';
```
## Task
Generate a SQL query to answer the following question:
`What is the fielding team with 155 runs?`

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

CREATE TABLE "table1_11303072_5" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fielding team with 155 runs?`:
```sql
                SELECT "fielding_team" FROM "table1_11303072_5" WHERE "runs"='155';
```
## Task
Generate a SQL query to answer the following question:
`What is the batting partners with runs of 226?`

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

CREATE TABLE "table1_11303072_5" (
  "wicket" text,
  "runs" text,
  "batting_partners" text,
  "batting_team" text,
  "fielding_team" text,
  "venue" text,
  "season" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the batting partners with runs of 226?`:
```sql
                SELECT "batting_partners" FROM "table1_11303072_5" WHERE "runs"='226';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of David Bairstow?`

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

CREATE TABLE "most_dismissals_in_a_career" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "nationality" text,
  "catches" real,
  "stumpings" real,
  "career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of David Bairstow?`:
```sql
                SELECT "nationality" FROM "most_dismissals_in_a_career" WHERE "player"='David Bairstow';
```
## Task
Generate a SQL query to answer the following question:
`What are the players whose rank is 2?`

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

CREATE TABLE "most_dismissals_in_a_career" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "nationality" text,
  "catches" real,
  "stumpings" real,
  "career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the players whose rank is 2?`:
```sql
                SELECT "player" FROM "most_dismissals_in_a_career" WHERE "rank"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many stumpings has Paul Nixon in his career?`

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

CREATE TABLE "most_dismissals_in_a_career" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "nationality" text,
  "catches" real,
  "stumpings" real,
  "career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many stumpings has Paul Nixon in his career?`:
```sql
                SELECT "stumpings" FROM "most_dismissals_in_a_career" WHERE "player"='Paul Nixon';
```
## Task
Generate a SQL query to answer the following question:
`Where is Adam Gilchrist from?`

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

CREATE TABLE "most_dismissals_in_a_career" (
  "rank" real,
  "dismissals" real,
  "player" text,
  "nationality" text,
  "catches" real,
  "stumpings" real,
  "career_span" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is Adam Gilchrist from?`:
```sql
                SELECT "nationality" FROM "most_dismissals_in_a_career" WHERE "player"='Adam Gilchrist';
```
## Task
Generate a SQL query to answer the following question:
`What are the title that have 19.48 million u.s. viewers?`

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

CREATE TABLE "table1_1130632_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the title that have 19.48 million u.s. viewers?`:
```sql
                SELECT "title" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='19.48';
```
## Task
Generate a SQL query to answer the following question:
`Which titles have 18.73 u.s. viewers.`

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

CREATE TABLE "table1_1130632_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which titles have 18.73 u.s. viewers.`:
```sql
                SELECT "title" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='18.73';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote all the shows with 18.73 u.s. viewers?`

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

CREATE TABLE "table1_1130632_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "featured_character_s" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote all the shows with 18.73 u.s. viewers?`:
```sql
                SELECT "written_by" FROM "table1_1130632_1" WHERE "u_s_viewers_million"='18.73';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank where the area is Los Angeles?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank where the area is Los Angeles?`:
```sql
                SELECT "rank_wjc" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='Los Angeles';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of jews where the rank is 1?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of jews where the rank is 1?`:
```sql
                SELECT COUNT("number_of_jews_wjc") FROM "metropolitan_areas_with_largest_jewish_p" WHERE "rank_arda"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of jews asarb where the metro area is philadelphia?`

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

CREATE TABLE "metropolitan_areas_with_largest_jewish_p" (
  "rank_wjc" real,
  "rank_arda" real,
  "metro_area" text,
  "number_of_jews_wjc" real,
  "number_of_jews_asarb" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of jews asarb where the metro area is philadelphia?`:
```sql
                SELECT "number_of_jews_asarb" FROM "metropolitan_areas_with_largest_jewish_p" WHERE "metro_area"='Philadelphia';
```
## Task
Generate a SQL query to answer the following question:
`what are all the open 1st viii with u15 6th iv being bgs`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the open 1st viii with u15 6th iv being bgs`:
```sql
                SELECT "open_1st_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_6th_iv"='BGS';
```
## Task
Generate a SQL query to answer the following question:
`what are all the u16 2nd viii with u15 3rd iv being bbc`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the u16 2nd viii with u15 3rd iv being bbc`:
```sql
                SELECT "u16_2nd_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='BBC';
```
## Task
Generate a SQL query to answer the following question:
`what are all the open 1st viii with u15 4th iv being gt`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the open 1st viii with u15 4th iv being gt`:
```sql
                SELECT "open_1st_viii" FROM "winning_head_of_the_river_championship_e" WHERE "u15_4th_iv"='GT';
```
## Task
Generate a SQL query to answer the following question:
`how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many crew had u15 3rd iv being bgs and u15 1st iv being acgs and open 1st viii being acgs`:
```sql
                SELECT COUNT("crew") FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='BGS' AND "u15_1st_iv"='ACGS' AND "open_1st_viii"='ACGS';
```
## Task
Generate a SQL query to answer the following question:
`what are all the u15 3rd iv with u15 4th iv being bbc`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are all the u15 3rd iv with u15 4th iv being bbc`:
```sql
                SELECT "u15_3rd_iv" FROM "winning_head_of_the_river_championship_e" WHERE "u15_4th_iv"='BBC';
```
## Task
Generate a SQL query to answer the following question:
`how many open 2nd viii had u15 3rd iv being gt`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "crew" real,
  "open_1st_viii" text,
  "open_2nd_viii" text,
  "open_3rd_viii" text,
  "u16_1st_viii" text,
  "u16_2nd_viii" text,
  "u16_3rd_viii" text,
  "u15_1st_iv" text,
  "u15_2nd_iv" text,
  "u15_3rd_iv" text,
  "u15_4th_iv" text,
  "u15_5th_iv" text,
  "u15_6th_iv" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many open 2nd viii had u15 3rd iv being gt`:
```sql
                SELECT COUNT("open_2nd_viii") FROM "winning_head_of_the_river_championship_e" WHERE "u15_3rd_iv"='GT';
```
## Task
Generate a SQL query to answer the following question:
`How many schools have an enrollment of 850?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many schools have an enrollment of 850?`:
```sql
                SELECT COUNT("founded") FROM "winning_head_of_the_river_championship_e" WHERE "enrolment"=850;
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the school named Brisbane Girls' Grammar School?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the school named Brisbane Girls' Grammar School?`:
```sql
                SELECT "location" FROM "winning_head_of_the_river_championship_e" WHERE "school"='Brisbane Girls'' Grammar School';
```
## Task
Generate a SQL query to answer the following question:
`How many schools are located in South Brisbane?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many schools are located in South Brisbane?`:
```sql
                SELECT COUNT("school") FROM "winning_head_of_the_river_championship_e" WHERE "location"='South Brisbane';
```
## Task
Generate a SQL query to answer the following question:
`When was SPLC founded?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was SPLC founded?`:
```sql
                SELECT MIN("founded") FROM "winning_head_of_the_river_championship_e" WHERE "abbreviation"='SPLC';
```
## Task
Generate a SQL query to answer the following question:
`What is the enrollment of STM which has been in competition since 1990?`

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

CREATE TABLE "winning_head_of_the_river_championship_e" (
  "school" text,
  "location" text,
  "enrolment" real,
  "founded" real,
  "denomination" text,
  "day_boarding" text,
  "school_colours" text,
  "abbreviation" text,
  "in_competition_since" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the enrollment of STM which has been in competition since 1990?`:
```sql
                SELECT COUNT("enrolment") FROM "winning_head_of_the_river_championship_e" WHERE "in_competition_since"=1990 AND "abbreviation"='STM';
```
## Task
Generate a SQL query to answer the following question:
`What number is the Monaco Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is the Monaco Grand Prix?`:
```sql
                SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Monaco Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who is in the pole position for the French Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is in the pole position for the French Grand Prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='French Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the numbers for the raceways that are constructed by Ferrari, with Michael Schumacher holding the fastest lap and pole position?`:
```sql
                SELECT "rd" FROM "grands_prix" WHERE "fastest_lap"='Michael Schumacher' AND "constructor"='Ferrari' AND "pole_position"='Michael Schumacher';
```
## Task
Generate a SQL query to answer the following question:
`How many on the list are called the Austrian Grand Prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many on the list are called the Austrian Grand Prix?`:
```sql
                SELECT COUNT("rd") FROM "grands_prix" WHERE "grand_prix"='Austrian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What number is the Canadian Grand Prix on the list?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number is the Canadian Grand Prix on the list?`:
```sql
                SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the rd for the canadian grand prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rd for the canadian grand prix?`:
```sql
                SELECT "rd" FROM "grands_prix" WHERE "grand_prix"='Canadian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the fastest lap for the european grand prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fastest lap for the european grand prix?`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='European Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What is the pole position for the ferrari at the austrian grand prix?`

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

CREATE TABLE "grands_prix" (
  "rd" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the pole position for the ferrari at the austrian grand prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "constructor"='Ferrari' AND "grand_prix"='Austrian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of round 2r?`

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

CREATE TABLE "fed_cup_singles_performances_9" (
  "edition" real,
  "zone" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "outcome" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of round 2r?`:
```sql
                SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
```
## Task
Generate a SQL query to answer the following question:
`Who did Tina Pisnik verse?`

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

CREATE TABLE "fed_cup_singles_performances_9" (
  "edition" real,
  "zone" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "outcome" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did Tina Pisnik verse?`:
```sql
                SELECT "against" FROM "fed_cup_singles_performances_9" WHERE "opponent"='Tina Pisnik';
```
## Task
Generate a SQL query to answer the following question:
`How many rounds were 2r?`

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

CREATE TABLE "fed_cup_singles_performances_9" (
  "edition" real,
  "zone" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "outcome" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many rounds were 2r?`:
```sql
                SELECT COUNT("result") FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
```
## Task
Generate a SQL query to answer the following question:
`Name the outcome for round 2r`

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

CREATE TABLE "fed_cup_singles_performances_9" (
  "edition" real,
  "zone" text,
  "round" text,
  "date" text,
  "against" text,
  "surface" text,
  "opponent" text,
  "outcome" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the outcome for round 2r`:
```sql
                SELECT "outcome" FROM "fed_cup_singles_performances_9" WHERE "round"='2R';
```
## Task
Generate a SQL query to answer the following question:
`what's the night rank with viewers (m) of 6.63`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_m" text,
  "timeslot_rank" real,
  "night_rank" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the night rank with viewers (m) of 6.63`:
```sql
                SELECT "night_rank" FROM "weekly_ratings" WHERE "viewers_m"='6.63';
```
## Task
Generate a SQL query to answer the following question:
`what's the overall rank with viewers (m) of 7.44`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_m" text,
  "timeslot_rank" real,
  "night_rank" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the overall rank with viewers (m) of 7.44`:
```sql
                SELECT "overall_rank" FROM "weekly_ratings" WHERE "viewers_m"='7.44';
```
## Task
Generate a SQL query to answer the following question:
`what's the overall rank with rating/share 18–49 of 2.1/5`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_m" text,
  "timeslot_rank" real,
  "night_rank" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the overall rank with rating/share 18–49 of 2.1/5`:
```sql
                SELECT COUNT("overall_rank") FROM "weekly_ratings" WHERE "rating_share_18_49"='2.1/5';
```
## Task
Generate a SQL query to answer the following question:
`what's the night rank with rating of 6.2`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_m" text,
  "timeslot_rank" real,
  "night_rank" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the night rank with rating of 6.2`:
```sql
                SELECT "night_rank" FROM "weekly_ratings" WHERE "rating"='6.2';
```
## Task
Generate a SQL query to answer the following question:
`what's the viewers (m) with episode of "legacy"`

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

CREATE TABLE "weekly_ratings" (
  "num" real,
  "episode" text,
  "air_date" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_m" text,
  "timeslot_rank" real,
  "night_rank" text,
  "overall_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the viewers (m) with episode of "legacy"`:
```sql
                SELECT "viewers_m" FROM "weekly_ratings" WHERE "episode"='\"Legacy\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of group b winner for francavilla?`

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

CREATE TABLE "table1_1137142_1" (
  "season" text,
  "group_a_winner" text,
  "group_b_winner" text,
  "group_c_winner" text,
  "group_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of group b winner for francavilla?`:
```sql
                SELECT COUNT("group_b_winner") FROM "table1_1137142_1" WHERE "group_c_winner"='Francavilla';
```
## Task
Generate a SQL query to answer the following question:
`What is the group a winner for modena?`

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

CREATE TABLE "table1_1137142_1" (
  "season" text,
  "group_a_winner" text,
  "group_b_winner" text,
  "group_c_winner" text,
  "group_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the group a winner for modena?`:
```sql
                SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';
```
## Task
Generate a SQL query to answer the following question:
`What is the group a winner for vis pesaro?`

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

CREATE TABLE "table1_1137142_1" (
  "season" text,
  "group_a_winner" text,
  "group_b_winner" text,
  "group_c_winner" text,
  "group_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the group a winner for vis pesaro?`:
```sql
                SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_c_winner"='Vis Pesaro';
```
## Task
Generate a SQL query to answer the following question:
`What group a winner was for nocerina?`

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

CREATE TABLE "table1_1137142_1" (
  "season" text,
  "group_a_winner" text,
  "group_b_winner" text,
  "group_c_winner" text,
  "group_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What group a winner was for nocerina?`:
```sql
                SELECT "group_a_winner" FROM "table1_1137142_1" WHERE "group_d_winner"='Nocerina';
```
## Task
Generate a SQL query to answer the following question:
`What was the group d winner for modena?`

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

CREATE TABLE "table1_1137142_1" (
  "season" text,
  "group_a_winner" text,
  "group_b_winner" text,
  "group_c_winner" text,
  "group_d_winner" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the group d winner for modena?`:
```sql
                SELECT "group_d_winner" FROM "table1_1137142_1" WHERE "group_b_winner"='Modena';
```
## Task
Generate a SQL query to answer the following question:
`Who had the fastest lap at the brazilian grand prix?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had the fastest lap at the brazilian grand prix?`:
```sql
                SELECT "fastest_lap" FROM "grands_prix" WHERE "grand_prix"='Brazilian Grand Prix';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the pole position at the monaco grand prix?`

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

CREATE TABLE "grands_prix" (
  "round" real,
  "grand_prix" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_driver" text,
  "winning_constructor" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the pole position at the monaco grand prix?`:
```sql
                SELECT "pole_position" FROM "grands_prix" WHERE "grand_prix"='Monaco Grand Prix';
```