cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the application for caligari corporation`

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

CREATE TABLE "table1_19495707_1" (
  "application" text,
  "latest_release_date_and_version" text,
  "developed_by" text,
  "platforms" text,
  "mainly_used_for" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the application for caligari corporation`:
```sql
                SELECT "application" FROM "table1_19495707_1" WHERE "developed_by"='Caligari Corporation';
```
## Task
Generate a SQL query to answer the following question:
`What series number started production on June 6?`

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

CREATE TABLE "table1_1949994_8" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" real,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series number started production on June 6?`:
```sql
                SELECT MIN("no") FROM "table1_1949994_8" WHERE "start_date"='June 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?`

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

CREATE TABLE "table1_1949994_8" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" real,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production format for the series with the local title Fort Boyard: Ultimate Challenge?`:
```sql
                SELECT "format" FROM "table1_1949994_8" WHERE "local_title"='Fort Boyard: Ultimate Challenge';
```
## Task
Generate a SQL query to answer the following question:
`What were the television air dates for the series that had a production start date of June 16?`

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

CREATE TABLE "table1_1949994_8" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" real,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the television air dates for the series that had a production start date of June 16?`:
```sql
                SELECT "premiere_air_dates" FROM "table1_1949994_8" WHERE "start_date"='June 16';
```
## Task
Generate a SQL query to answer the following question:
`What series number had the local title of Fort Boyard?`

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

CREATE TABLE "table1_1949994_8" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" real,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What series number had the local title of Fort Boyard?`:
```sql
                SELECT MAX("no") FROM "table1_1949994_8" WHERE "local_title"='Fort Boyard';
```
## Task
Generate a SQL query to answer the following question:
`What was the minimum number of episodes in any of the series? `

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

