cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the lowest attandance recorded at Cappielow?`

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

CREATE TABLE "attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest attandance recorded at Cappielow?`:
```sql
                SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='Cappielow';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attendance at a game played by St. Johnstone?`

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

CREATE TABLE "attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attendance at a game played by St. Johnstone?`:
```sql
                SELECT MAX("highest") FROM "attendances" WHERE "team"='St. Johnstone';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest attandence at a Hamilton Academical game?`

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

CREATE TABLE "attendances" (
  "team" text,
  "stadium" text,
  "capacity" real,
  "highest" real,
  "lowest" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest attandence at a Hamilton Academical game?`:
```sql
                SELECT MIN("highest") FROM "attendances" WHERE "team"='Hamilton Academical';
```
## Task
Generate a SQL query to answer the following question:
` who is the champion where semi-finalist #2 is na and location is morrisville, nc`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the champion where semi-finalist #2 is na and location is morrisville, nc`:
```sql
                SELECT "champion" FROM "division_i" WHERE "semi_finalist_num2"='NA' AND "location"='Morrisville, NC';
```
## Task
Generate a SQL query to answer the following question:
` what's the score where year is 2007`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` what's the score where year is 2007`:
```sql
                SELECT "score" FROM "division_i" WHERE "year"='2007';
```
## Task
Generate a SQL query to answer the following question:
`what is the total number of semi-finalist #2 where runner-up is east carolina`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the total number of semi-finalist #2 where runner-up is east carolina`:
```sql
                SELECT COUNT("semi_finalist_num2") FROM "division_i" WHERE "runner_up"='East Carolina';
```
## Task
Generate a SQL query to answer the following question:
` who is the semi-finalist #1 where runner-up is elon university`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the semi-finalist #1 where runner-up is elon university`:
```sql
                SELECT "semi_finalist_num1" FROM "division_i" WHERE "runner_up"='Elon University';
```
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where year is 2004 and champion is north carolina state`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the runner-up where year is 2004 and champion is north carolina state`:
```sql
                SELECT "runner_up" FROM "division_i" WHERE "year"='2004' AND "champion"='North Carolina State';
```
## Task
Generate a SQL query to answer the following question:
` who is the runner-up where location is ellenton, fl and year is 2004`

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

CREATE TABLE "division_i" (
  "year" text,
  "champion" text,
  "score" text,
  "runner_up" text,
  "location" text,
  "semi_finalist_num1" text,
  "semi_finalist_num2" text
);
### SQL
Given the database schema, here is the SQL query that answers ` who is the runner-up where location is ellenton, fl and year is 2004`:
```sql
                SELECT "runner_up" FROM "division_i" WHERE "location"='Ellenton, FL' AND "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation  by marriage with numer of jamaicans granted british citizenship being 3165`

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

CREATE TABLE "population_and_distribution" (
  "year" real,
  "numer_of_jamaicans_granted_british_citizenship" real,
  "naturalisation_by_residence" real,
  "naturalisation_by_marriage" real,
  "registration_of_a_minor_child" real,
  "registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the naturalisation  by marriage with numer of jamaicans granted british citizenship being 3165`:
```sql
                SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "numer_of_jamaicans_granted_british_citizenship"=3165;
```
## Task
Generate a SQL query to answer the following question:
` how many numer of jamaicans granted british citizenship with naturalisation  by marriage being 1060`

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

CREATE TABLE "population_and_distribution" (
  "year" real,
  "numer_of_jamaicans_granted_british_citizenship" real,
  "naturalisation_by_residence" real,
  "naturalisation_by_marriage" real,
  "registration_of_a_minor_child" real,
  "registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers ` how many numer of jamaicans granted british citizenship with naturalisation  by marriage being 1060`:
```sql
                SELECT COUNT("numer_of_jamaicans_granted_british_citizenship") FROM "population_and_distribution" WHERE "naturalisation_by_marriage"=1060;
```
## Task
Generate a SQL query to answer the following question:
`what's the naturalisation by marriage with regbeingtration of a minor child being 114`

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

CREATE TABLE "population_and_distribution" (
  "year" real,
  "numer_of_jamaicans_granted_british_citizenship" real,
  "naturalisation_by_residence" real,
  "naturalisation_by_marriage" real,
  "registration_of_a_minor_child" real,
  "registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the naturalisation by marriage with regbeingtration of a minor child being 114`:
```sql
                SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=114;
```
## Task
Generate a SQL query to answer the following question:
`what's the numer of jamaicans granted british  citizenship with naturalisation by residence being 927`

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

CREATE TABLE "population_and_distribution" (
  "year" real,
  "numer_of_jamaicans_granted_british_citizenship" real,
  "naturalisation_by_residence" real,
  "naturalisation_by_marriage" real,
  "registration_of_a_minor_child" real,
  "registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the numer of jamaicans granted british  citizenship with naturalisation by residence being 927`:
```sql
                SELECT "numer_of_jamaicans_granted_british_citizenship" FROM "population_and_distribution" WHERE "naturalisation_by_residence"=927;
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum year with registration of a minor child being 281`

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

CREATE TABLE "population_and_distribution" (
  "year" real,
  "numer_of_jamaicans_granted_british_citizenship" real,
  "naturalisation_by_residence" real,
  "naturalisation_by_marriage" real,
  "registration_of_a_minor_child" real,
  "registration_by_other_means" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum year with registration of a minor child being 281`:
```sql
                SELECT MAX("year") FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=281;
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had their first air date on March 6, 2008?`

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

CREATE TABLE "table1_11220799_2" (
  "episode_titles" text,
  "first_air_date" text,
  "reward" text,
  "immunity" text,
  "exiled" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had their first air date on March 6, 2008?`:
```sql
                SELECT COUNT("episode_titles") FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';
```
## Task
Generate a SQL query to answer the following question:
`What were the results of episodes with the first air date of March 6, 2008?`

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

CREATE TABLE "table1_11220799_2" (
  "episode_titles" text,
  "first_air_date" text,
  "reward" text,
  "immunity" text,
  "exiled" text,
  "eliminated" text,
  "vote" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the results of episodes with the first air date of March 6, 2008?`:
```sql
                SELECT "finish" FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched episode 15?`

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

CREATE TABLE "table1_11230937_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 viewers watched episode 15?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "no_in_season"=15;
```
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the "Throwing Heat" episode?`

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

CREATE TABLE "table1_11230937_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 viewers watched the "Throwing Heat" episode?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "title"='\"Throwing Heat\"';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of viewers watched the episode directed by Anthony Hemingway?`

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

CREATE TABLE "table1_11230937_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 viewers watched the episode directed by Anthony Hemingway?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "directed_by"='Anthony Hemingway';
```
## Task
Generate a SQL query to answer the following question:
`The Catalog number is 80809 what is the title?`

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

CREATE TABLE "official_callanetics_videos" (
  "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 `The Catalog number is 80809 what is the title?`:
```sql
                SELECT "title" FROM "official_callanetics_videos" WHERE "catalog_number"='80809';
```
## Task
Generate a SQL query to answer the following question:
`where title is beginning callanetics , what is the total of format ?`

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

CREATE TABLE "official_callanetics_videos" (
  "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 `where title is beginning callanetics , what is the total of format ?`:
```sql
                SELECT COUNT("format") FROM "official_callanetics_videos" WHERE "title"='Beginning Callanetics';
```
## Task
Generate a SQL query to answer the following question:
`where catalog number is 81258 , what are all the studio ?`

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

CREATE TABLE "official_callanetics_videos" (
  "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 `where catalog number is 81258 , what are all the studio ?`:
```sql
                SELECT "studio" FROM "official_callanetics_videos" WHERE "catalog_number"='81258';
```
## Task
Generate a SQL query to answer the following question:
`where title is am/pm callanetics , what are all the copyright information?`

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

CREATE TABLE "official_callanetics_videos" (
  "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 `where title is am/pm callanetics , what are all the copyright information?`:
```sql
                SELECT "copyright_information" FROM "official_callanetics_videos" WHERE "title"='AM/PM Callanetics';
```
## Task
Generate a SQL query to answer the following question:
`What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)?`

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

CREATE TABLE "1908_1994_new_south_wales_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the GF attendance at the location of Sydney Football Stadium, Sydney (6)?`:
```sql
                SELECT COUNT("gf_attendance") FROM "1908_1994_new_south_wales_rugby_league" WHERE "location"='Sydney Football Stadium, Sydney (6)';
```
## Task
Generate a SQL query to answer the following question:
`Which losing team had a score of 24-12?`

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

CREATE TABLE "1908_1994_new_south_wales_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which losing team had a score of 24-12?`:
```sql
                SELECT "losing_team" FROM "1908_1994_new_south_wales_rugby_league" WHERE "score"='24-12';
```
## Task
Generate a SQL query to answer the following question:
`What was the losing team in the 1993 season?`

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

CREATE TABLE "1908_1994_new_south_wales_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the losing team in the 1993 season?`:
```sql
                SELECT "losing_team" FROM "1908_1994_new_south_wales_rugby_league" WHERE "season"=1993;
```
## Task
Generate a SQL query to answer the following question:
`What was the compression ration when the engine was Wasp Jr. T1B2?`

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

CREATE TABLE "specifications_for_different_r_985_wasp_" (
  "engine" text,
  "power_continuous" text,
  "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text,
  "power_takeoff" text,
  "compression_ratio" text,
  "supercharger_gear_ratio" text,
  "octane_rating" text,
  "dry_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the compression ration when the engine was Wasp Jr. T1B2?`:
```sql
                SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "engine"='Wasp Jr. T1B2';
```
## Task
Generate a SQL query to answer the following question:
`What is the compression ration when the continuous power is hp (kw) at 2,200 RPM and the octane rating is 80/87?`

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

CREATE TABLE "specifications_for_different_r_985_wasp_" (
  "engine" text,
  "power_continuous" text,
  "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text,
  "power_takeoff" text,
  "compression_ratio" text,
  "supercharger_gear_ratio" text,
  "octane_rating" text,
  "dry_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the compression ration when the continuous power is hp (kw) at 2,200 RPM and the octane rating is 80/87?`:
```sql
                SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "power_continuous"='hp (kW) at 2,200 RPM' AND "octane_rating"='80/87';
```
## Task
Generate a SQL query to answer the following question:
`What is the compression ratio when the continuous power is  hp (KW) at 2,200 RPM and the critical altitude is at sea level?`

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

CREATE TABLE "specifications_for_different_r_985_wasp_" (
  "engine" text,
  "power_continuous" text,
  "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text,
  "power_takeoff" text,
  "compression_ratio" text,
  "supercharger_gear_ratio" text,
  "octane_rating" text,
  "dry_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the compression ratio when the continuous power is  hp (KW) at 2,200 RPM and the critical altitude is at sea level?`:
```sql
                SELECT COUNT("compression_ratio") FROM "specifications_for_different_r_985_wasp_" WHERE "power_continuous"='hp (kW) at 2,200 RPM' AND "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details"='sea level';
```
## Task
Generate a SQL query to answer the following question:
`When the engine is Wasp Jr. T1B2, what is the number needed for takeoff power?`

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

CREATE TABLE "specifications_for_different_r_985_wasp_" (
  "engine" text,
  "power_continuous" text,
  "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text,
  "power_takeoff" text,
  "compression_ratio" text,
  "supercharger_gear_ratio" text,
  "octane_rating" text,
  "dry_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the engine is Wasp Jr. T1B2, what is the number needed for takeoff power?`:
```sql
                SELECT COUNT("power_takeoff") FROM "specifications_for_different_r_985_wasp_" WHERE "engine"='Wasp Jr. T1B2';
```
## Task
Generate a SQL query to answer the following question:
`When critical altitude is sea level, what is the compression ration for a supercharger gear ratio of 7:1?`

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

CREATE TABLE "specifications_for_different_r_985_wasp_" (
  "engine" text,
  "power_continuous" text,
  "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details" text,
  "power_takeoff" text,
  "compression_ratio" text,
  "supercharger_gear_ratio" text,
  "octane_rating" text,
  "dry_weight" text
);
### SQL
Given the database schema, here is the SQL query that answers `When critical altitude is sea level, what is the compression ration for a supercharger gear ratio of 7:1?`:
```sql
                SELECT "compression_ratio" FROM "specifications_for_different_r_985_wasp_" WHERE "critical_altitude_this_is_the_highest_altitude_at_which_the_engine_can_achieve_its_full_continuous_power_rating_above_this_altitude_power_falls_off_with_height_as_with_a_naturally_aspirated_engine_see_superchargernum_altitude_effects_for_details"='sea level' AND "supercharger_gear_ratio"='7:1';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes aired on october 27, 2008`

### 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" text,
  "viewers" text,
  "weekly_rank_for_living" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes aired on october 27, 2008`:
```sql
                SELECT COUNT("episode") FROM "weekly_ratings" WHERE "air_date"='October 27, 2008';
```
## Task
Generate a SQL query to answer the following question:
`The episode "chapter five: dressed to kill" had a weekly ranking of what?`

### 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" text,
  "viewers" text,
  "weekly_rank_for_living" text
);
### SQL
Given the database schema, here is the SQL query that answers `The episode "chapter five: dressed to kill" had a weekly ranking of what?`:
```sql
                SELECT "weekly_rank_for_living" FROM "weekly_ratings" WHERE "episode"='\"Chapter Five: Dressed to Kill\"';
```
## Task
Generate a SQL query to answer the following question:
`what is the most # that aired on september 29, 2008?`

### 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" text,
  "viewers" text,
  "weekly_rank_for_living" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the most # that aired on september 29, 2008?`:
```sql
                SELECT MAX("num") FROM "weekly_ratings" WHERE "air_date"='September 29, 2008';
```
## Task
Generate a SQL query to answer the following question:
`How many seasons did the canterbury bulldogs (8) win?`

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

CREATE TABLE "1998_present_national_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons did the canterbury bulldogs (8) win?`:
```sql
                SELECT COUNT("season") FROM "1998_present_national_rugby_league" WHERE "winning_team"='Canterbury Bulldogs (8)';
```
## Task
Generate a SQL query to answer the following question:
`How many teams lost at the sydney football stadium, sydney (11)?`

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

CREATE TABLE "1998_present_national_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams lost at the sydney football stadium, sydney (11)?`:
```sql
                SELECT COUNT("losing_team") FROM "1998_present_national_rugby_league" WHERE "location"='Sydney Football Stadium, Sydney (11)';
```
## Task
Generate a SQL query to answer the following question:
`What was the date that the st. george-illawarra dragons lost?`

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

CREATE TABLE "1998_present_national_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date that the st. george-illawarra dragons lost?`:
```sql
                SELECT "grand_final_date" FROM "1998_present_national_rugby_league" WHERE "losing_team"='St. George-Illawarra Dragons';
```
## Task
Generate a SQL query to answer the following question:
`Brett kimmorley, who was chosen for the clive churchill medal belonged to what team?`

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

CREATE TABLE "1998_present_national_rugby_league" (
  "season" real,
  "grand_final_date" text,
  "winning_team" text,
  "score" text,
  "losing_team" text,
  "location" text,
  "gf_attendance" real,
  "clive_churchill_medal" text
);
### SQL
Given the database schema, here is the SQL query that answers `Brett kimmorley, who was chosen for the clive churchill medal belonged to what team?`:
```sql
                SELECT "winning_team" FROM "1998_present_national_rugby_league" WHERE "clive_churchill_medal"='Brett Kimmorley';
```
## Task
Generate a SQL query to answer the following question:
`What time slots have a 6.3 rating`

### 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,
  "time_slot_est" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time slots have a 6.3 rating`:
```sql
                SELECT "time_slot_est" FROM "weekly_ratings" WHERE "rating"='6.3';
```
## Task
Generate a SQL query to answer the following question:
`What time slot is the episode "the way we weren't" in`

### 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,
  "time_slot_est" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time slot is the episode "the way we weren't" in`:
```sql
                SELECT "time_slot_est" FROM "weekly_ratings" WHERE "episode"='\"The Way We Weren''t\"';
```
## Task
Generate a SQL query to answer the following question:
`What time slot is the episode "who's your daddy" in`

### 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,
  "time_slot_est" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time slot is the episode "who's your daddy" in`:
```sql
                SELECT "time_slot_est" FROM "weekly_ratings" WHERE "episode"='\"Who''s Your Daddy\"';
```
## Task
Generate a SQL query to answer the following question:
`Which air date had an 11 share`

### 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,
  "time_slot_est" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which air date had an 11 share`:
```sql
                SELECT "air_date" FROM "weekly_ratings" WHERE "share"=11;
```
## Task
Generate a SQL query to answer the following question:
`Which air date had the 18-49 rating/share of 3.3/9`

### 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,
  "time_slot_est" text,
  "rating" text,
  "share" real,
  "18_49_rating_share" text,
  "viewers_m" text,
  "rank_overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which air date had the 18-49 rating/share of 3.3/9`:
```sql
                SELECT "air_date" FROM "weekly_ratings" WHERE "18_49_rating_share"='3.3/9';
```
## Task
Generate a SQL query to answer the following question:
`Which characters had their first experience in the episode "consequences"?`

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

CREATE TABLE "table1_11240028_3" (
  "character" text,
  "portrayed_by" text,
  "relationship" text,
  "first_appearance" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which characters had their first experience in the episode "consequences"?`:
```sql
                SELECT "character" FROM "table1_11240028_3" WHERE "first_appearance"='\"Consequences\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode had the last appearances of the late wife of mac taylor?`

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

CREATE TABLE "table1_11240028_3" (
  "character" text,
  "portrayed_by" text,
  "relationship" text,
  "first_appearance" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode had the last appearances of the late wife of mac taylor?`:
```sql
                SELECT "last_appearance" FROM "table1_11240028_3" WHERE "relationship"='Late wife of Mac Taylor';
```
## Task
Generate a SQL query to answer the following question:
`Which characters were portrayed by reed garrett?`

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

CREATE TABLE "table1_11240028_3" (
  "character" text,
  "portrayed_by" text,
  "relationship" text,
  "first_appearance" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which characters were portrayed by reed garrett?`:
```sql
                SELECT "portrayed_by" FROM "table1_11240028_3" WHERE "character"='Reed Garrett';
```
## Task
Generate a SQL query to answer the following question:
`How many characters were portrayed by the informant of don flack?`

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

CREATE TABLE "table1_11240028_3" (
  "character" text,
  "portrayed_by" text,
  "relationship" text,
  "first_appearance" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many characters were portrayed by the informant of don flack?`:
```sql
                SELECT COUNT("portrayed_by") FROM "table1_11240028_3" WHERE "relationship"='Informant of Don Flack';
```
## Task
Generate a SQL query to answer the following question:
`What episode was the last appearance of the character, rikki sandoval?`

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

CREATE TABLE "table1_11240028_3" (
  "character" text,
  "portrayed_by" text,
  "relationship" text,
  "first_appearance" text,
  "last_appearance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode was the last appearance of the character, rikki sandoval?`:
```sql
                SELECT "last_appearance" FROM "table1_11240028_3" WHERE "character"='Rikki Sandoval';
```
## Task
Generate a SQL query to answer the following question:
`On which episode did actress Sela Ward make her last appearance?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which episode did actress Sela Ward make her last appearance?`:
```sql
                SELECT "last_appearance" FROM "main_characters" WHERE "portrayed_by"='Sela Ward';
```
## Task
Generate a SQL query to answer the following question:
`Which actors first appeared in "Zoo York"?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which actors first appeared in "Zoo York"?`:
```sql
                SELECT "portrayed_by" FROM "main_characters" WHERE "first_appearance"='\"Zoo York\"';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes did actress Vanessa Ferlito appear in?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes did actress Vanessa Ferlito appear in?`:
```sql
                SELECT "episodes" FROM "main_characters" WHERE "portrayed_by"='Vanessa Ferlito';
```
## Task
Generate a SQL query to answer the following question:
`Which actors first appeared in episode "Blink" 1, 2, 3?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which actors first appeared in episode "Blink" 1, 2, 3?`:
```sql
                SELECT "portrayed_by" FROM "main_characters" WHERE "first_appearance"='\"Blink\" 1, 2, 3';
```
## Task
Generate a SQL query to answer the following question:
`What was the duration of Robert Joy's portrayal?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the duration of Robert Joy's portrayal?`:
```sql
                SELECT COUNT("duration") FROM "main_characters" WHERE "portrayed_by"='Robert Joy';
```
## Task
Generate a SQL query to answer the following question:
`Which episode did actor A. J. Buckley last appear in?`

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

CREATE TABLE "main_characters" (
  "character" text,
  "portrayed_by" text,
  "first_appearance" text,
  "last_appearance" text,
  "duration" text,
  "episodes" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode did actor A. J. Buckley last appear in?`:
```sql
                SELECT "last_appearance" FROM "main_characters" WHERE "portrayed_by"='A. J. Buckley';
```
## Task
Generate a SQL query to answer the following question:
`What is the least top division titles?`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012_13" text,
  "first_season_in_top_division" text,
  "number_of_seasons_in_top_division" real,
  "number_of_seasons_in_the_premier_league" real,
  "first_season_of_current_spell_in_top_division" text,
  "top_division_titles" real,
  "last_top_division_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least top division titles?`:
```sql
                SELECT MIN("top_division_titles") FROM "clubs";
```
## Task
Generate a SQL query to answer the following question:
`What is the least number of seasons in top division?`

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

CREATE TABLE "clubs" (
  "club" text,
  "position_in_2012_13" text,
  "first_season_in_top_division" text,
  "number_of_seasons_in_top_division" real,
  "number_of_seasons_in_the_premier_league" real,
  "first_season_of_current_spell_in_top_division" text,
  "top_division_titles" real,
  "last_top_division_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least number of seasons in top division?`:
```sql
                SELECT MIN("number_of_seasons_in_top_division") FROM "clubs";
```
## Task
Generate a SQL query to answer the following question:
`How many viewers (millions) were there for rank (week) 20?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many viewers (millions) were there for rank (week) 20?`:
```sql
                SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "rank_week"='20';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank (timeslot) with the episode name "dangerous liaisons"?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank (timeslot) with the episode name "dangerous liaisons"?`:
```sql
                SELECT "rank_timeslot" FROM "u_s_nielsen_ratings" WHERE "episode"='\"Dangerous Liaisons\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank (night) for having viewers (millions) 5.25?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest rank (night) for having viewers (millions) 5.25?`:
```sql
                SELECT MIN("rank_night") FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='5.25';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the episode named "conference call"?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the episode named "conference call"?`:
```sql
                SELECT COUNT("num") FROM "u_s_nielsen_ratings" WHERE "episode"='\"Conference Call\"';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the rank (night) 11?`

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

CREATE TABLE "u_s_nielsen_ratings" (
  "num" real,
  "episode" text,
  "rating" text,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" text,
  "rank_timeslot" real,
  "rank_night" real,
  "rank_week" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the rank (night) 11?`:
```sql
                SELECT COUNT("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "rank_night"=11;
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS  IN 2006 IN THE COUNTRY WHOSE  CO2 EMISSIONS (TONS PER PERSON)  REACHED 1.4 IN 2OO7?`

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

CREATE TABLE "table1_11251601_2" (
  "country" text,
  "carbon_dioxide_emissions_per_year_10_6_tons_2006" real,
  "percentage_of_global_total" text,
  "avg_emission_per_km_2_of_its_land_tons" real,
  "carbon_dioxide_emissions_per_year_tons_per_person_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS THE AMOUNT OF CARBON DIOXIDE EMISSIONS  IN 2006 IN THE COUNTRY WHOSE  CO2 EMISSIONS (TONS PER PERSON)  REACHED 1.4 IN 2OO7?`:
```sql
                SELECT "carbon_dioxide_emissions_per_year_10_6_tons_2006" FROM "table1_11251601_2" WHERE "carbon_dioxide_emissions_per_year_tons_per_person_2007"='1.4';
```
## Task
Generate a SQL query to answer the following question:
`HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006?`

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

CREATE TABLE "table1_11251601_2" (
  "country" text,
  "carbon_dioxide_emissions_per_year_10_6_tons_2006" real,
  "percentage_of_global_total" text,
  "avg_emission_per_km_2_of_its_land_tons" real,
  "carbon_dioxide_emissions_per_year_tons_per_person_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MANY TONS OF CO2 EMISSIONS DID RUSSIA PRODUCE IN 2006?`:
```sql
                SELECT MAX("carbon_dioxide_emissions_per_year_10_6_tons_2006") FROM "table1_11251601_2" WHERE "country"='Russia';
```
## Task
Generate a SQL query to answer the following question:
`WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?`

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

CREATE TABLE "table1_11251601_2" (
  "country" text,
  "carbon_dioxide_emissions_per_year_10_6_tons_2006" real,
  "percentage_of_global_total" text,
  "avg_emission_per_km_2_of_its_land_tons" real,
  "carbon_dioxide_emissions_per_year_tons_per_person_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT PERCENTAGE OF GLOBAL TOTAL EMISSIONS DID INDIA PRODUCE?`:
```sql
                SELECT "percentage_of_global_total" FROM "table1_11251601_2" WHERE "country"='India';
```
## Task
Generate a SQL query to answer the following question:
`HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007?`

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

CREATE TABLE "table1_11251601_2" (
  "country" text,
  "carbon_dioxide_emissions_per_year_10_6_tons_2006" real,
  "percentage_of_global_total" text,
  "avg_emission_per_km_2_of_its_land_tons" real,
  "carbon_dioxide_emissions_per_year_tons_per_person_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `HOW MUCH IS THE PERCENTAGE OF GLOBAL TOTAL EMISSIONS IN THE COUNTRY THAT PRODUCED 4.9 TONS PER PERSON IN 2007?`:
```sql
                SELECT "percentage_of_global_total" FROM "table1_11251601_2" WHERE "carbon_dioxide_emissions_per_year_tons_per_person_2007"='4.9';
```
## Task
Generate a SQL query to answer the following question:
`WHAT WAS THE AVERAGE EMISSION PER KM 2 IN INDIA?`

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

CREATE TABLE "table1_11251601_2" (
  "country" text,
  "carbon_dioxide_emissions_per_year_10_6_tons_2006" real,
  "percentage_of_global_total" text,
  "avg_emission_per_km_2_of_its_land_tons" real,
  "carbon_dioxide_emissions_per_year_tons_per_person_2007" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT WAS THE AVERAGE EMISSION PER KM 2 IN INDIA?`:
```sql
                SELECT MAX("avg_emission_per_km_2_of_its_land_tons") FROM "table1_11251601_2" WHERE "country"='India';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank number that aired october 26, 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 rank number that aired october 26, 2007?`:
```sql
                SELECT "rank_num" FROM "weekly_ratings" WHERE "air_date"='October 26, 2007';
```