cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What was the result when competing in the Opening NIght Film category?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result when competing in the Opening NIght Film category?`:
```sql
                SELECT "result" FROM "film_festivals" WHERE "category"='Opening Night Film';
```
## Task
Generate a SQL query to answer the following question:
`Which films participated in the 30th Hawaii International Film Festival?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which films participated in the 30th Hawaii International Film Festival?`:
```sql
                SELECT "participants_recipients" FROM "film_festivals" WHERE "film_festival"='30th Hawaii International Film Festival';
```
## Task
Generate a SQL query to answer the following question:
`Which films participated when the category was Best Newcomer?`

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

CREATE TABLE "film_festivals" (
  "film_festival" text,
  "date_of_ceremony" text,
  "category" text,
  "participants_recipients" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which films participated when the category was Best Newcomer?`:
```sql
                SELECT "participants_recipients" FROM "film_festivals" WHERE "category"='Best Newcomer';
```
## Task
Generate a SQL query to answer the following question:
`in which year the season was in 5th position`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text,
  "movements" text
);
### SQL
Given the database schema, here is the SQL query that answers `in which year the season was in 5th position`:
```sql
                SELECT "season" FROM "season_to_season" WHERE "position"='5th';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the movement in the 7th position`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text,
  "movements" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the movement in the 7th position`:
```sql
                SELECT "movements" FROM "season_to_season" WHERE "position"='7th';
```
## Task
Generate a SQL query to answer the following question:
`what is the name of the level for the 7th position`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text,
  "movements" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the name of the level for the 7th position`:
```sql
                SELECT "level" FROM "season_to_season" WHERE "position"='7th';
```
## Task
Generate a SQL query to answer the following question:
`how many sections are for the season of 2008`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text,
  "movements" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many sections are for the season of 2008`:
```sql
                SELECT COUNT("section") FROM "season_to_season" WHERE "season"='2008';
```
## Task
Generate a SQL query to answer the following question:
`in what year the position was the 9th`

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

CREATE TABLE "season_to_season" (
  "season" text,
  "level" text,
  "division" text,
  "section" text,
  "position" text,
  "movements" text
);
### SQL
Given the database schema, here is the SQL query that answers `in what year the position was the 9th`:
```sql
                SELECT "season" FROM "season_to_season" WHERE "position"='9th';
```
## Task
Generate a SQL query to answer the following question:
`Who was eliminated a person at 18:48?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was eliminated a person at 18:48?`:
```sql
                SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='18:48';
