cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What's Eli Bremer's fencing score?`

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

CREATE TABLE "men" (
  "num" real,
  "athlete_noc" text,
  "shooting" text,
  "fencing" text,
  "swimming" text,
  "riding" text,
  "running" text,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What's Eli Bremer's fencing score?`:
```sql
                SELECT "fencing" FROM "men" WHERE "athlete_noc"='Eli Bremer';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of titles written by Casey Johnson?`

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

CREATE TABLE "table1_12419515_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of titles written by Casey Johnson?`:
```sql
                SELECT COUNT("title") FROM "table1_12419515_4" WHERE "written_by"='Casey Johnson';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the title that received 1.211 million total viewers?`

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

CREATE TABLE "table1_12419515_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the title that received 1.211 million total viewers?`:
```sql
                SELECT "written_by" FROM "table1_12419515_4" WHERE "total_viewers_in_millions"='1.211';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the title that was written by Adam Milch?`

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

CREATE TABLE "table1_12419515_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the title that was written by Adam Milch?`:
```sql
                SELECT "directed_by" FROM "table1_12419515_4" WHERE "written_by"='Adam Milch';
```
## Task
Generate a SQL query to answer the following question:
`How many millions of total viewers watched series #57?`

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

CREATE TABLE "table1_12419515_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of total viewers watched series #57?`:
```sql
                SELECT COUNT("total_viewers_in_millions") FROM "table1_12419515_4" WHERE "series_num"=57;
```
## Task
Generate a SQL query to answer the following question:
`How many millions of total viewers watched season #8?`

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

CREATE TABLE "table1_12419515_4" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "total_viewers_in_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many millions of total viewers watched season #8?`:
```sql
                SELECT "total_viewers_in_millions" FROM "table1_12419515_4" WHERE "season_num"=8;
```
## Task
Generate a SQL query to answer the following question:
`What is the English spelling of the strongs transliteration: 'adoniyah?`

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

CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
  "strongs_num" text,
  "hebrew_word" text,
  "strongs_transliteration" text,
  "strongs_words_compounded" text,
  "english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the English spelling of the strongs transliteration: 'adoniyah?`:
```sql
                SELECT "english_spelling" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_transliteration"='''Adoniyah';
```
## Task
Generate a SQL query to answer the following question:
`What is the hebrew word listed for strongs # 5418?`

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

CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
  "strongs_num" text,
  "hebrew_word" text,
  "strongs_transliteration" text,
  "strongs_words_compounded" text,
  "english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hebrew word listed for strongs # 5418?`:
```sql
                SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_num"='5418';
```
## Task
Generate a SQL query to answer the following question:
`List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu`

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

CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
  "strongs_num" text,
  "hebrew_word" text,
  "strongs_transliteration" text,
  "strongs_words_compounded" text,
  "english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the hebrew word for the strongs words compounded of 'adown [# 113] & yahu`:
```sql
                SELECT "hebrew_word" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "strongs_words_compounded"='''adown [# 113] & Yahu';
```
## Task
Generate a SQL query to answer the following question:
`What is the strongs # for the hebrew word יִרְמְיָה?`

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

CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
  "strongs_num" text,
  "hebrew_word" text,
  "strongs_transliteration" text,
  "strongs_words_compounded" text,
  "english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the strongs # for the hebrew word יִרְמְיָה?`:
```sql
                SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "hebrew_word"='יִרְמְיָה';
```
## Task
Generate a SQL query to answer the following question:
`What is the strongs # for the english spelling of the word  jirmejah?`

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

