cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`How many league goals did Dunne have in the season where he had 2 league apps?`

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

CREATE TABLE "sheffield_united_statistics" (
  "season" text,
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many league goals did Dunne have in the season where he had 2 league apps?`:
```sql
                SELECT "league_goals" FROM "sheffield_united_statistics" WHERE "league_apps"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many other goals did Dunne have in the season where he had 1 league goal?`

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

CREATE TABLE "sheffield_united_statistics" (
  "season" text,
  "division" text,
  "league_apps" real,
  "league_goals" real,
  "fa_cup_apps" real,
  "fa_cup_goals" real,
  "other_apps" real,
  "other_goals" real,
  "total_apps" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many other goals did Dunne have in the season where he had 1 league goal?`:
```sql
                SELECT "other_goals" FROM "sheffield_united_statistics" WHERE "league_goals"=1;
```
## Task
Generate a SQL query to answer the following question:
`When boston university is the team what is the record?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `When boston university is the team what is the record?`:
```sql
                SELECT "record" FROM "schedule" WHERE "team"='Boston University';
```
## Task
Generate a SQL query to answer the following question:
`What is the subject when the highest mark is 79?`

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

CREATE TABLE "fsfe_examination_result_analysis_2009" (
  "subject" text,
  "no_sat" real,
  "no_passed" real,
  "pct_pass" real,
  "highest_mark" real,
  "lowest_mark" real,
  "mean" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the subject when the highest mark is 79?`:
```sql
                SELECT "subject" FROM "fsfe_examination_result_analysis_2009" WHERE "highest_mark"=79;
```
## Task
Generate a SQL query to answer the following question:
`How many lowest mark entries are there when % passed is 76?`

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

CREATE TABLE "fsfe_examination_result_analysis_2009" (
  "subject" text,
  "no_sat" real,
  "no_passed" real,
  "pct_pass" real,
  "highest_mark" real,
  "lowest_mark" real,
  "mean" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many lowest mark entries are there when % passed is 76?`:
```sql
                SELECT COUNT("lowest_mark") FROM "fsfe_examination_result_analysis_2009" WHERE "pct_pass"=76;
```
## Task
Generate a SQL query to answer the following question:
`if the flm winning team is no. 99 jmb racing what is the name of the  lmp2 winning team `

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

CREATE TABLE "table1_29826467_2" (
  "rnd" real,
  "circuit" text,
  "lmp1_winning_team" text,
  "lmp2_winning_team" text,
  "flm_winning_team" text,
  "gte_pro_winning_team" text,
  "gte_am_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `if the flm winning team is no. 99 jmb racing what is the name of the  lmp2 winning team `:
```sql
                SELECT "lmp2_winning_team" FROM "table1_29826467_2" WHERE "flm_winning_team"='No. 99 JMB Racing';
```
## Task
Generate a SQL query to answer the following question:
`Who is every high rebound when the team is Mount St. Mary's?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every high rebound when the team is Mount St. Mary's?`:
```sql
                SELECT "high_rebounds" FROM "schedule" WHERE "team"='Mount St. Mary''s';
```
## Task
Generate a SQL query to answer the following question:
`What position was serena abrami in?`

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

CREATE TABLE "giovani_new_generation_section" (
  "position" text,
  "singer" text,
  "2nd_evening" text,
  "3rd_evening" text,
  "4th_evening" text,
  "5th_evening" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position was serena abrami in?`:
```sql
                SELECT "position" FROM "giovani_new_generation_section" WHERE "singer"='Serena Abrami';
```
## Task
Generate a SQL query to answer the following question:
`How many singers got 2nd place in the 4th evening?`

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

CREATE TABLE "giovani_new_generation_section" (
  "position" text,
  "singer" text,
  "2nd_evening" text,
  "3rd_evening" text,
  "4th_evening" text,
  "5th_evening" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many singers got 2nd place in the 4th evening?`:
```sql
                SELECT COUNT("2nd_evening") FROM "giovani_new_generation_section" WHERE "4th_evening"='2nd place';
```
## Task
Generate a SQL query to answer the following question:
`Who got 3rd place on the 4th evening?`

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

CREATE TABLE "giovani_new_generation_section" (
  "position" text,
  "singer" text,
  "2nd_evening" text,
  "3rd_evening" text,
  "4th_evening" text,
  "5th_evening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who got 3rd place on the 4th evening?`:
```sql
                SELECT "singer" FROM "giovani_new_generation_section" WHERE "4th_evening"='3rd place';
```
## Task
Generate a SQL query to answer the following question:
`Who went out on the 2nd evening?`

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

CREATE TABLE "giovani_new_generation_section" (
  "position" text,
  "singer" text,
  "2nd_evening" text,
  "3rd_evening" text,
  "4th_evening" text,
  "5th_evening" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who went out on the 2nd evening?`:
```sql
                SELECT "singer" FROM "giovani_new_generation_section" WHERE "2nd_evening"='Out';
```
## Task
Generate a SQL query to answer the following question:
`What was gabriella ferrone's result on the 5th evening?`

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

CREATE TABLE "giovani_new_generation_section" (
  "position" text,
  "singer" text,
  "2nd_evening" text,
  "3rd_evening" text,
  "4th_evening" text,
  "5th_evening" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was gabriella ferrone's result on the 5th evening?`:
```sql
                SELECT "5th_evening" FROM "giovani_new_generation_section" WHERE "singer"='Gabriella Ferrone';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum overall number?`

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

CREATE TABLE "derbi_amman" (
  "num" real,
  "tournament" text,
  "al_faisaly_wins" real,
  "al_wehdat_wins" real,
  "draws" real,
  "total" real,
  "al_faisaly_goals" real,
  "al_wehdat_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum overall number?`:
```sql
                SELECT MAX("num") FROM "derbi_amman";
```
## Task
Generate a SQL query to answer the following question:
`When the number is 2 what is the lowest amount of al-wedhat wins?`

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

CREATE TABLE "derbi_amman" (
  "num" real,
  "tournament" text,
  "al_faisaly_wins" real,
  "al_wehdat_wins" real,
  "draws" real,
  "total" real,
  "al_faisaly_goals" real,
  "al_wehdat_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the number is 2 what is the lowest amount of al-wedhat wins?`:
```sql
                SELECT MIN("al_wehdat_wins") FROM "derbi_amman" WHERE "num"=2;
```
## Task
Generate a SQL query to answer the following question:
`When jordan fa cup is the tournament how many draws?`

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

CREATE TABLE "derbi_amman" (
  "num" real,
  "tournament" text,
  "al_faisaly_wins" real,
  "al_wehdat_wins" real,
  "draws" real,
  "total" real,
  "al_faisaly_goals" real,
  "al_wehdat_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `When jordan fa cup is the tournament how many draws?`:
```sql
                SELECT COUNT("draws") FROM "derbi_amman" WHERE "tournament"='Jordan FA Cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value of area when capital is San Juan?`

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

CREATE TABLE "table1_298550_1" (
  "country_with_flag" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value of area when capital is San Juan?`:
```sql
                SELECT MAX("area_km") FROM "table1_298550_1" WHERE "capital"='San Juan';
```
## Task
Generate a SQL query to answer the following question:
`How many entries for area correspond to a population density of 207.9?`

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

CREATE TABLE "table1_298550_1" (
  "country_with_flag" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries for area correspond to a population density of 207.9?`:
```sql
                SELECT COUNT("area_km") FROM "table1_298550_1" WHERE "population_density_per_km"='207.9';
```
## Task
Generate a SQL query to answer the following question:
`What is every entry for area if capital is Port-au-Prince?`

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

CREATE TABLE "table1_298550_1" (
  "country_with_flag" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for area if capital is Port-au-Prince?`:
```sql
                SELECT "area_km" FROM "table1_298550_1" WHERE "capital"='Port-au-Prince';
```
## Task
Generate a SQL query to answer the following question:
`What is every country with a flag with population of 11346670?`

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

CREATE TABLE "table1_298550_1" (
  "country_with_flag" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every country with a flag with population of 11346670?`:
```sql
                SELECT "country_with_flag" FROM "table1_298550_1" WHERE "population_1_july_2005_est"=11346670;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value for population when area is 9104?`

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

CREATE TABLE "table1_298550_1" (
  "country_with_flag" text,
  "area_km" real,
  "population_1_july_2005_est" real,
  "population_density_per_km" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value for population when area is 9104?`:
```sql
                SELECT MAX("population_1_july_2005_est") FROM "table1_298550_1" WHERE "area_km"=9104;
```
## Task
Generate a SQL query to answer the following question:
`What many times was the victoria derby raced?`

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

CREATE TABLE "2003_04_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What many times was the victoria derby raced?`:
```sql
                SELECT COUNT("date") FROM "2003_04_season_as_a_three_year_old" WHERE "race"='Victoria Derby';
```
## Task
Generate a SQL query to answer the following question:
`What is the autumn classic weight?`

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

CREATE TABLE "2003_04_season_as_a_three_year_old" (
  "result" text,
  "date" text,
  "race" text,
  "venue" text,
  "group" text,
  "distance" text,
  "weight_kg" text,
  "jockey" text,
  "winner_2nd" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the autumn classic weight?`:
```sql
                SELECT "weight_kg" FROM "2003_04_season_as_a_three_year_old" WHERE "race"='Autumn Classic';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that had 3.55 million viewers?`

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

CREATE TABLE "table1_29897962_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that had 3.55 million viewers?`:
```sql
                SELECT "directed_by" FROM "table1_29897962_1" WHERE "u_s_viewers_million"='3.55';
```
## Task
Generate a SQL query to answer the following question:
`What are the dimensions of the coin worth ₩200?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dimensions of the coin worth ₩200?`:
```sql
                SELECT "dimensions" FROM "table1_298883_5" WHERE "value"='₩200';
```
## Task
Generate a SQL query to answer the following question:
`How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different dates of issue are the for the coin with kumsusan memorial palace on the obverse?`:
```sql
                SELECT COUNT("date_of_issue") FROM "table1_298883_5" WHERE "obverse"='Kumsusan Memorial Palace';
```
## Task
Generate a SQL query to answer the following question:
`What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dimensions of the coin issued in 1992 with kim il-sung on the obverse?`:
```sql
                SELECT "dimensions" FROM "table1_298883_5" WHERE "obverse"='Kim Il-sung' AND "date_of_issue"='1992';
```
## Task
Generate a SQL query to answer the following question:
`What is on the reverse side of the ₩500 coin?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on the reverse side of the ₩500 coin?`:
```sql
                SELECT "reverse" FROM "table1_298883_5" WHERE "value"='₩500';
```
## Task
Generate a SQL query to answer the following question:
`What is on the reverse side of the ₩100 coin?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is on the reverse side of the ₩100 coin?`:
```sql
                SELECT "reverse" FROM "table1_298883_5" WHERE "value"='₩100';
```
## Task
Generate a SQL query to answer the following question:
`What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side?`

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

CREATE TABLE "table1_298883_5" (
  "value" text,
  "dimensions" text,
  "main_color" text,
  "obverse" text,
  "reverse" text,
  "watermark" text,
  "date_of_issue" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side?`:
```sql
                SELECT "dimensions" FROM "table1_298883_5" WHERE "reverse"='Western sea barrage and locks at Taedong Gang';
```
## Task
Generate a SQL query to answer the following question:
`What are all the name(namesakes) for the entire chart?`

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

CREATE TABLE "table1_29860752_11" (
  "name_namesake" text,
  "builder_dimensions_displacement_hull_speed_complement" text,
  "machinery_boiler_bunkers_engines_armament" text,
  "ordered_laid_down_launched_trials" text,
  "commissioned_decommissioned_afterward" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the name(namesakes) for the entire chart?`:
```sql
                SELECT "name_namesake" FROM "table1_29860752_11";
```
## Task
Generate a SQL query to answer the following question:
`What are the names(namesakes) through out the entire chart?`

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

CREATE TABLE "table1_29860752_11" (
  "name_namesake" text,
  "builder_dimensions_displacement_hull_speed_complement" text,
  "machinery_boiler_bunkers_engines_armament" text,
  "ordered_laid_down_launched_trials" text,
  "commissioned_decommissioned_afterward" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names(namesakes) through out the entire chart?`:
```sql
                SELECT "name_namesake" FROM "table1_29860752_11";
```
## Task
Generate a SQL query to answer the following question:
`What season was the finale that aired on May 23, 2004?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season was the finale that aired on May 23, 2004?`:
```sql
                SELECT "tv_season" FROM "ratings" WHERE "season_finale"='May 23, 2004';
```
## Task
Generate a SQL query to answer the following question:
`What TV season was the 1st season?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What TV season was the 1st season?`:
```sql
                SELECT "tv_season" FROM "ratings" WHERE "season"='1st';
```
## Task
Generate a SQL query to answer the following question:
`When was the 3rd season premiere originally aired?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the 3rd season premiere originally aired?`:
```sql
                SELECT "season_premiere" FROM "ratings" WHERE "season"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd's season's ranking?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd's season's ranking?`:
```sql
                SELECT "ranking" FROM "ratings" WHERE "season"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`When did the season premiere that saw 8.4 million viewers first air?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season premiere that saw 8.4 million viewers first air?`:
```sql
                SELECT "season_premiere" FROM "ratings" WHERE "viewers_in_millions"='8.4';
```
## Task
Generate a SQL query to answer the following question:
`When did the season finale for the January 9, 2000 season premiere first air?`

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

CREATE TABLE "ratings" (
  "season" text,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "ranking" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the season finale for the January 9, 2000 season premiere first air?`:
```sql
                SELECT "season_finale" FROM "ratings" WHERE "season_premiere"='January 9, 2000';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that was watched by 2.97 million U.S. viewers? `

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

CREATE TABLE "table1_29920800_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode that was watched by 2.97 million U.S. viewers? `:
```sql
                SELECT "directed_by" FROM "table1_29920800_1" WHERE "u_s_viewers_million"='2.97';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode written by Liz Feldman?`

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

CREATE TABLE "table1_29920800_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode written by Liz Feldman?`:
```sql
                SELECT "original_air_date" FROM "table1_29920800_1" WHERE "written_by"='Liz Feldman';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode that was watched by 2.97 million U.S. viewers? `

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

CREATE TABLE "table1_29920800_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode that was watched by 2.97 million U.S. viewers? `:
```sql
                SELECT "written_by" FROM "table1_29920800_1" WHERE "u_s_viewers_million"='2.97';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S viewers watched the episode written by Liz Feldman? `

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

CREATE TABLE "table1_29920800_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" real,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S viewers watched the episode written by Liz Feldman? `:
```sql
                SELECT "u_s_viewers_million" FROM "table1_29920800_1" WHERE "written_by"='Liz Feldman';
```
## Task
Generate a SQL query to answer the following question:
`How many people attended the uefa champions league competition?`

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

CREATE TABLE "biggest_attendances" (
  "competition" text,
  "attendance" real,
  "opponent" text,
  "season" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people attended the uefa champions league competition?`:
```sql
                SELECT "attendance" FROM "biggest_attendances" WHERE "competition"='UEFA Champions League';
```
## Task
Generate a SQL query to answer the following question:
`How many women has reached the title of Miss International representing the country ranked as number 1?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many women has reached the title of Miss International representing the country ranked as number 1?`:
```sql
                SELECT MIN("miss_international") FROM "references" WHERE "rank"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many women has got the first runner-up position in representation of Philippines?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many women has got the first runner-up position in representation of Philippines?`:
```sql
                SELECT "1st_runner_up" FROM "references" WHERE "country_territory"='Philippines';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value in the miss international column?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value in the miss international column?`:
```sql
                SELECT MIN("miss_international") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest quantity displayed under the title "first runner-up"?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest quantity displayed under the title "first runner-up"?`:
```sql
                SELECT MIN("1st_runner_up") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`How many women from Uruguay has become third runner-up in this pageant?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many women from Uruguay has become third runner-up in this pageant?`:
```sql
                SELECT MAX("3rd_runner_up") FROM "references" WHERE "country_territory"='Uruguay';
```
## Task
Generate a SQL query to answer the following question:
`What year was player number 10?`

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

CREATE TABLE "roster" (
  "name" text,
  "num" real,
  "position" text,
  "height" text,
  "weight_lb" real,
  "year" text,
  "hometown" text,
  "previous_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was player number 10?`:
```sql
                SELECT "year" FROM "roster" WHERE "num"=10;
```
## Task
Generate a SQL query to answer the following question:
`How many hometowns are there when Charis Prep was the previous school?`

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

CREATE TABLE "roster" (
  "name" text,
  "num" real,
  "position" text,
  "height" text,
  "weight_lb" real,
  "year" text,
  "hometown" text,
  "previous_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hometowns are there when Charis Prep was the previous school?`:
```sql
                SELECT COUNT("hometown") FROM "roster" WHERE "previous_school"='Charis Prep';
```
## Task
Generate a SQL query to answer the following question:
`How many different items appear in the weight column when Pittsburgh, PA is the hometown?`

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

CREATE TABLE "roster" (
  "name" text,
  "num" real,
  "position" text,
  "height" text,
  "weight_lb" real,
  "year" text,
  "hometown" text,
  "previous_school" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different items appear in the weight column when Pittsburgh, PA is the hometown?`:
```sql
                SELECT COUNT("weight_lb") FROM "roster" WHERE "hometown"='Pittsburgh, PA';
```
## Task
Generate a SQL query to answer the following question:
`Which episode is number 3 in the season?`

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

CREATE TABLE "table1_29960651_5" (
  "no_for_season" real,
  "no_for_series" real,
  "episode" text,
  "airdate" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode is number 3 in the season?`:
```sql
                SELECT "episode" FROM "table1_29960651_5" WHERE "no_for_season"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the episode name for series number 45?`

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

CREATE TABLE "table1_29960651_5" (
  "no_for_season" real,
  "no_for_series" real,
  "episode" text,
  "airdate" text,
  "viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the episode name for series number 45?`:
```sql
                SELECT "episode" FROM "table1_29960651_5" WHERE "no_for_series"=45;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total for any country/territory? `

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_earth" text,
  "miss_air" real,
  "miss_water" real,
  "miss_fire" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest total for any country/territory? `:
```sql
                SELECT MAX("total") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`How many semifinalists has Romania had? `

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_earth" text,
  "miss_air" real,
  "miss_water" real,
  "miss_fire" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many semifinalists has Romania had? `:
```sql
                SELECT "semifinalists" FROM "references" WHERE "country_territory"='Romania';
```
## Task
Generate a SQL query to answer the following question:
`How many Miss Waters has Canada had?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_earth" text,
  "miss_air" real,
  "miss_water" real,
  "miss_fire" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Miss Waters has Canada had?`:
```sql
                SELECT MAX("miss_water") FROM "references" WHERE "country_territory"='Canada';
```
## Task
Generate a SQL query to answer the following question:
`What is the most Miss Fires any country has had?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_earth" text,
  "miss_air" real,
  "miss_water" real,
  "miss_fire" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most Miss Fires any country has had?`:
```sql
                SELECT MAX("miss_fire") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`What is the least amount of Miss Airs any country has had?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "miss_earth" text,
  "miss_air" real,
  "miss_water" real,
  "miss_fire" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least amount of Miss Airs any country has had?`:
```sql
                SELECT MIN("miss_air") FROM "references";
```
## Task
Generate a SQL query to answer the following question:
`what re the high assists for january 29?`

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

CREATE TABLE "schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `what re the high assists for january 29?`:
```sql
                SELECT "high_assists" FROM "schedule" WHERE "date"='January 29';
```
## Task
Generate a SQL query to answer the following question:
`What team did the suns play on April 21? `

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team did the suns play on April 21? `:
```sql
                SELECT "team" FROM "game_log" WHERE "date"='April 21';
```
## Task
Generate a SQL query to answer the following question:
`In what game was the attendance at the America West Arena 18,756?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what game was the attendance at the America West Arena 18,756?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "location_attendance"='America West Arena 18,756';
```
## Task
Generate a SQL query to answer the following question:
`What is the official name of the municipality whose name in Basque is Bilar?`

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

CREATE TABLE "see_also" (
  "official_name" text,
  "ine_code" real,
  "name_in_spanish" text,
  "name_in_basque" text,
  "population_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the official name of the municipality whose name in Basque is Bilar?`:
```sql
                SELECT "official_name" FROM "see_also" WHERE "name_in_basque"='Bilar';
```
## Task
Generate a SQL query to answer the following question:
`What is the official name of the municipality whose name in Spanish is Cripán?`

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

CREATE TABLE "see_also" (
  "official_name" text,
  "ine_code" real,
  "name_in_spanish" text,
  "name_in_basque" text,
  "population_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the official name of the municipality whose name in Spanish is Cripán?`:
```sql
                SELECT "official_name" FROM "see_also" WHERE "name_in_spanish"='Cripán';
```
## Task
Generate a SQL query to answer the following question:
`What is the official name of the municipality whose name in Spanish is Vitoria? `

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

CREATE TABLE "see_also" (
  "official_name" text,
  "ine_code" real,
  "name_in_spanish" text,
  "name_in_basque" text,
  "population_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the official name of the municipality whose name in Spanish is Vitoria? `:
```sql
                SELECT "official_name" FROM "see_also" WHERE "name_in_spanish"='Vitoria';
```
## Task
Generate a SQL query to answer the following question:
`What is the name in Basque of the municipality whose official name is Kuartango? `

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

CREATE TABLE "see_also" (
  "official_name" text,
  "ine_code" real,
  "name_in_spanish" text,
  "name_in_basque" text,
  "population_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name in Basque of the municipality whose official name is Kuartango? `:
```sql
                SELECT "name_in_basque" FROM "see_also" WHERE "official_name"='Kuartango';
```
## Task
Generate a SQL query to answer the following question:
`What is the INE code of the municipality whose official name is Berantevilla? `

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

CREATE TABLE "see_also" (
  "official_name" text,
  "ine_code" real,
  "name_in_spanish" text,
  "name_in_basque" text,
  "population_2007" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the INE code of the municipality whose official name is Berantevilla? `:
```sql
                SELECT MAX("ine_code") FROM "see_also" WHERE "official_name"='Berantevilla';
```
## Task
Generate a SQL query to answer the following question:
`What is every reference for type and usage of Germanium small-signal RF transistor?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every reference for type and usage of Germanium small-signal RF transistor?`:
```sql
                SELECT "reference" FROM "table1_30011_2" WHERE "type_and_usage"='Germanium small-signal RF transistor';
```
## Task
Generate a SQL query to answer the following question:
`What is every equivalent for the example of asy28?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every equivalent for the example of asy28?`:
```sql
                SELECT "equivalent" FROM "table1_30011_2" WHERE "example"='ASY28';
```
## Task
Generate a SQL query to answer the following question:
`What is every reference for the example of AF117?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every reference for the example of AF117?`:
```sql
                SELECT "reference" FROM "table1_30011_2" WHERE "example"='AF117';
```
## Task
Generate a SQL query to answer the following question:
`What is every prefix class for the equivalent of NTE160?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every prefix class for the equivalent of NTE160?`:
```sql
                SELECT "prefix_class" FROM "table1_30011_2" WHERE "equivalent"='NTE160';
```
## Task
Generate a SQL query to answer the following question:
`What is every prefix class for the equivalent of NTE101?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every prefix class for the equivalent of NTE101?`:
```sql
                SELECT "prefix_class" FROM "table1_30011_2" WHERE "equivalent"='NTE101';
```
## Task
Generate a SQL query to answer the following question:
`What is every example for the equivalent of NTE160?`

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

CREATE TABLE "table1_30011_2" (
  "prefix_class" text,
  "type_and_usage" text,
  "example" text,
  "equivalent" text,
  "reference" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every example for the equivalent of NTE160?`:
```sql
                SELECT "example" FROM "table1_30011_2" WHERE "equivalent"='NTE160';
```
## Task
Generate a SQL query to answer the following question:
`How many manhunt beauty contets have been held in france?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many manhunt beauty contets have been held in france?`:
```sql
                SELECT "manhunt_international" FROM "references" WHERE "country_territory"='France';
```
## Task
Generate a SQL query to answer the following question:
`How many semifinalists where from peru?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many semifinalists where from peru?`:
```sql
                SELECT "semifinalists" FROM "references" WHERE "country_territory"='Peru';
```
## Task
Generate a SQL query to answer the following question:
`How many first place participants where from croatia?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many first place participants where from croatia?`:
```sql
                SELECT "3rd_runner_up" FROM "references" WHERE "country_territory"='Croatia';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum sum?`

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

CREATE TABLE "references" (
  "rank" real,
  "country_territory" text,
  "manhunt_international" real,
  "1st_runner_up" real,
  "2nd_runner_up" real,
  "3rd_runner_up" real,
  "4th_runner_up" real,
  "semifinalists" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum sum?`:
```sql
                SELECT MIN("total") FROM "references";
```