```
## Task
Generate a SQL query to answer the following question:
`How many entries are shown for entered at 21:09?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many entries are shown for entered at 21:09?`:
```sql
                SELECT COUNT("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='21:09';
```
## Task
Generate a SQL query to answer the following question:
`Who was eliminated by being pinned after a spear at  22:50?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was eliminated by being pinned after a spear at  22:50?`:
```sql
                SELECT "wrestler" FROM "elimination_chamber_entrances_and_elimin" WHERE "method_of_elimination"='Pinned after a spear' AND "time"='22:50';
```
## Task
Generate a SQL query to answer the following question:
`What number was the person eliminated at 22:50?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" real,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "method_of_elimination" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What number was the person eliminated at 22:50?`:
```sql
                SELECT "eliminated" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='22:50';
```
## Task
Generate a SQL query to answer the following question:
`what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?`

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

CREATE TABLE "season_calendar" (
  "round" real,
  "country" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the circuit where the fastest lap is sam lowes and the winning rider is luca scassa?`:
```sql
                SELECT "circuit" FROM "season_calendar" WHERE "fastest_lap"='Sam Lowes' AND "winning_rider"='Luca Scassa';
```
## Task
Generate a SQL query to answer the following question:
`what is the round wher the fabien foret had the fastest lap and david salom was the pole position?`

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

CREATE TABLE "season_calendar" (
  "round" real,
  "country" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the round wher the fabien foret had the fastest lap and david salom was the pole position?`:
```sql
                SELECT "round" FROM "season_calendar" WHERE "fastest_lap"='Fabien Foret' AND "pole_position"='David Salom';
```
## Task
Generate a SQL query to answer the following question:
`who had the fastest lap for round 1?`

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

CREATE TABLE "season_calendar" (
  "round" real,
  "country" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `who had the fastest lap for round 1?`:
```sql
                SELECT "fastest_lap" FROM "season_calendar" WHERE "round"=1;
```
## Task
Generate a SQL query to answer the following question:
`what is the pole position for france?`

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

CREATE TABLE "season_calendar" (
  "round" real,
  "country" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pole position for france?`:
```sql
                SELECT "pole_position" FROM "season_calendar" WHERE "country"='France';
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum round and fabien foret had the pole position?`

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

CREATE TABLE "season_calendar" (
  "round" real,
  "country" text,
  "circuit" text,
  "date" text,
  "pole_position" text,
  "fastest_lap" text,
  "winning_rider" text,
  "winning_team" text,
  "report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum round and fabien foret had the pole position?`:
```sql
                SELECT MAX("round") FROM "season_calendar" WHERE "pole_position"='Fabien Foret';
```
## Task
Generate a SQL query to answer the following question:
`How many values of attendance occur when ave. on previous season is +645?`

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

CREATE TABLE "average_crowd_sizes" (
  "season" text,
  "ave_attendance" real,
  "ave_on_prev_season" text,
  "competition" text,
  "occupier" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values of attendance occur when ave. on previous season is +645?`:
```sql
                SELECT COUNT("ave_attendance") FROM "average_crowd_sizes" WHERE "ave_on_prev_season"='+645';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest value of average attendance when average on previous season is -459?`

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

CREATE TABLE "average_crowd_sizes" (
  "season" text,
  "ave_attendance" real,
  "ave_on_prev_season" text,
  "competition" text,
  "occupier" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest value of average attendance when average on previous season is -459?`:
```sql
                SELECT MIN("ave_attendance") FROM "average_crowd_sizes" WHERE "ave_on_prev_season"='-459';
```
## Task
Generate a SQL query to answer the following question:
`What is the least value for average attendance when average on previous season is +644?`

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

CREATE TABLE "average_crowd_sizes" (
  "season" text,
  "ave_attendance" real,
  "ave_on_prev_season" text,
  "competition" text,
  "occupier" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least value for average attendance when average on previous season is +644?`:
```sql
                SELECT MIN("ave_attendance") FROM "average_crowd_sizes" WHERE "ave_on_prev_season"='+644';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for average on previous season if the competition is league two?`

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

CREATE TABLE "average_crowd_sizes" (
  "season" text,
  "ave_attendance" real,
  "ave_on_prev_season" text,
  "competition" text,
  "occupier" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for average on previous season if the competition is league two?`:
```sql
                SELECT "ave_on_prev_season" FROM "average_crowd_sizes" WHERE "competition"='League Two';
```
## Task
Generate a SQL query to answer the following question:
`What is the least w?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least w?`:
```sql
                SELECT MIN("w") FROM "standings";
```
## Task
Generate a SQL query to answer the following question:
`What is the most stolen ends?`

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

CREATE TABLE "standings" (
  "locale" text,
  "skip" text,
  "w" real,
  "l" real,
  "pf" real,
  "pa" real,
  "ends_won" real,
  "ends_lost" real,
  "blank_ends" real,
  "stolen_ends" real,
  "shot_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most stolen ends?`:
```sql
                SELECT MAX("stolen_ends") FROM "standings";
```
## Task
Generate a SQL query to answer the following question:
`What is the total appearances when the total goals is 289?`

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

CREATE TABLE "overall_scorers" (
  "name" text,
  "nationality" text,
  "malm_ff_career" text,
  "league_appearances" real,
  "league_goals" real,
  "total_appearances" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total appearances when the total goals is 289?`:
```sql
                SELECT MIN("total_appearances") FROM "overall_scorers" WHERE "total_goals"=289;
```
## Task
Generate a SQL query to answer the following question:
`What is the league goals when the total goals is 179?`

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

CREATE TABLE "overall_scorers" (
  "name" text,
  "nationality" text,
  "malm_ff_career" text,
  "league_appearances" real,
  "league_goals" real,
  "total_appearances" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the league goals when the total goals is 179?`:
```sql
                SELECT MAX("league_goals") FROM "overall_scorers" WHERE "total_goals"=179;
```
## Task
Generate a SQL query to answer the following question:
`How many  total appearances are there when the league appearances is 192?`

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

CREATE TABLE "overall_scorers" (
  "name" text,
  "nationality" text,
  "malm_ff_career" text,
  "league_appearances" real,
  "league_goals" real,
  "total_appearances" real,
  "total_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many  total appearances are there when the league appearances is 192?`:
```sql
                SELECT COUNT("total_appearances") FROM "overall_scorers" WHERE "league_appearances"=192;
```
## Task
Generate a SQL query to answer the following question:
`Who were the away teams when the competition was the 1st ``republic of srpska football day`` and the home team was u 14 republic of srpska?`

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

CREATE TABLE "youth_competitions" (
  "date" text,
  "competition" text,
  "location" text,
  "home_team" text,
  "result" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the away teams when the competition was the 1st ``republic of srpska football day`` and the home team was u 14 republic of srpska?`:
```sql
                SELECT "away_team" FROM "youth_competitions" WHERE "competition"='1st ``Republic of Srpska Football Day``' AND "home_team"='U 14 Republic of Srpska';
```
## Task
Generate a SQL query to answer the following question:
`What were the competitions when the away team was fk kozara gradiska?`

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

CREATE TABLE "youth_competitions" (
  "date" text,
  "competition" text,
  "location" text,
  "home_team" text,
  "result" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the competitions when the away team was fk kozara gradiska?`:
```sql
                SELECT "competition" FROM "youth_competitions" WHERE "away_team"='FK Kozara Gradiska';
```
## Task
Generate a SQL query to answer the following question:
`What are the names of players from the dr congo?`

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

CREATE TABLE "outfield_players" (
  "name" text,
  "position" text,
  "country" text,
  "years" text,
  "games" real,
  "minutes" real,
  "goals" real,
  "assists" real,
  "int_caps" real,
  "int_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the names of players from the dr congo?`:
```sql
                SELECT "name" FROM "outfield_players" WHERE "country"='DR Congo';
```
## Task
Generate a SQL query to answer the following question:
`How many is the high assist total for players from panama?`

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

CREATE TABLE "outfield_players" (
  "name" text,
  "position" text,
  "country" text,
  "years" text,
  "games" real,
  "minutes" real,
  "goals" real,
  "assists" real,
  "int_caps" real,
  "int_goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many is the high assist total for players from panama?`:
```sql
                SELECT MAX("assists") FROM "outfield_players" WHERE "country"='Panama';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the home match against FK Rudar Ugljevik?`

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

CREATE TABLE "results_in_the_past" (
  "date" real,
  "competition" text,
  "location" text,
  "home_team" text,
  "result" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the home match against FK Rudar Ugljevik?`:
```sql
                SELECT "result" FROM "results_in_the_past" WHERE "away_team"='FK Rudar Ugljevik';
```
## Task
Generate a SQL query to answer the following question:
`Where was the home match against FK Rudar Ugljevik played?`

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

CREATE TABLE "results_in_the_past" (
  "date" real,
  "competition" text,
  "location" text,
  "home_team" text,
  "result" text,
  "away_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the home match against FK Rudar Ugljevik played?`:
```sql
                SELECT "location" FROM "results_in_the_past" WHERE "away_team"='FK Rudar Ugljevik';
```
## Task
Generate a SQL query to answer the following question:
`When 1971 is the year what is the la roche?`

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

CREATE TABLE "table1_29728787_1" (
  "year" text,
  "conductor" text,
  "opera_house_or_orchestra" text,
  "label" text,
  "countess" text,
  "count" text,
  "flamand" text,
  "olivier" text,
  "la_roche" text,
  "clairon" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 1971 is the year what is the la roche?`:
```sql
                SELECT "la_roche" FROM "table1_29728787_1" WHERE "year"='1971';
```
## Task
Generate a SQL query to answer the following question:
`When deutsche grammophon is the label how many clairons are there?`

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

CREATE TABLE "table1_29728787_1" (
  "year" text,
  "conductor" text,
  "opera_house_or_orchestra" text,
  "label" text,
  "countess" text,
  "count" text,
  "flamand" text,
  "olivier" text,
  "la_roche" text,
  "clairon" text
);
### SQL
Given the database schema, here is the SQL query that answers `When deutsche grammophon is the label how many clairons are there?`:
```sql
                SELECT COUNT("clairon") FROM "table1_29728787_1" WHERE "label"='Deutsche Grammophon';
```
## Task
Generate a SQL query to answer the following question:
`When hermann uhde is the count who is the conductor?`

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

CREATE TABLE "table1_29728787_1" (
  "year" text,
  "conductor" text,
  "opera_house_or_orchestra" text,
  "label" text,
  "countess" text,
  "count" text,
  "flamand" text,
  "olivier" text,
  "la_roche" text,
  "clairon" text
);
### SQL
Given the database schema, here is the SQL query that answers `When hermann uhde is the count who is the conductor?`:
```sql
                SELECT "conductor" FROM "table1_29728787_1" WHERE "count"='Hermann Uhde';
```
## Task
Generate a SQL query to answer the following question:
`When dietrich fischer-dieskau is the olivier who is the conductor?`

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

CREATE TABLE "table1_29728787_1" (
  "year" text,
  "conductor" text,
  "opera_house_or_orchestra" text,
  "label" text,
  "countess" text,
  "count" text,
  "flamand" text,
  "olivier" text,
  "la_roche" text,
  "clairon" text
);
### SQL
Given the database schema, here is the SQL query that answers `When dietrich fischer-dieskau is the olivier who is the conductor?`:
```sql
                SELECT "conductor" FROM "table1_29728787_1" WHERE "olivier"='Dietrich Fischer-Dieskau';
```
## Task
Generate a SQL query to answer the following question:
`When karl ridderbusch is the la roche who is the olivier?`

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

CREATE TABLE "table1_29728787_1" (
  "year" text,
  "conductor" text,
  "opera_house_or_orchestra" text,
  "label" text,
  "countess" text,
  "count" text,
  "flamand" text,
  "olivier" text,
  "la_roche" text,
  "clairon" text
);
### SQL
Given the database schema, here is the SQL query that answers `When karl ridderbusch is the la roche who is the olivier?`:
```sql
                SELECT "olivier" FROM "table1_29728787_1" WHERE "la_roche"='Karl Ridderbusch';
```
## Task
Generate a SQL query to answer the following question:
`What are the works numbers where the year is 1929 and the driver diameter is 60"/1520mm? `

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

CREATE TABLE "class_16_da_4_6_2_builders_works_numbers" (
  "sar_no" real,
  "builder" text,
  "year" real,
  "works_no" real,
  "firebox" text,
  "driver_diameter" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the works numbers where the year is 1929 and the driver diameter is 60"/1520mm? `:
```sql
                SELECT "works_no" FROM "class_16_da_4_6_2_builders_works_numbers" WHERE "year"=1929 AND "driver_diameter"='60\"/1520mm';
```
## Task
Generate a SQL query to answer the following question:
`For what year is the SAR no. 874?`

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

CREATE TABLE "class_16_da_4_6_2_builders_works_numbers" (
  "sar_no" real,
  "builder" text,
  "year" real,
  "works_no" real,
  "firebox" text,
  "driver_diameter" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what year is the SAR no. 874?`:
```sql
                SELECT "year" FROM "class_16_da_4_6_2_builders_works_numbers" WHERE "sar_no"=874;
```
## Task
Generate a SQL query to answer the following question:
`Who is the writer when the director is bob berlinger?`

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

CREATE TABLE "table1_29747178_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the writer when the director is bob berlinger?`:
```sql
                SELECT "written_by" FROM "table1_29747178_2" WHERE "directed_by"='Bob Berlinger';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of U.S viewers are there when the director is andy wolk?`

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

CREATE TABLE "table1_29747178_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of U.S viewers are there when the director is andy wolk?`:
```sql
                SELECT "u_s_viewers_million" FROM "table1_29747178_2" WHERE "directed_by"='Andy Wolk';
```
## Task
Generate a SQL query to answer the following question:
`What is the series # when the director is john showalter?`

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

CREATE TABLE "table1_29747178_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series # when the director is john showalter?`:
```sql
                SELECT "series_num" FROM "table1_29747178_2" WHERE "directed_by"='John Showalter';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director when the title is "believers"?`

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

CREATE TABLE "table1_29747178_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director when the title is "believers"?`:
```sql
                SELECT "directed_by" FROM "table1_29747178_2" WHERE "title"='\"Believers\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the title when the series # is 7?`

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

CREATE TABLE "table1_29747178_2" (
  "series_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title when the series # is 7?`:
```sql
                SELECT "title" FROM "table1_29747178_2" WHERE "series_num"=7;
```
## Task
Generate a SQL query to answer the following question:
`Which episode had a share 16-19 of 23,22%?`

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

CREATE TABLE "rating_figures" (
  "episode" real,
  "date" text,
  "official_rating_4" text,
  "share_4" text,
  "official_rating_16_39" text,
  "share_16_39" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had a share 16-19 of 23,22%?`:
```sql
                SELECT MAX("episode") FROM "rating_figures" WHERE "share_16_39"='23,22%';
```
## Task
Generate a SQL query to answer the following question:
`What was the official rating 16-39 of episode 9?`

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

CREATE TABLE "rating_figures" (
  "episode" real,
  "date" text,
  "official_rating_4" text,
  "share_4" text,
  "official_rating_16_39" text,
  "share_16_39" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the official rating 16-39 of episode 9?`:
```sql
                SELECT "official_rating_16_39" FROM "rating_figures" WHERE "episode"=9;
```
## Task
Generate a SQL query to answer the following question:
`What is the intro date for the interface that equals pci?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the intro date for the interface that equals pci?`:
```sql
                SELECT "intro_date" FROM "references" WHERE "interface"='PCI';
```
## Task
Generate a SQL query to answer the following question:
`What is the intro date for the throughput of 16 mbit/s?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the intro date for the throughput of 16 mbit/s?`:
```sql
                SELECT "intro_date" FROM "references" WHERE "throughput"='16 Mbit/s';
```
## Task
Generate a SQL query to answer the following question:
`How many intro dates have the price of 686€?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many intro dates have the price of 686€?`:
```sql
                SELECT COUNT("intro_date") FROM "references" WHERE "price"='686€';
```
## Task
Generate a SQL query to answer the following question:
`What is the price for the manufacturer LETech?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the price for the manufacturer LETech?`:
```sql
                SELECT "price" FROM "references" WHERE "manufacturer"='LETech';
```
## Task
Generate a SQL query to answer the following question:
`What is the price (usd) for the model pq32mu?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the price (usd) for the model pq32mu?`:
```sql
                SELECT MIN("price_usd") FROM "references" WHERE "model"='PQ32MU';
```
## Task
Generate a SQL query to answer the following question:
`Who is the manufacturer whose intro date is 2006 and their throughput is 4 mbit/s?`

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

CREATE TABLE "references" (
  "manufacturer" text,
  "model" text,
  "intro_date" text,
  "interface" text,
  "os" text,
  "price_usd" real,
  "price" text,
  "throughput" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the manufacturer whose intro date is 2006 and their throughput is 4 mbit/s?`:
```sql
                SELECT "manufacturer" FROM "references" WHERE "intro_date"='2006' AND "throughput"='4 Mbit/s';
```
## Task
Generate a SQL query to answer the following question:
`What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)?`

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

CREATE TABLE "constituency_201_243" (
  "constituency_no" real,
  "vidhan_sabha_constituency" text,
  "reservation_for_sc_st" text,
  "district" text,
  "lok_sabha" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Lok Sabha in Karakat (Vidhan Sabha Constituency)?`:
```sql
                SELECT "lok_sabha" FROM "constituency_201_243" WHERE "vidhan_sabha_constituency"='Karakat (Vidhan Sabha constituency)';
```
## Task
Generate a SQL query to answer the following question:
`How many were in the Kargahar (vidhan sabha constituency)?`

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

CREATE TABLE "constituency_201_243" (
  "constituency_no" real,
  "vidhan_sabha_constituency" text,
  "reservation_for_sc_st" text,
  "district" text,
  "lok_sabha" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in the Kargahar (vidhan sabha constituency)?`:
```sql
                SELECT MIN("constituency_no") FROM "constituency_201_243" WHERE "vidhan_sabha_constituency"='Kargahar (Vidhan Sabha constituency)';
```
## Task
Generate a SQL query to answer the following question:
`What district has 213 constituents?`

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

CREATE TABLE "constituency_201_243" (
  "constituency_no" real,
  "vidhan_sabha_constituency" text,
  "reservation_for_sc_st" text,
  "district" text,
  "lok_sabha" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district has 213 constituents?`:
```sql
                SELECT COUNT("district") FROM "constituency_201_243" WHERE "constituency_no"=213;
```
## Task
Generate a SQL query to answer the following question:
`How many Lok Sabha are in the one with 216 constituents?`

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

CREATE TABLE "constituency_201_243" (
  "constituency_no" real,
  "vidhan_sabha_constituency" text,
  "reservation_for_sc_st" text,
  "district" text,
  "lok_sabha" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Lok Sabha are in the one with 216 constituents?`:
```sql
                SELECT "lok_sabha" FROM "constituency_201_243" WHERE "constituency_no"=216;
```
## Task
Generate a SQL query to answer the following question:
`How many countries spent at least $51.0 billion in international tourism in 2012?`

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

CREATE TABLE "international_tourism_expenditure" (
  "rank_2012" real,
  "country" text,
  "unwto_region" text,
  "international_tourism_expenditure_2011" text,
  "international_tourism_expenditure_2012" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries spent at least $51.0 billion in international tourism in 2012?`:
```sql
                SELECT MAX("rank_2012") FROM "international_tourism_expenditure" WHERE "international_tourism_expenditure_2011"='$51.0 billion';
```
## Task
Generate a SQL query to answer the following question:
`How many countries spent $83.7 billion on international tourism in 2012?`

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

CREATE TABLE "international_tourism_expenditure" (
  "rank_2012" real,
  "country" text,
  "unwto_region" text,
  "international_tourism_expenditure_2011" text,
  "international_tourism_expenditure_2012" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many countries spent $83.7 billion on international tourism in 2012?`:
```sql
                SELECT COUNT("pct_change") FROM "international_tourism_expenditure" WHERE "international_tourism_expenditure_2012"='$83.7 billion';
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011?`

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

CREATE TABLE "international_tourism_expenditure" (
  "rank_2012" real,
  "country" text,
  "unwto_region" text,
  "international_tourism_expenditure_2011" text,
  "international_tourism_expenditure_2012" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage increase in spending on international tourism from 2011 to 2012 of the country that spent $85.9 billion in 2011?`:
```sql
                SELECT "pct_change" FROM "international_tourism_expenditure" WHERE "international_tourism_expenditure_2011"='$85.9 billion';
```
## Task
Generate a SQL query to answer the following question:
`Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?`

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

CREATE TABLE "international_tourism_expenditure" (
  "rank_2012" real,
  "country" text,
  "unwto_region" text,
  "international_tourism_expenditure_2011" text,
  "international_tourism_expenditure_2012" text,
  "pct_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?`:
```sql
                SELECT "country" FROM "international_tourism_expenditure" WHERE "pct_change"='5.7';
```
## Task
Generate a SQL query to answer the following question:
`Name the most other apps for league goals being 1`

### 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 `Name the most other apps for league goals being 1`:
```sql
                SELECT MAX("other_apps") FROM "sheffield_united_statistics" WHERE "league_goals"=1;
```
## Task
Generate a SQL query to answer the following question:
`Name the most fa cup apps for league apps being 27`

### 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 `Name the most fa cup apps for league apps being 27`:
```sql
                SELECT MAX("fa_cup_apps") FROM "sheffield_united_statistics" WHERE "league_apps"=27;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of division for fa cups being 9`

### 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 `Name the total number of division for fa cups being 9`:
```sql
                SELECT COUNT("division") FROM "sheffield_united_statistics" WHERE "fa_cup_apps"=9;
```
## Task
Generate a SQL query to answer the following question:
`How many international tourists visited Russia in 2012?`

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

CREATE TABLE "most_visited_countries_by_international_" (
  "rank" real,
  "country" text,
  "unwto_region" text,
  "international_tourist_arrivals_2012" text,
  "international_tourist_arrivals_2011" text,
  "change_2011_to_2012" text,
  "change_2010_to_2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many international tourists visited Russia in 2012?`:
```sql
                SELECT "international_tourist_arrivals_2012" FROM "most_visited_countries_by_international_" WHERE "country"='Russia';
```
## Task
Generate a SQL query to answer the following question:
`What was the premiere date for the episode whose alternate title was miłość i przeznaczenie?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the premiere date for the episode whose alternate title was miłość i przeznaczenie?`:
```sql
                SELECT "series_premiere" FROM "international_broadcasts" WHERE "alternante_title"='Miłość i przeznaczenie';
```
## Task
Generate a SQL query to answer the following question:
`Which TV network had its series finale on May 7, 2012?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV network had its series finale on May 7, 2012?`:
```sql
                SELECT "tv_network_s" FROM "international_broadcasts" WHERE "series_finale"='May 7, 2012';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the series premiere whose TV network was TV3?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the series premiere whose TV network was TV3?`:
```sql
                SELECT "series_premiere" FROM "international_broadcasts" WHERE "tv_network_s"='TV3';
```
## Task
Generate a SQL query to answer the following question:
`Which TV network has a country of origin of Iran?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which TV network has a country of origin of Iran?`:
```sql
                SELECT "tv_network_s" FROM "international_broadcasts" WHERE "country"='Iran';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of series premiere for the novela whose alternate title was miłość i przeznaczenie?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of series premiere for the novela whose alternate title was miłość i przeznaczenie?`:
```sql
                SELECT "series_premiere" FROM "international_broadcasts" WHERE "alternante_title"='Miłość i przeznaczenie';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the series finale for Peru?`

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

CREATE TABLE "international_broadcasts" (
  "country" text,
  "alternante_title" text,
  "tv_network_s" text,
  "series_premiere" text,
  "series_finale" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the series finale for Peru?`:
```sql
                SELECT "series_finale" FROM "international_broadcasts" WHERE "country"='Peru';
```
## Task
Generate a SQL query to answer the following question:
`What is every original air date with U.S. viewers of 0.23 million?`

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

CREATE TABLE "table1_29803475_2" (
  "no_in_series" 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 `What is every original air date with U.S. viewers of 0.23 million?`:
```sql
                SELECT "original_air_date" FROM "table1_29803475_2" WHERE "u_s_viewers_million"='0.23';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number in series when U.S. viewers is 0.23 million?`

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

CREATE TABLE "table1_29803475_2" (
  "no_in_series" 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 `What is the lowest number in series when U.S. viewers is 0.23 million?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_29803475_2" WHERE "u_s_viewers_million"='0.23';
```
## Task
Generate a SQL query to answer the following question:
`What were the total apps for Dunne in season where he had 0 league goals? `

### 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 `What were the total apps for Dunne in season where he had 0 league goals? `:
```sql
                SELECT "total_apps" FROM "sheffield_united_statistics" WHERE "league_goals"=0;
```