CREATE TABLE "table_of_theophoric_names_with_yah_and_y" (
  "strongs_num" text,
  "hebrew_word" text,
  "strongs_transliteration" text,
  "strongs_words_compounded" text,
  "english_spelling" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the strongs # for the english spelling of the word  jirmejah?`:
```sql
                SELECT "strongs_num" FROM "table_of_theophoric_names_with_yah_and_y" WHERE "english_spelling"='Jirmejah';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest year that 6th, Heartland is regular season?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest year that 6th, Heartland is regular season?`:
```sql
                SELECT MAX("year") FROM "year_by_year" WHERE "regular_season"='6th, Heartland';
```
## Task
Generate a SQL query to answer the following question:
`Which regular season contains playoffs in division finals?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which regular season contains playoffs in division finals?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "playoffs"='Division Finals';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest year that regular season is 4th, Rocky Mountain?`

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

CREATE TABLE "year_by_year" (
  "year" real,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest year that regular season is 4th, Rocky Mountain?`:
```sql
                SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='4th, Rocky Mountain';
```
## Task
Generate a SQL query to answer the following question:
`How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?`

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

CREATE TABLE "table1_12444503_1" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "lost_to_eventual_winner" text,
  "lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players lost to eventual winner in the season when ASC Jeanne d'Arc lost to eventual runner up?`:
```sql
                SELECT COUNT("lost_to_eventual_winner") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='ASC Jeanne d''Arc';
```
## Task
Generate a SQL query to answer the following question:
`What's the number of seasons i which USC Bassam lost to eventual runner-up?`

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

CREATE TABLE "table1_12444503_1" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "lost_to_eventual_winner" text,
  "lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the number of seasons i which USC Bassam lost to eventual runner-up?`:
```sql
                SELECT COUNT("season") FROM "table1_12444503_1" WHERE "lost_to_eventual_runner_up"='USC Bassam';
```
## Task
Generate a SQL query to answer the following question:
`In which season was Jeanne d'Arc (Bamako) the runner-up?`

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

CREATE TABLE "table1_12444503_1" (
  "season" text,
  "winner" text,
  "score" text,
  "runner_up" text,
  "lost_to_eventual_winner" text,
  "lost_to_eventual_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was Jeanne d'Arc (Bamako) the runner-up?`:
```sql
                SELECT "season" FROM "table1_12444503_1" WHERE "runner_up"='Jeanne d''Arc (Bamako)';
```
## Task
Generate a SQL query to answer the following question:
`What was the regular season listing in 2007?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the regular season listing in 2007?`:
```sql
                SELECT "regular_season" FROM "year_by_year" WHERE "year"='2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the playoff result in 2002?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the playoff result in 2002?`:
```sql
                SELECT "playoffs" FROM "year_by_year" WHERE "year"='2002';
```
## Task
Generate a SQL query to answer the following question:
`What was the open cup results in 2004?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the open cup results in 2004?`:
```sql
                SELECT "open_cup" FROM "year_by_year" WHERE "year"='2004';
```
## Task
Generate a SQL query to answer the following question:
`How many divisions were listed in 2006?`

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

CREATE TABLE "year_by_year" (
  "year" text,
  "division" real,
  "league" text,
  "regular_season" text,
  "playoffs" text,
  "open_cup" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many divisions were listed in 2006?`:
```sql
                SELECT COUNT("division") FROM "year_by_year" WHERE "year"='2006';
```
## Task
Generate a SQL query to answer the following question:
`Kevin lucas appears in which seasons?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `Kevin lucas appears in which seasons?`:
```sql
                SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Kevin Lucas';
```
## Task
Generate a SQL query to answer the following question:
`How many people named Nick Lucas are on the show?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people named Nick Lucas are on the show?`:
```sql
                SELECT COUNT("portrayed_by") FROM "cast_members" WHERE "character"='Nick Lucas';
```
## Task
Generate a SQL query to answer the following question:
`What seasons does stella malone appear?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does stella malone appear?`:
```sql
                SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Stella Malone';
```
## Task
Generate a SQL query to answer the following question:
`What seasons does Nick lucas appear?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Nick lucas appear?`:
```sql
                SELECT "main_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';
```
## Task
Generate a SQL query to answer the following question:
`What seasons does Kevin Jonas appear?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Kevin Jonas appear?`:
```sql
                SELECT "main_cast_seasons" FROM "cast_members" WHERE "portrayed_by"='Kevin Jonas';
```
## Task
Generate a SQL query to answer the following question:
`What seasons does Nick Lucas appear in?`

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

CREATE TABLE "cast_members" (
  "character" text,
  "portrayed_by" text,
  "main_cast_seasons" text,
  "recurring_cast_seasons" text,
  "num_of_episodes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What seasons does Nick Lucas appear in?`:
```sql
                SELECT "recurring_cast_seasons" FROM "cast_members" WHERE "character"='Nick Lucas';
```
## Task
Generate a SQL query to answer the following question:
`How many networks aired the franchise in 1981 only?`

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

CREATE TABLE "all_in_the_family_till_death_us_do_part" (
  "region_country" text,
  "local_name" text,
  "network" text,
  "dates_aired" text,
  "starring" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many networks aired the franchise in 1981 only?`:
```sql
                SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "dates_aired"='1981';
```
## Task
Generate a SQL query to answer the following question:
`In how many networks the local name of the franchise was "in sickness and in health"?`

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

CREATE TABLE "all_in_the_family_till_death_us_do_part" (
  "region_country" text,
  "local_name" text,
  "network" text,
  "dates_aired" text,
  "starring" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many networks the local name of the franchise was "in sickness and in health"?`:
```sql
                SELECT COUNT("network") FROM "all_in_the_family_till_death_us_do_part" WHERE "local_name"='In Sickness and in Health';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of season 3 ep# 12?`

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

CREATE TABLE "table1_12451376_3" (
  "series_ep_num" real,
  "season_3_ep_num" real,
  "title" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text,
  "production_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of season 3 ep# 12?`:
```sql
                SELECT "title" FROM "table1_12451376_3" WHERE "season_3_ep_num"=12;
```
## Task
Generate a SQL query to answer the following question:
`What is the length of the track named michigan international speedway?`

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

CREATE TABLE "isc_tracks" (
  "track_name" text,
  "location" text,
  "length" text,
  "seating" real,
  "year_opened" real,
  "year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the length of the track named michigan international speedway?`:
```sql
                SELECT "length" FROM "isc_tracks" WHERE "track_name"='Michigan International Speedway';
```
## Task
Generate a SQL query to answer the following question:
`Where is the track that opened in 1995?`

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

CREATE TABLE "isc_tracks" (
  "track_name" text,
  "location" text,
  "length" text,
  "seating" real,
  "year_opened" real,
  "year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the track that opened in 1995?`:
```sql
                SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1995;
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the daytona international speedway?`

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

CREATE TABLE "isc_tracks" (
  "track_name" text,
  "location" text,
  "length" text,
  "seating" real,
  "year_opened" real,
  "year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the daytona international speedway?`:
```sql
                SELECT "location" FROM "isc_tracks" WHERE "track_name"='Daytona International Speedway';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the track that opened in 1950?`

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

CREATE TABLE "isc_tracks" (
  "track_name" text,
  "location" text,
  "length" text,
  "seating" real,
  "year_opened" real,
  "year_acquired_a" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the track that opened in 1950?`:
```sql
                SELECT "location" FROM "isc_tracks" WHERE "year_opened"=1950;
```
## Task
Generate a SQL query to answer the following question:
`What is the power of the 3.2i v8 32v?`

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

CREATE TABLE "table1_1245350_1" (
  "quattroporte_iv" text,
  "units_produced" real,
  "production_period" text,
  "engine_capacity" text,
  "power" text,
  "max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the power of the 3.2i v8 32v?`:
```sql
                SELECT "power" FROM "table1_1245350_1" WHERE "quattroporte_iv"='3.2i V8 32v';
```
## Task
Generate a SQL query to answer the following question:
`What type of quattroporte iv only produced 340 units?`

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

CREATE TABLE "table1_1245350_1" (
  "quattroporte_iv" text,
  "units_produced" real,
  "production_period" text,
  "engine_capacity" text,
  "power" text,
  "max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of quattroporte iv only produced 340 units?`:
```sql
                SELECT "quattroporte_iv" FROM "table1_1245350_1" WHERE "units_produced"=340;
```
## Task
Generate a SQL query to answer the following question:
`When were 668 units produced?`

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

CREATE TABLE "table1_1245350_1" (
  "quattroporte_iv" text,
  "units_produced" real,
  "production_period" text,
  "engine_capacity" text,
  "power" text,
  "max_speed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When were 668 units produced?`:
```sql
                SELECT "production_period" FROM "table1_1245350_1" WHERE "units_produced"=668;
```
## Task
Generate a SQL query to answer the following question:
`what is the overall record when the club is dallas burn?`

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

CREATE TABLE "table1_1246208_5" (
  "club" text,
  "overall_record" text,
  "goals_for" real,
  "goals_for_avg" text,
  "goals_against" real,
  "goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the overall record when the club is dallas burn?`:
```sql
                SELECT "overall_record" FROM "table1_1246208_5" WHERE "club"='Dallas Burn';
```
## Task
Generate a SQL query to answer the following question:
`what is the goals for when the  club is new england revolution?`

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

CREATE TABLE "table1_1246208_5" (
  "club" text,
  "overall_record" text,
  "goals_for" real,
  "goals_for_avg" text,
  "goals_against" real,
  "goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the goals for when the  club is new england revolution?`:
```sql
                SELECT "goals_for" FROM "table1_1246208_5" WHERE "club"='New England Revolution';
```
## Task
Generate a SQL query to answer the following question:
`What was the total prize money where John Tabatabai was the runner-up?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total prize money where John Tabatabai was the runner-up?`:
```sql
                SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='John Tabatabai';
```
## Task
Generate a SQL query to answer the following question:
`Who is the winner where the losing hand is Ah 7s?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the winner where the losing hand is Ah 7s?`:
```sql
                SELECT "winner" FROM "main_event_winners" WHERE "losing_hand"='Ah 7s';
```
## Task
Generate a SQL query to answer the following question:
`What was the losing hand where the winning hand was 7h 7s?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the losing hand where the winning hand was 7h 7s?`:
```sql
                SELECT "losing_hand" FROM "main_event_winners" WHERE "winning_hand"='7h 7s';
```
## Task
Generate a SQL query to answer the following question:
`How many losing hands are there before 2007?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many losing hands are there before 2007?`:
```sql
                SELECT COUNT("losing_hand") FROM "main_event_winners" WHERE "year"=2007;
```
## Task
Generate a SQL query to answer the following question:
`When Fabrizio Baldassari is the runner-up what is the total prize money?`

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

CREATE TABLE "main_event_winners" (
  "year" real,
  "winner" text,
  "winning_hand" text,
  "prize_money" text,
  "entrants" real,
  "runner_up" text,
  "losing_hand" text
);
### SQL
Given the database schema, here is the SQL query that answers `When Fabrizio Baldassari is the runner-up what is the total prize money?`:
```sql
                SELECT "prize_money" FROM "main_event_winners" WHERE "runner_up"='Fabrizio Baldassari';
```
## Task
Generate a SQL query to answer the following question:
`What is the August 15, 2012 population when the  population density of 2012 is 307?`

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the August 15, 2012 population when the  population density of 2012 is 307?`:
```sql
                SELECT MAX("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_density_2012_km_2"=307;
```
## Task
Generate a SQL query to answer the following question:
`What is the sector when the population change 2002-2012 (%) is 79.6?`

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sector when the population change 2002-2012 (%) is 79.6?`:
```sql
                SELECT "sector" FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='79.6';
```
## Task
Generate a SQL query to answer the following question:
`For the sector of Gatunda how many entires are show for the August 15, 2012 population?`

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `For the sector of Gatunda how many entires are show for the August 15, 2012 population?`:
```sql
                SELECT COUNT("population_august_15_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';
```
## Task
Generate a SQL query to answer the following question:
`When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?`

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `When the population change 2002-2012 (%) is 35.5 what is the rank in nyagatare sectors?`:
```sql
                SELECT MAX("rank_in_nyagatare_sectors_2012") FROM "list_of_nyagatare_sectors_by_population_" WHERE "population_change_2002_2012_pct"='35.5';
```
## Task
Generate a SQL query to answer the following question:
`What is the population density for 2012 for Gatunda sector?`

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the population density for 2012 for Gatunda sector?`:
```sql
                SELECT MIN("population_density_2012_km_2") FROM "list_of_nyagatare_sectors_by_population_" WHERE "sector"='Gatunda';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest population for the `

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

CREATE TABLE "list_of_nyagatare_sectors_by_population_" (
  "rank_in_nyagatare_sectors_2012" real,
  "sector" text,
  "area_in_sqkm" real,
  "population_august_15_2012" real,
  "population_august_15_2002" real,
  "population_change_2002_2012_pct" text,
  "population_density_2012_km_2" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest population for the `:
```sql
                SELECT MAX("population_august_15_2002") FROM "list_of_nyagatare_sectors_by_population_";
```
## Task
Generate a SQL query to answer the following question:
`What is the biggended for 1947?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "biggenden" real,
  "eidsvold" real,
  "gayndah" real,
  "monto" real,
  "mundubbera" real,
  "perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the biggended for 1947?`:
```sql
                SELECT MAX("biggenden") FROM "population" WHERE "year"=1947;
```
## Task
Generate a SQL query to answer the following question:
`What is the monto where the total region is 11230?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "biggenden" real,
  "eidsvold" real,
  "gayndah" real,
  "monto" real,
  "mundubbera" real,
  "perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the monto where the total region is 11230?`:
```sql
                SELECT COUNT("monto") FROM "population" WHERE "total_region"=11230;
```
## Task
Generate a SQL query to answer the following question:
`What is the gayndah when perry is 304?`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "biggenden" real,
  "eidsvold" real,
  "gayndah" real,
  "monto" real,
  "mundubbera" real,
  "perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the gayndah when perry is 304?`:
```sql
                SELECT MAX("gayndah") FROM "population" WHERE "perry"=304;
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum mundubbera when biggenden is 1882`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "biggenden" real,
  "eidsvold" real,
  "gayndah" real,
  "monto" real,
  "mundubbera" real,
  "perry" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum mundubbera when biggenden is 1882`:
```sql
                SELECT MIN("mundubbera") FROM "population" WHERE "biggenden"=1882;
```
## Task
Generate a SQL query to answer the following question:
`The Kansas City Wizards had a 9-10-9 record and what goals against avg? `

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

CREATE TABLE "table1_1253396_5" (
  "club" text,
  "overall_record" text,
  "goals_for" real,
  "goals_for_avg" text,
  "goals_against" real,
  "goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Kansas City Wizards had a 9-10-9 record and what goals against avg? `:
```sql
                SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-10-9';
```
## Task
Generate a SQL query to answer the following question:
`The Dallas Burn had a 12-9-7 record and what number of goals for? `

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

CREATE TABLE "table1_1253396_5" (
  "club" text,
  "overall_record" text,
  "goals_for" real,
  "goals_for_avg" text,
  "goals_against" real,
  "goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Dallas Burn had a 12-9-7 record and what number of goals for? `:
```sql
                SELECT "goals_for" FROM "table1_1253396_5" WHERE "overall_record"='12-9-7';
```
## Task
Generate a SQL query to answer the following question:
`D.C. United had a 9-14-5 record and what goals against avg.?`

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

CREATE TABLE "table1_1253396_5" (
  "club" text,
  "overall_record" text,
  "goals_for" real,
  "goals_for_avg" text,
  "goals_against" real,
  "goals_against_avg" text
);
### SQL
Given the database schema, here is the SQL query that answers `D.C. United had a 9-14-5 record and what goals against avg.?`:
```sql
                SELECT "goals_against_avg" FROM "table1_1253396_5" WHERE "overall_record"='9-14-5';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest value under the column goals against?`

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

CREATE TABLE "goalkeeping_leaders" (
  "no" real,
  "player" text,
  "club" text,
  "games_played" real,
  "minutes" real,
  "goals_against" real,
  "ga_average" text,
  "wins" real,
  "loses" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest value under the column goals against?`:
```sql
                SELECT MAX("goals_against") FROM "goalkeeping_leaders";
```
## Task
Generate a SQL query to answer the following question:
`what is the date (from) where date (to) is 1919?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date (from) where date (to) is 1919?`:
```sql
                SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';
```
## Task
Generate a SQL query to answer the following question:
`how many times is the date (to) 1919?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the date (to) 1919?`:
```sql
                SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='1919';
```
## Task
Generate a SQL query to answer the following question:
`what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?`:
```sql
                SELECT "date_from" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "notes"='Apeldoornsche Tramweg-Maatschappij';
```
## Task
Generate a SQL query to answer the following question:
`how many notes are form the date (from) 14 march 1910?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many notes are form the date (from) 14 march 1910?`:
```sql
                SELECT COUNT("notes") FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='14 March 1910';
```
## Task
Generate a SQL query to answer the following question:
`what is the location for the date (to) 8 october 1922?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the location for the date (to) 8 october 1922?`:
```sql
                SELECT "location" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_to"='8 October 1922';
```
## Task
Generate a SQL query to answer the following question:
`what are the notes for date (from) 12 august 1897?`

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

CREATE TABLE "list_of_town_tramway_systems_in_the_neth" (
  "name_of_system" text,
  "location" text,
  "traction_type" text,
  "date_from" text,
  "date_to" text,
  "notes" text
);
### SQL
Given the database schema, here is the SQL query that answers `what are the notes for date (from) 12 august 1897?`:
```sql
                SELECT "notes" FROM "list_of_town_tramway_systems_in_the_neth" WHERE "date_from"='12 August 1897';
```
## Task
Generate a SQL query to answer the following question:
`what's the livingstone with fitzroy being 9499`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "rockhampton" real,
  "livingstone" real,
  "fitzroy" real,
  "mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what's the livingstone with fitzroy being 9499`:
```sql
                SELECT "livingstone" FROM "population" WHERE "fitzroy"=9499;
```
## Task
Generate a SQL query to answer the following question:
`what is the maximum total region with fitzroy being 8047`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "rockhampton" real,
  "livingstone" real,
  "fitzroy" real,
  "mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the maximum total region with fitzroy being 8047`:
```sql
                SELECT MAX("total_region") FROM "population" WHERE "fitzroy"=8047;
```
## Task
Generate a SQL query to answer the following question:
`what is the minimum rockhampton`

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

CREATE TABLE "population" (
  "year" real,
  "total_region" real,
  "rockhampton" real,
  "livingstone" real,
  "fitzroy" real,
  "mt_morgan" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the minimum rockhampton`:
```sql
                SELECT MIN("rockhampton") FROM "population";
```
## Task
Generate a SQL query to answer the following question:
`How many population figures are given for Glengallen for the year when the region's total is 30554?`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many population figures are given for Glengallen for the year when the region's total is 30554?`:
```sql
                SELECT COUNT("population_glengallan") FROM "population" WHERE "population_region_total"=30554;
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum population size in the town of Stanthorpe?`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum population size in the town of Stanthorpe?`:
```sql
                SELECT MAX("population_stanthorpe") FROM "population";
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum population size in the town of Glengallen?`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum population size in the town of Glengallen?`:
```sql
                SELECT MAX("population_glengallan") FROM "population";
```
## Task
Generate a SQL query to answer the following question:
`What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?`:
```sql
                SELECT MAX("population_stanthorpe") FROM "population" WHERE "population_rosenthal"=1548;
```
## Task
Generate a SQL query to answer the following question:
`How many population total figures are there for the year when Allora's population was 2132?`

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

CREATE TABLE "population" (
  "year" real,
  "population_region_total" real,
  "population_stanthorpe" real,
  "population_warwick" real,
  "population_allora" real,
  "population_glengallan" real,
  "population_rosenthal" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many population total figures are there for the year when Allora's population was 2132?`:
```sql
                SELECT COUNT("population_region_total") FROM "population" WHERE "population_allora"=2132;
```
## Task
Generate a SQL query to answer the following question:
`When was the ship launched when the commissioned or completed(*) is 6 june 1864?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" real,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship launched when the commissioned or completed(*) is 6 june 1864?`:
```sql
                SELECT "launched" FROM "ships" WHERE "commissioned_or_completed"='6 June 1864';
```
## Task
Generate a SQL query to answer the following question:
`When was the ship tecumseh launched?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" real,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the ship tecumseh launched?`:
```sql
                SELECT "launched" FROM "ships" WHERE "ship"='Tecumseh';
```
## Task
Generate a SQL query to answer the following question:
`What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?`

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

CREATE TABLE "ships" (
  "ship" text,
  "builder" text,
  "namesake" text,
  "renamed" text,
  "laid_down" real,
  "launched" text,
  "commissioned_or_completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the namesake of the ship that was commissioned or completed(*) 16 april 1864?`:
```sql
                SELECT "namesake" FROM "ships" WHERE "commissioned_or_completed"='16 April 1864';
```