CREATE TABLE "table1_1949994_8" (
  "no" real,
  "country" text,
  "local_title" text,
  "format" text,
  "start_date" text,
  "end_date" text,
  "episodes" real,
  "premiere_air_dates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum number of episodes in any of the series? `:
```sql
                SELECT MIN("episodes") FROM "table1_1949994_8";
```
## Task
Generate a SQL query to answer the following question:
`Name the week number for the beatles`

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

CREATE TABLE "table1_19508635_1" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the week number for the beatles`:
```sql
                SELECT "week_num" FROM "table1_19508635_1" WHERE "theme"='The Beatles';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for 1980s`

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

CREATE TABLE "table1_19508635_1" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for 1980s`:
```sql
                SELECT "result" FROM "table1_19508635_1" WHERE "theme"='1980s';
```
## Task
Generate a SQL query to answer the following question:
`Name the order number for 1960s`

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

CREATE TABLE "table1_19508635_1" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the order number for 1960s`:
```sql
                SELECT "order_num" FROM "table1_19508635_1" WHERE "theme"='1960s';
```
## Task
Generate a SQL query to answer the following question:
`Name the result for dolly parton`

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

CREATE TABLE "table1_19508635_1" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for dolly parton`:
```sql
                SELECT "result" FROM "table1_19508635_1" WHERE "original_artist"='Dolly Parton';
```
## Task
Generate a SQL query to answer the following question:
`Name the song choice for michael jackson`

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

CREATE TABLE "table1_19508635_1" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the song choice for michael jackson`:
```sql
                SELECT "song_choice" FROM "table1_19508635_1" WHERE "original_artist"='Michael Jackson';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest series number? `

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

CREATE TABLE "season_three_2011" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest series number? `:
```sql
                SELECT MAX("series_num") FROM "season_three_2011";
```
## Task
Generate a SQL query to answer the following question:
`What is the latest episode number with the title of Jerusalem? `

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

CREATE TABLE "season_three_2011" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest episode number with the title of Jerusalem? `:
```sql
                SELECT MAX("episode_num") FROM "season_three_2011" WHERE "title"='Jerusalem';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date of the episode written by Michelle Offen?`

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

CREATE TABLE "season_three_2011" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date of the episode written by Michelle Offen?`:
```sql
                SELECT "original_airdate" FROM "season_three_2011" WHERE "written_by"='Michelle Offen';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode written by Vanessa Bates? `

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

CREATE TABLE "season_three_2011" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode written by Vanessa Bates? `:
```sql
                SELECT "title" FROM "season_three_2011" WHERE "written_by"='Vanessa Bates';
```
## Task
Generate a SQL query to answer the following question:
`What was the original air date for the episode Calle, The Transit of Venus? `

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

CREATE TABLE "season_three_2011" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original air date for the episode Calle, The Transit of Venus? `:
```sql
                SELECT "original_airdate" FROM "season_three_2011" WHERE "title"='The Transit of Venus';
```
## Task
Generate a SQL query to answer the following question:
`What is the completion percentage when yards per attempt was done by Steve McNair : 2003?`

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

CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" (
  "rank" text,
  "rating" text,
  "completion_percentage" text,
  "touchdown_percentage" text,
  "yards_per_attempt" text,
  "total_yards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the completion percentage when yards per attempt was done by Steve McNair : 2003?`:
```sql
                SELECT "completion_percentage" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "yards_per_attempt"='Steve McNair : 2003';
```
## Task
Generate a SQL query to answer the following question:
`What rank has a rating of 146.8? `

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

CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" (
  "rank" text,
  "rating" text,
  "completion_percentage" text,
  "touchdown_percentage" text,
  "yards_per_attempt" text,
  "total_yards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What rank has a rating of 146.8? `:
```sql
                SELECT "rank" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "rating"='146.8';
```
## Task
Generate a SQL query to answer the following question:
`How many yards per attempt were there when total yards were 513?`

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

CREATE TABLE "top_10_games_of_400_or_more_yards_by_cat" (
  "rank" text,
  "rating" text,
  "completion_percentage" text,
  "touchdown_percentage" text,
  "yards_per_attempt" text,
  "total_yards" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards per attempt were there when total yards were 513?`:
```sql
                SELECT "yards_per_attempt" FROM "top_10_games_of_400_or_more_yards_by_cat" WHERE "total_yards"='513';
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for the episode written by Kristen Dunphy and David Ogilvy?`

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

CREATE TABLE "season_two_2009" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for the episode written by Kristen Dunphy and David Ogilvy?`:
```sql
                SELECT MAX("series_num") FROM "season_two_2009" WHERE "written_by"='Kristen Dunphy and David Ogilvy';
```
## Task
Generate a SQL query to answer the following question:
`If the title if the Lost Boy, how many directors were there?`

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

CREATE TABLE "season_two_2009" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the title if the Lost Boy, how many directors were there?`:
```sql
                SELECT COUNT("directed_by") FROM "season_two_2009" WHERE "title"='The Lost Boy';
```
## Task
Generate a SQL query to answer the following question:
`What is the title for the episode that written by Michael Miller?`

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

CREATE TABLE "season_two_2009" (
  "series_num" real,
  "episode_num" real,
  "title" text,
  "written_by" text,
  "directed_by" text,
  "viewers" real,
  "original_airdate" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title for the episode that written by Michael Miller?`:
```sql
                SELECT "title" FROM "season_two_2009" WHERE "written_by"='Michael Miller';
```
## Task
Generate a SQL query to answer the following question:
`If the playoff berth is 17, what is the AFC championship number?`

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

CREATE TABLE "total_playoff_berths_while_in_the_afl_af" (
  "team" text,
  "division_titles" real,
  "playoff_berths" real,
  "afl_titles" real,
  "afc_championships" real,
  "super_bowl_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the playoff berth is 17, what is the AFC championship number?`:
```sql
                SELECT "afc_championships" FROM "total_playoff_berths_while_in_the_afl_af" WHERE "playoff_berths"=17;
```
## Task
Generate a SQL query to answer the following question:
`If the team in the New England Patriots, what is the super bowl championship minimum number?`

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

CREATE TABLE "total_playoff_berths_while_in_the_afl_af" (
  "team" text,
  "division_titles" real,
  "playoff_berths" real,
  "afl_titles" real,
  "afc_championships" real,
  "super_bowl_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the team in the New England Patriots, what is the super bowl championship minimum number?`:
```sql
                SELECT MIN("super_bowl_championships") FROM "total_playoff_berths_while_in_the_afl_af" WHERE "team"='New England Patriots';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum number of AFC championships?`

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

CREATE TABLE "total_playoff_berths_while_in_the_afl_af" (
  "team" text,
  "division_titles" real,
  "playoff_berths" real,
  "afl_titles" real,
  "afc_championships" real,
  "super_bowl_championships" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum number of AFC championships?`:
```sql
                SELECT MAX("afc_championships") FROM "total_playoff_berths_while_in_the_afl_af";
```
## Task
Generate a SQL query to answer the following question:
`How many authors are present when the original was Carry On?`

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

CREATE TABLE "table1_19523708_1" (
  "draw" real,
  "artist" text,
  "original" text,
  "english_meaning" text,
  "language" text,
  "authors" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many authors are present when the original was Carry On?`:
```sql
                SELECT COUNT("authors") FROM "table1_19523708_1" WHERE "original"='Carry On';
```
## Task
Generate a SQL query to answer the following question:
`What was the draw for the english meaning Eyes that Never Lie?`

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

CREATE TABLE "table1_19523708_1" (
  "draw" real,
  "artist" text,
  "original" text,
  "english_meaning" text,
  "language" text,
  "authors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the draw for the english meaning Eyes that Never Lie?`:
```sql
                SELECT "draw" FROM "table1_19523708_1" WHERE "language"='English' AND "english_meaning"='Eyes That Never Lie';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest draw represented?`

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

CREATE TABLE "table1_19523708_1" (
  "draw" real,
  "artist" text,
  "original" text,
  "english_meaning" text,
  "language" text,
  "authors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest draw represented?`:
```sql
                SELECT MAX("draw") FROM "table1_19523708_1";
```
## Task
Generate a SQL query to answer the following question:
`Who was the artist for the origin Shake it, Europe?`

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

CREATE TABLE "table1_19523708_1" (
  "draw" real,
  "artist" text,
  "original" text,
  "english_meaning" text,
  "language" text,
  "authors" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the artist for the origin Shake it, Europe?`:
```sql
                SELECT "artist" FROM "table1_19523708_1" WHERE "original"='Shake It, Europe';
```
## Task
Generate a SQL query to answer the following question:
`What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?`

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

CREATE TABLE "teams" (
  "previous_season_2007_2008" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the arena capacity of the arena in the town whose head coach is Yuriy Korotkevich?`:
```sql
                SELECT COUNT("arena_capacity") FROM "teams" WHERE "head_coach"='Yuriy Korotkevich';
```
## Task
Generate a SQL query to answer the following question:
`What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?`

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

CREATE TABLE "teams" (
  "previous_season_2007_2008" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti?`:
```sql
                SELECT "arena_capacity" FROM "teams" WHERE "head_coach"='Roberto Serniotti';
```
## Task
Generate a SQL query to answer the following question:
`Who are the foreign players on team/s that play in Moscow?`

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

CREATE TABLE "teams" (
  "previous_season_2007_2008" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the foreign players on team/s that play in Moscow?`:
```sql
                SELECT "foreign_players_max_2" FROM "teams" WHERE "town"='Moscow';
```
## Task
Generate a SQL query to answer the following question:
`What are the previous season ranks of teams whose website is www.novavolley.narod.ru?`

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

CREATE TABLE "teams" (
  "previous_season_2007_2008" text,
  "team" text,
  "town" text,
  "arena_capacity" text,
  "website" text,
  "head_coach" text,
  "foreign_players_max_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the previous season ranks of teams whose website is www.novavolley.narod.ru?`:
```sql
                SELECT "previous_season_2007_2008" FROM "teams" WHERE "website"='www.novavolley.narod.ru';
```
## Task
Generate a SQL query to answer the following question:
`What are the minimum indoor results that have a 5 for inspection? `

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

CREATE TABLE "2013_national_color_guard_competition_re" (
  "region" text,
  "wing" text,
  "inspection" real,
  "standard" real,
  "indoor" real,
  "outdoor" real,
  "written" real,
  "panel_quiz" real,
  "mile_run" real,
  "points" real,
  "overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the minimum indoor results that have a 5 for inspection? `:
```sql
                SELECT MIN("indoor") FROM "2013_national_color_guard_competition_re" WHERE "inspection"=5;
```
## Task
Generate a SQL query to answer the following question:
`What was the maximum number in written when the standard was 2? `

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

CREATE TABLE "2013_national_color_guard_competition_re" (
  "region" text,
  "wing" text,
  "inspection" real,
  "standard" real,
  "indoor" real,
  "outdoor" real,
  "written" real,
  "panel_quiz" real,
  "mile_run" real,
  "points" real,
  "overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the maximum number in written when the standard was 2? `:
```sql
                SELECT MAX("written") FROM "2013_national_color_guard_competition_re" WHERE "standard"=2;
```
## Task
Generate a SQL query to answer the following question:
`How many point categories are there for the 3 mile run? `

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

CREATE TABLE "2013_national_color_guard_competition_re" (
  "region" text,
  "wing" text,
  "inspection" real,
  "standard" real,
  "indoor" real,
  "outdoor" real,
  "written" real,
  "panel_quiz" real,
  "mile_run" real,
  "points" real,
  "overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many point categories are there for the 3 mile run? `:
```sql
                SELECT COUNT("points") FROM "2013_national_color_guard_competition_re" WHERE "mile_run"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the indoor number for the NJ wing/ `

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

CREATE TABLE "2013_national_color_guard_competition_re" (
  "region" text,
  "wing" text,
  "inspection" real,
  "standard" real,
  "indoor" real,
  "outdoor" real,
  "written" real,
  "panel_quiz" real,
  "mile_run" real,
  "points" real,
  "overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the indoor number for the NJ wing/ `:
```sql
                SELECT "indoor" FROM "2013_national_color_guard_competition_re" WHERE "wing"='NJ';
```
## Task
Generate a SQL query to answer the following question:
`What is the indoor number for the NER region? `

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

CREATE TABLE "2013_national_color_guard_competition_re" (
  "region" text,
  "wing" text,
  "inspection" real,
  "standard" real,
  "indoor" real,
  "outdoor" real,
  "written" real,
  "panel_quiz" real,
  "mile_run" real,
  "points" real,
  "overall" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the indoor number for the NER region? `:
```sql
                SELECT COUNT("indoor") FROM "2013_national_color_guard_competition_re" WHERE "region"='NER';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning span of the name martin kaymer?`

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

CREATE TABLE "detailed_criteria" (
  "rank" text,
  "name" text,
  "lifespan" text,
  "country" text,
  "wins" real,
  "majors" real,
  "winning_span" text,
  "span_years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning span of the name martin kaymer?`:
```sql
                SELECT "winning_span" FROM "detailed_criteria" WHERE "name"='Martin Kaymer';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning span in the country of England with the name of paul casey?`

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

CREATE TABLE "detailed_criteria" (
  "rank" text,
  "name" text,
  "lifespan" text,
  "country" text,
  "wins" real,
  "majors" real,
  "winning_span" text,
  "span_years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning span in the country of England with the name of paul casey?`:
```sql
                SELECT "winning_span" FROM "detailed_criteria" WHERE "country"='England' AND "name"='Paul Casey';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning span for the name of bernard gallacher?`

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

CREATE TABLE "detailed_criteria" (
  "rank" text,
  "name" text,
  "lifespan" text,
  "country" text,
  "wins" real,
  "majors" real,
  "winning_span" text,
  "span_years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning span for the name of bernard gallacher?`:
```sql
                SELECT "winning_span" FROM "detailed_criteria" WHERE "name"='Bernard Gallacher';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning span with the rank of 5?`

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

CREATE TABLE "detailed_criteria" (
  "rank" text,
  "name" text,
  "lifespan" text,
  "country" text,
  "wins" real,
  "majors" real,
  "winning_span" text,
  "span_years" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning span with the rank of 5?`:
```sql
                SELECT "winning_span" FROM "detailed_criteria" WHERE "rank"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many scorecards are there for the match on October 28? `

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

CREATE TABLE "table1_19576091_1" (
  "scorecard" real,
  "date" text,
  "venue" text,
  "team_1" text,
  "team_2" text,
  "result" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many scorecards are there for the match on October 28? `:
```sql
                SELECT COUNT("scorecard") FROM "table1_19576091_1" WHERE "date"='October 28';
```
## Task
Generate a SQL query to answer the following question:
`How many venues were there for the match on November 6? `

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

CREATE TABLE "table1_19576091_1" (
  "scorecard" real,
  "date" text,
  "venue" text,
  "team_1" text,
  "team_2" text,
  "result" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many venues were there for the match on November 6? `:
```sql
                SELECT COUNT("venue") FROM "table1_19576091_1" WHERE "date"='November 6';
```
## Task
Generate a SQL query to answer the following question:
`What was the venue for the match on October 10? `

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

CREATE TABLE "table1_19576091_1" (
  "scorecard" real,
  "date" text,
  "venue" text,
  "team_1" text,
  "team_2" text,
  "result" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue for the match on October 10? `:
```sql
                SELECT "venue" FROM "table1_19576091_1" WHERE "date"='October 10';
```
## Task
Generate a SQL query to answer the following question:
`Who was the man of the match when the Rockets won by 9 wickets? `

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

CREATE TABLE "table1_19576091_1" (
  "scorecard" real,
  "date" text,
  "venue" text,
  "team_1" text,
  "team_2" text,
  "result" text,
  "man_of_the_match" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the man of the match when the Rockets won by 9 wickets? `:
```sql
                SELECT "man_of_the_match" FROM "table1_19576091_1" WHERE "result"='Rockets won by 9 wickets';
```
## Task
Generate a SQL query to answer the following question:
`Name the vacator for wisconsin 1st`

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

CREATE TABLE "table1_1958768_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the vacator for wisconsin 1st`:
```sql
                SELECT "vacator" FROM "table1_1958768_3" WHERE "district"='Wisconsin 1st';
```
## Task
Generate a SQL query to answer the following question:
`Name the successor for pennsylvania 15th`

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

CREATE TABLE "table1_1958768_3" (
  "district" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the successor for pennsylvania 15th`:
```sql
                SELECT "successor" FROM "table1_1958768_3" WHERE "district"='Pennsylvania 15th';
```
## Task
Generate a SQL query to answer the following question:
`Name the circuit for #47 orbit racing `

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

CREATE TABLE "table1_19598014_2" (
  "rnd" real,
  "circuit" text,
  "lmp1_winning_team" text,
  "lmp2_winning_team" text,
  "gt2_winning_team" text,
  "challenge_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the circuit for #47 orbit racing `:
```sql
                SELECT "circuit" FROM "table1_19598014_2" WHERE "challenge_winning_team"='#47 Orbit Racing';
```
## Task
Generate a SQL query to answer the following question:
`Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin`

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

CREATE TABLE "table1_19598014_2" (
  "rnd" real,
  "circuit" text,
  "lmp1_winning_team" text,
  "lmp2_winning_team" text,
  "gt2_winning_team" text,
  "challenge_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gt2 winning team where lmp2 winning team and butch leitzinger marino franchitti ben devlin`:
```sql
                SELECT "gt2_winning_team" FROM "table1_19598014_2" WHERE "lmp2_winning_team"='Butch Leitzinger Marino Franchitti Ben Devlin';
```
## Task
Generate a SQL query to answer the following question:
`Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz`

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

CREATE TABLE "table1_19598014_2" (
  "rnd" real,
  "circuit" text,
  "lmp1_winning_team" text,
  "lmp2_winning_team" text,
  "gt2_winning_team" text,
  "challenge_winning_team" text,
  "results" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lmp 1 winning team for rnd being 2 and adrian fernández luis díaz`:
```sql
                SELECT "lmp1_winning_team" FROM "table1_19598014_2" WHERE "rnd"=2 AND "lmp2_winning_team"='Adrian Fernández Luis Díaz';
```
## Task
Generate a SQL query to answer the following question:
`Which capitals have an area of exactly 377930 square km?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" real,
  "population" real,
  "population_density_per_km" real,
  "hdi_2011" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which capitals have an area of exactly 377930 square km?`:
```sql
                SELECT "capital" FROM "demographics" WHERE "area_km"=377930;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of capitals that have an area of exactly 1104 square km?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" real,
  "population" real,
  "population_density_per_km" real,
  "hdi_2011" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of capitals that have an area of exactly 1104 square km?`:
```sql
                SELECT COUNT("capital") FROM "demographics" WHERE "area_km"=1104;
```
## Task
Generate a SQL query to answer the following question:
`What capital has a population of exactly 1339724852?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" real,
  "population" real,
  "population_density_per_km" real,
  "hdi_2011" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `What capital has a population of exactly 1339724852?`:
```sql
                SELECT "capital" FROM "demographics" WHERE "population"=1339724852;
```
## Task
Generate a SQL query to answer the following question:
`How many populations have a capital of Hong Kong?`

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

CREATE TABLE "demographics" (
  "country" text,
  "area_km" real,
  "population" real,
  "population_density_per_km" real,
  "hdi_2011" text,
  "capital" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many populations have a capital of Hong Kong?`:
```sql
                SELECT COUNT("population") FROM "demographics" WHERE "capital"='Hong Kong';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?`

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

CREATE TABLE "wise_district_demographics_http_gov_bih_" (
  "districts_of_bihar" text,
  "total_population_2001" real,
  "male_population_2001" real,
  "female_population_2001" real,
  "growth_rate_1981_91" text,
  "growth_rate_1991_01" text,
  "sex_ratio_1991" real,
  "sex_ratio_2001" real,
  "population_density_1991" real,
  "population_density_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for the male population in 2001 with a growth rate in 1991-01 of 36.16?`:
```sql
                SELECT "male_population_2001" FROM "wise_district_demographics_http_gov_bih_" WHERE "growth_rate_1991_01"='36.16';
```
## Task
Generate a SQL query to answer the following question:
`What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?`

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

CREATE TABLE "wise_district_demographics_http_gov_bih_" (
  "districts_of_bihar" text,
  "total_population_2001" real,
  "male_population_2001" real,
  "female_population_2001" real,
  "growth_rate_1981_91" text,
  "growth_rate_1991_01" text,
  "sex_ratio_1991" real,
  "sex_ratio_2001" real,
  "population_density_1991" real,
  "population_density_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least value for total population in 2001 with a growth rate in 1991-01 of 33.08?`:
```sql
                SELECT MIN("total_population_2001") FROM "wise_district_demographics_http_gov_bih_" WHERE "growth_rate_1991_01"='33.08';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for male population in 2001 when sex ratio in 1991 is 896?`

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

CREATE TABLE "wise_district_demographics_http_gov_bih_" (
  "districts_of_bihar" text,
  "total_population_2001" real,
  "male_population_2001" real,
  "female_population_2001" real,
  "growth_rate_1981_91" text,
  "growth_rate_1991_01" text,
  "sex_ratio_1991" real,
  "sex_ratio_2001" real,
  "population_density_1991" real,
  "population_density_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for male population in 2001 when sex ratio in 1991 is 896?`:
```sql
                SELECT "male_population_2001" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_1991"=896;
```
## Task
Generate a SQL query to answer the following question:
`What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?`

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

CREATE TABLE "wise_district_demographics_http_gov_bih_" (
  "districts_of_bihar" text,
  "total_population_2001" real,
  "male_population_2001" real,
  "female_population_2001" real,
  "growth_rate_1981_91" text,
  "growth_rate_1991_01" text,
  "sex_ratio_1991" real,
  "sex_ratio_2001" real,
  "population_density_1991" real,
  "population_density_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is every growth rate in 1991-2001 when sex ratio in 2001 is 937?`:
```sql
                SELECT "growth_rate_1991_01" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_2001"=937;
```
## Task
Generate a SQL query to answer the following question:
`What districts of Bihar have a sex ratio in 1991 of 864?`

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

CREATE TABLE "wise_district_demographics_http_gov_bih_" (
  "districts_of_bihar" text,
  "total_population_2001" real,
  "male_population_2001" real,
  "female_population_2001" real,
  "growth_rate_1981_91" text,
  "growth_rate_1991_01" text,
  "sex_ratio_1991" real,
  "sex_ratio_2001" real,
  "population_density_1991" real,
  "population_density_2001" real
);
### SQL
Given the database schema, here is the SQL query that answers `What districts of Bihar have a sex ratio in 1991 of 864?`:
```sql
                SELECT "districts_of_bihar" FROM "wise_district_demographics_http_gov_bih_" WHERE "sex_ratio_1991"=864;
```
## Task
Generate a SQL query to answer the following question:
`How many marriages between women have % same-sex marriages of 1.06?`

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

CREATE TABLE "marriage_statistics" (
  "year" text,
  "marriages_between_men" real,
  "marriages_between_women" real,
  "same_sex_marriages" real,
  "total_marriages" real,
  "pct_same_sex_marriages" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many marriages between women have % same-sex marriages of 1.06?`:
```sql
                SELECT "marriages_between_women" FROM "marriage_statistics" WHERE "pct_same_sex_marriages"='1.06';
```
## Task
Generate a SQL query to answer the following question:
`What is the % of same-sex marriages for the year of 2011?`

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

CREATE TABLE "marriage_statistics" (
  "year" text,
  "marriages_between_men" real,
  "marriages_between_women" real,
  "same_sex_marriages" real,
  "total_marriages" real,
  "pct_same_sex_marriages" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the % of same-sex marriages for the year of 2011?`:
```sql
                SELECT "pct_same_sex_marriages" FROM "marriage_statistics" WHERE "year"='2011';
```
## Task
Generate a SQL query to answer the following question:
`How many % same-sex marriages are there for the year 2008?`

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

CREATE TABLE "marriage_statistics" (
  "year" text,
  "marriages_between_men" real,
  "marriages_between_women" real,
  "same_sex_marriages" real,
  "total_marriages" real,
  "pct_same_sex_marriages" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many % same-sex marriages are there for the year 2008?`:
```sql
                SELECT COUNT("pct_same_sex_marriages") FROM "marriage_statistics" WHERE "year"='2008';
```
## Task
Generate a SQL query to answer the following question:
`How many % same-sex marriages are marriages between men for 923? `

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

CREATE TABLE "marriage_statistics" (
  "year" text,
  "marriages_between_men" real,
  "marriages_between_women" real,
  "same_sex_marriages" real,
  "total_marriages" real,
  "pct_same_sex_marriages" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many % same-sex marriages are marriages between men for 923? `:
```sql
                SELECT COUNT("pct_same_sex_marriages") FROM "marriage_statistics" WHERE "marriages_between_men"=923;
```
## Task
Generate a SQL query to answer the following question:
`When was the episode number 2 originally aired?`

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

CREATE TABLE "table1_19632728_1" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode number 2 originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_19632728_1" WHERE "episode_num"=2;
```
## Task
Generate a SQL query to answer the following question:
`When was the episode titled "The Parachute of Healing" originally aired?`

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

CREATE TABLE "table1_19632728_1" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the episode titled "The Parachute of Healing" originally aired?`:
```sql
                SELECT "original_air_date" FROM "table1_19632728_1" WHERE "title"='\"The Parachute of Healing\"';
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer of the episode titled "The Parachute of Healing"?`

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

CREATE TABLE "table1_19632728_1" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of the episode titled "The Parachute of Healing"?`:
```sql
                SELECT "writer_s" FROM "table1_19632728_1" WHERE "title"='\"The Parachute of Healing\"';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest season number?`

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

CREATE TABLE "table1_19632728_1" (
  "season_num" real,
  "episode_num" real,
  "title" text,
  "director_s" text,
  "writer_s" text,
  "original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest season number?`:
```sql
                SELECT MAX("season_num") FROM "table1_19632728_1";
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory of Steve Stricker as a runner up?`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory of Steve Stricker as a runner up?`:
```sql
                SELECT "margin_of_victory" FROM "pga_tour_wins_8" WHERE "runner_s_up"='Steve Stricker';
```
## Task
Generate a SQL query to answer the following question:
`How many to par has the winning score of 69-66-68=203.`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many to par has the winning score of 69-66-68=203.`:
```sql
                SELECT "to_par" FROM "pga_tour_wins_8" WHERE "winning_score"='69-66-68=203';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum number of the bmw championship tournament.`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum number of the bmw championship tournament.`:
```sql
                SELECT MIN("no") FROM "pga_tour_wins_8" WHERE "tournament"='BMW Championship';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of  John Merrick as a runner up?`

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

CREATE TABLE "pga_tour_wins_8" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of  John Merrick as a runner up?`:
```sql
                SELECT COUNT("no") FROM "pga_tour_wins_8" WHERE "runner_s_up"='John Merrick';
```
## Task
Generate a SQL query to answer the following question:
`What horses does r. a. Scott own?`

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

CREATE TABLE "competitors_and_betting" (
  "sp" text,
  "number" real,
  "horse" text,
  "age" real,
  "handicap_st_lb" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "colours" text,
  "finishing_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What horses does r. a. Scott own?`:
```sql
                SELECT "horse" FROM "competitors_and_betting" WHERE "owner"='R. A. Scott';
```