cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the game cost for  merged with new york central to form penn central`

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

CREATE TABLE "table1_243664_1" (
  "railroad" text,
  "game_cost" text,
  "real_life_years_of_operation" text,
  "real_life_eventual_outcome" text,
  "currently_part_of" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game cost for  merged with new york central to form penn central`:
```sql
                SELECT "game_cost" FROM "table1_243664_1" WHERE "real_life_eventual_outcome"='Merged with New York Central to form Penn Central';
```
## Task
Generate a SQL query to answer the following question:
`What is the minimum 2007 USD in Kabardino-Balkaria?`

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

CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
  "rank_2008" real,
  "federal_subjects" text,
  "russian_name" text,
  "2008_rub" real,
  "2008_usd" real,
  "2007_rub" real,
  "2007_usd" real,
  "2005_rub" real,
  "2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the minimum 2007 USD in Kabardino-Balkaria?`:
```sql
                SELECT MIN("2007_usd") FROM "grp_lists_of_russian_federal_subjects_in" WHERE "federal_subjects"='Kabardino-Balkaria';
```
## Task
Generate a SQL query to answer the following question:
`What is the Russian name for the area with 139995 RUB in 2005?`

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

CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
  "rank_2008" real,
  "federal_subjects" text,
  "russian_name" text,
  "2008_rub" real,
  "2008_usd" real,
  "2007_rub" real,
  "2007_usd" real,
  "2005_rub" real,
  "2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Russian name for the area with 139995 RUB in 2005?`:
```sql
                SELECT "russian_name" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_rub"=139995;
```
## Task
Generate a SQL query to answer the following question:
`What is the 2008 USD figure for the subject with 2849 USD in 2005?`

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

CREATE TABLE "grp_lists_of_russian_federal_subjects_in" (
  "rank_2008" real,
  "federal_subjects" text,
  "russian_name" text,
  "2008_rub" real,
  "2008_usd" real,
  "2007_rub" real,
  "2007_usd" real,
  "2005_rub" real,
  "2005_usd" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2008 USD figure for the subject with 2849 USD in 2005?`:
```sql
                SELECT "2008_usd" FROM "grp_lists_of_russian_federal_subjects_in" WHERE "2005_usd"=2849;
```
## Task
Generate a SQL query to answer the following question:
`Who is every contestant for the position of 4th?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every contestant for the position of 4th?`:
```sql
                SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='4th';
```
## Task
Generate a SQL query to answer the following question:
`What is every amount for weight lost if the starting weight is 97.4?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every amount for weight lost if the starting weight is 97.4?`:
```sql
                SELECT "weight_lost_kg" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='97.4';
```
## Task
Generate a SQL query to answer the following question:
`Who is every contestant for the position of 3rd?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every contestant for the position of 3rd?`:
```sql
                SELECT "contestant" FROM "eliminated_contestants_weigh_in" WHERE "position_out_of_eliminated_contestants"='3rd';
```
## Task
Generate a SQL query to answer the following question:
`What is the starting weight if weight lost is 54.6?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the starting weight if weight lost is 54.6?`:
```sql
                SELECT "starting_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "weight_lost_kg"='54.6';
```
## Task
Generate a SQL query to answer the following question:
`What is the position for starting weight of 130.6?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position for starting weight of 130.6?`:
```sql
                SELECT "position_out_of_eliminated_contestants" FROM "eliminated_contestants_weigh_in" WHERE "starting_weight_kg"='130.6';
```
## Task
Generate a SQL query to answer the following question:
`What is the final weight for contestant Chris?`

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

CREATE TABLE "eliminated_contestants_weigh_in" (
  "contestant" text,
  "starting_weight_kg" text,
  "final_weight_kg" text,
  "weight_lost_kg" text,
  "percentage_lost" text,
  "position_out_of_eliminated_contestants" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final weight for contestant Chris?`:
```sql
                SELECT "final_weight_kg" FROM "eliminated_contestants_weigh_in" WHERE "contestant"='Chris';
```
## Task
Generate a SQL query to answer the following question:
`How many times did the sounddock series II aux in?`

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the sounddock series II aux in?`:
```sql
                SELECT COUNT("aux_in") FROM "features_comparison" WHERE "version"='SoundDock series II';
```
## Task
Generate a SQL query to answer the following question:
`Was the sounddock series I v2 iphone certified?`

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Was the sounddock series I v2 iphone certified?`:
```sql
                SELECT "i_phone_certified" FROM "features_comparison" WHERE "version"='SoundDock series I v2';
```
## Task
Generate a SQL query to answer the following question:
`How many connections aux in using FIrewire?`

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many connections aux in using FIrewire?`:
```sql
                SELECT COUNT("aux_in") FROM "features_comparison" WHERE "dock_connection"='FireWire';
```
## Task
Generate a SQL query to answer the following question:
`how many video out connections does the sounddock portable have?`

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many video out connections does the sounddock portable have?`:
```sql
                SELECT COUNT("video_out") FROM "features_comparison" WHERE "version"='SoundDock Portable';
```
## Task
Generate a SQL query to answer the following question:
`Does the sounddock series I v2 have dual voltage?`

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Does the sounddock series I v2 have dual voltage?`:
```sql
                SELECT "dual_voltage" FROM "features_comparison" WHERE "version"='SoundDock series I v2';
```
## Task
Generate a SQL query to answer the following question:
`What type of dock connection does the sounddock series III have? `

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

CREATE TABLE "features_comparison" (
  "version" text,
  "dock_connection" text,
  "aux_in" text,
  "battery" text,
  "i_phone_certified" text,
  "video_out" text,
  "dual_voltage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of dock connection does the sounddock series III have? `:
```sql
                SELECT "dock_connection" FROM "features_comparison" WHERE "version"='SoundDock series III';
```
## Task
Generate a SQL query to answer the following question:
`Where was the game played that started at 7:00 p.m.?`

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

CREATE TABLE "table1_24396664_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game played that started at 7:00 p.m.?`:
```sql
                SELECT "game_site" FROM "table1_24396664_2" WHERE "kickoff"='7:00 p.m.';
```
## Task
Generate a SQL query to answer the following question:
`how many varsity teams are in west roxbury, ma?`

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many varsity teams are in west roxbury, ma?`:
```sql
                SELECT MAX("varsity_teams") FROM "members" WHERE "location"='West Roxbury, MA';
```
## Task
Generate a SQL query to answer the following question:
`what is the mascot of st. paul's school? `

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the mascot of st. paul's school? `:
```sql
                SELECT "mascot" FROM "members" WHERE "school"='St. Paul''s School';
```
## Task
Generate a SQL query to answer the following question:
`where are dragons used as mascots?`

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `where are dragons used as mascots?`:
```sql
                SELECT "location" FROM "members" WHERE "mascot"='Dragons';
```
## Task
Generate a SQL query to answer the following question:
`when was lawrence academy at groton established? `

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `when was lawrence academy at groton established? `:
```sql
                SELECT MIN("founded") FROM "members" WHERE "school"='Lawrence Academy at Groton';
```
## Task
Generate a SQL query to answer the following question:
`name the school located at Milton, ma.`

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `name the school located at Milton, ma.`:
```sql
                SELECT "school" FROM "members" WHERE "location"='Milton, MA';
```
## Task
Generate a SQL query to answer the following question:
`how many places have 17 varsity teams?`

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

CREATE TABLE "members" (
  "school" text,
  "mascot" text,
  "location" text,
  "founded" real,
  "entered_isl" real,
  "grades" text,
  "number_of_students" text,
  "varsity_teams" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many places have 17 varsity teams?`:
```sql
                SELECT COUNT("location") FROM "members" WHERE "varsity_teams"=17;
```
## Task
Generate a SQL query to answer the following question:
`Which episode had bbc ranking and canle ranking of n/a?`

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

CREATE TABLE "table1_24399615_10" (
  "episode_no" real,
  "airdate" text,
  "viewers" text,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episode had bbc ranking and canle ranking of n/a?`:
```sql
                SELECT COUNT("episode_no") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='N/A' AND "cable_rank"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`List the number of bbc rankings with cable rankings of 6.`

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

CREATE TABLE "table1_24399615_10" (
  "episode_no" real,
  "airdate" text,
  "viewers" text,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of bbc rankings with cable rankings of 6.`:
```sql
                SELECT "bbc_three_weekly_ranking" FROM "table1_24399615_10" WHERE "cable_rank"='6';
```
## Task
Generate a SQL query to answer the following question:
`List the number of viewers when the cable rank for Russell Howard's Good New was 5.`

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

CREATE TABLE "table1_24399615_10" (
  "episode_no" real,
  "airdate" text,
  "viewers" text,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of viewers when the cable rank for Russell Howard's Good New was 5.`:
```sql
                SELECT "viewers" FROM "table1_24399615_10" WHERE "cable_rank"='5';
```
## Task
Generate a SQL query to answer the following question:
`How many individuals watched the show that had a bbc ranking of 6?`

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

CREATE TABLE "table1_24399615_10" (
  "episode_no" real,
  "airdate" text,
  "viewers" text,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many individuals watched the show that had a bbc ranking of 6?`:
```sql
                SELECT COUNT("viewers") FROM "table1_24399615_10" WHERE "bbc_three_weekly_ranking"='6';
```
## Task
Generate a SQL query to answer the following question:
`How many times did episode number 8 air?`

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

CREATE TABLE "series_3" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" real,
  "cable_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did episode number 8 air?`:
```sql
                SELECT COUNT("cable_rank") FROM "series_3" WHERE "episode_no"=8;
```
## Task
Generate a SQL query to answer the following question:
`When did episode number 6 air?`

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

CREATE TABLE "series_3" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" real,
  "cable_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `When did episode number 6 air?`:
```sql
                SELECT "airdate" FROM "series_3" WHERE "episode_no"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many items are listed under viewers column when the bbd three weekly ranking was 1?`

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

CREATE TABLE "series_2" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed under viewers column when the bbd three weekly ranking was 1?`:
```sql
                SELECT COUNT("viewers") FROM "series_2" WHERE "bbc_three_weekly_ranking"='1';
```
## Task
Generate a SQL query to answer the following question:
`What episode number had a cable ranking of 8?`

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

CREATE TABLE "series_2" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number had a cable ranking of 8?`:
```sql
                SELECT MIN("episode_no") FROM "series_2" WHERE "cable_rank"='8';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode air that had n/a for it's bbc three weekly ranking?`

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

CREATE TABLE "series_2" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode air that had n/a for it's bbc three weekly ranking?`:
```sql
                SELECT "airdate" FROM "series_2" WHERE "bbc_three_weekly_ranking"='N/A';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode air that had a ranking of 17 for cable?`

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

CREATE TABLE "series_2" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode air that had a ranking of 17 for cable?`:
```sql
                SELECT "airdate" FROM "series_2" WHERE "cable_rank"='17';
```
## Task
Generate a SQL query to answer the following question:
`When 3 is the bbc three weekly ranking what is the airdate?`

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

CREATE TABLE "series_6" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 3 is the bbc three weekly ranking what is the airdate?`:
```sql
                SELECT "airdate" FROM "series_6" WHERE "bbc_three_weekly_ranking"='3';
```
## Task
Generate a SQL query to answer the following question:
`When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?`

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

CREATE TABLE "series_6" (
  "episode_no" real,
  "airdate" text,
  "viewers" real,
  "bbc_three_weekly_ranking" text,
  "cable_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `When 656000 is the amount of viewers and n/a is the cable rank what is the airdate?`:
```sql
                SELECT "airdate" FROM "series_6" WHERE "cable_rank"='N/A' AND "viewers"=656000;
```
## Task
Generate a SQL query to answer the following question:
`List the states that have entry times of 49years, 29days`

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

CREATE TABLE "earliest_serving_senators_currently_livi" (
  "rank" real,
  "senator" text,
  "date_of_birth" text,
  "entered_senate" text,
  "left_senate" text,
  "state_served" text,
  "party" text,
  "time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the states that have entry times of 49years, 29days`:
```sql
                SELECT "state_served" FROM "earliest_serving_senators_currently_livi" WHERE "time_since_entry"='49years, 29days';
```
## Task
Generate a SQL query to answer the following question:
`Of which part does congressman dick clark belong to?`

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

CREATE TABLE "earliest_serving_senators_currently_livi" (
  "rank" real,
  "senator" text,
  "date_of_birth" text,
  "entered_senate" text,
  "left_senate" text,
  "state_served" text,
  "party" text,
  "time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `Of which part does congressman dick clark belong to?`:
```sql
                SELECT "party" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Dick Clark';
```
## Task
Generate a SQL query to answer the following question:
`On what date did congressman joseph tydings enter take his seat?`

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

CREATE TABLE "earliest_serving_senators_currently_livi" (
  "rank" real,
  "senator" text,
  "date_of_birth" text,
  "entered_senate" text,
  "left_senate" text,
  "state_served" text,
  "party" text,
  "time_since_entry" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did congressman joseph tydings enter take his seat?`:
```sql
                SELECT "entered_senate" FROM "earliest_serving_senators_currently_livi" WHERE "senator"='Joseph Tydings';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest points when poles were 0 and races were 10?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest points when poles were 0 and races were 10?`:
```sql
                SELECT MIN("points") FROM "career_summary" WHERE "poles"=0 AND "races"=10;
```
## Task
Generate a SQL query to answer the following question:
`What was the highest number of points when flaps were 0?`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" real,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of points when flaps were 0?`:
```sql
                SELECT MAX("points") FROM "career_summary" WHERE "f_laps"=0;
```
## Task
Generate a SQL query to answer the following question:
`Who played 20 questions during the issue in which Pamela Horton is on the cover?`

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

CREATE TABLE "2012" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played 20 questions during the issue in which Pamela Horton is on the cover?`:
```sql
                SELECT "20_questions" FROM "2012" WHERE "cover_model"='Pamela Horton';
```
## Task
Generate a SQL query to answer the following question:
`What date did Dax Shepard play 20 questions?`

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

CREATE TABLE "2012" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did Dax Shepard play 20 questions?`:
```sql
                SELECT "date" FROM "2012" WHERE "20_questions"='Dax Shepard';
```
## Task
Generate a SQL query to answer the following question:
`Who was the centerfold model when Krysten Ritter played 20 questions?`

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

CREATE TABLE "2012" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the centerfold model when Krysten Ritter played 20 questions?`:
```sql
                SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Krysten Ritter';
```
## Task
Generate a SQL query to answer the following question:
`Who was the centerfold model when Meghan McCain played 20 questions?`

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

CREATE TABLE "2012" (
  "date" text,
  "cover_model" text,
  "centerfold_model" text,
  "interview_subject" text,
  "20_questions" text,
  "pictorials" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the centerfold model when Meghan McCain played 20 questions?`:
```sql
                SELECT "centerfold_model" FROM "2012" WHERE "20_questions"='Meghan McCain';
```
## Task
Generate a SQL query to answer the following question:
`When the power kw is 5kw, what is the frequency?`

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

CREATE TABLE "table1_24418525_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the power kw is 5kw, what is the frequency?`:
```sql
                SELECT "frequency" FROM "table1_24418525_1" WHERE "power_k_w"='5kW';
```
## Task
Generate a SQL query to answer the following question:
`when coverage is dumaguete central visayas region, what is the callsign?`

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

CREATE TABLE "table1_24418525_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `when coverage is dumaguete central visayas region, what is the callsign?`:
```sql
                SELECT "callsign" FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region';
```
## Task
Generate a SQL query to answer the following question:
`How much power covers dumaguete central visayas region?`

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

CREATE TABLE "table1_24418525_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much power covers dumaguete central visayas region?`:
```sql
                SELECT COUNT("power_k_w") FROM "table1_24418525_1" WHERE "coverage"='Dumaguete Central Visayas Region';
```
## Task
Generate a SQL query to answer the following question:
`What frequency is mega manila set to?`

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

CREATE TABLE "table1_24418525_1" (
  "branding" text,
  "callsign" text,
  "frequency" text,
  "power_k_w" text,
  "coverage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What frequency is mega manila set to?`:
```sql
                SELECT "frequency" FROM "table1_24418525_1" WHERE "coverage"='Mega Manila';
```
## Task
Generate a SQL query to answer the following question:
`What original air date was for the episode with production code of 108?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What original air date was for the episode with production code of 108?`:
```sql
                SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='108';
```
## Task
Generate a SQL query to answer the following question:
`How many production codes are there for episode 10 in the season?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many production codes are there for episode 10 in the season?`:
```sql
                SELECT COUNT("production_code") FROM "table1_24425976_2" WHERE "season"='10';
```
## Task
Generate a SQL query to answer the following question:
`What date did "paintball deer hunter" originally air?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did "paintball deer hunter" originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_24425976_2" WHERE "episode_title"='\"Paintball Deer Hunter\"';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode with code 110 originally air?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with code 110 originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_24425976_2" WHERE "production_code"='110';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode with a production code of 107?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode with a production code of 107?`:
```sql
                SELECT "episode_title" FROM "table1_24425976_2" WHERE "production_code"='107';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes in the series has a production code of 111?`

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

CREATE TABLE "table1_24425976_2" (
  "series" real,
  "season" text,
  "original_air_date" text,
  "production_code" text,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes in the series has a production code of 111?`:
```sql
                SELECT COUNT("series") FROM "table1_24425976_2" WHERE "production_code"='111';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of payout for december 28, 2009`

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

CREATE TABLE "bowl_games" (
  "bowl_game" text,
  "date" text,
  "stadium" text,
  "location" text,
  "tv" text,
  "matchup_winner_bolded" text,
  "payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of payout for december 28, 2009`:
```sql
                SELECT COUNT("payout_us") FROM "bowl_games" WHERE "date"='December 28, 2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the payout for espn for music city bowl`

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

CREATE TABLE "bowl_games" (
  "bowl_game" text,
  "date" text,
  "stadium" text,
  "location" text,
  "tv" text,
  "matchup_winner_bolded" text,
  "payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the payout for espn for music city bowl`:
```sql
                SELECT "payout_us" FROM "bowl_games" WHERE "tv"='ESPN' AND "bowl_game"='Music City Bowl';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for raymond james stadium`

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

CREATE TABLE "bowl_games" (
  "bowl_game" text,
  "date" text,
  "stadium" text,
  "location" text,
  "tv" text,
  "matchup_winner_bolded" text,
  "payout_us" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for raymond james stadium`:
```sql
                SELECT "date" FROM "bowl_games" WHERE "stadium"='Raymond James Stadium';
```
## Task
Generate a SQL query to answer the following question:
`What date did episode 4 in the season originally air?`

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

CREATE TABLE "table1_24425976_7" (
  "series" real,
  "season" real,
  "original_air_date" text,
  "production_code" real,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 4 in the season originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_24425976_7" WHERE "season"=4;
```
## Task
Generate a SQL query to answer the following question:
`What date did episode 115 in the series originally air?`

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

CREATE TABLE "table1_24425976_7" (
  "series" real,
  "season" real,
  "original_air_date" text,
  "production_code" real,
  "episode_title" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 115 in the series originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_24425976_7" WHERE "series"=115;
```
## Task
Generate a SQL query to answer the following question:
`What was the 2nd leg for team #1 River Plate?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the 2nd leg for team #1 River Plate?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num1"='River Plate';
```
## Task
Generate a SQL query to answer the following question:
`What was team number 2's Fluminense's 2nd leg?`

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

CREATE TABLE "round_of_16" (
  "team_num1" text,
  "points" text,
  "team_num2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was team number 2's Fluminense's 2nd leg?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_num2"='Fluminense';
```
## Task
Generate a SQL query to answer the following question:
`What was david ferrer seeded?`

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

CREATE TABLE "2010_french_open" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" text,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was david ferrer seeded?`:
```sql
                SELECT MAX("seed") FROM "2010_french_open" WHERE "player"='David Ferrer';
```
## Task
Generate a SQL query to answer the following question:
`What player had 1420 points coming in?`

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

CREATE TABLE "2010_french_open" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" text,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player had 1420 points coming in?`:
```sql
                SELECT "player" FROM "2010_french_open" WHERE "points"=1420;
```
## Task
Generate a SQL query to answer the following question:
`How many players named victor hănescu played?`

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

CREATE TABLE "2010_french_open" (
  "seed" real,
  "rank" real,
  "player" text,
  "points" real,
  "points_defending" text,
  "points_won" real,
  "new_points" real,
  "status" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many players named victor hănescu played?`:
```sql
                SELECT COUNT("points_won") FROM "2010_french_open" WHERE "player"='Victor Hănescu';
```
## Task
Generate a SQL query to answer the following question:
`Name the kurdistan democratic party for kurdistan list being 10`

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

CREATE TABLE "seats" (
  "governorate" text,
  "kurdistan_democratic_party" real,
  "patriotic_union_of_kurdistan" real,
  "total_kurdistan_list" real,
  "total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the kurdistan democratic party for kurdistan list being 10`:
```sql
                SELECT MIN("kurdistan_democratic_party") FROM "seats" WHERE "total_kurdistan_list"=10;
```
## Task
Generate a SQL query to answer the following question:
`Name the most kirdistan list for diyala`

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

CREATE TABLE "seats" (
  "governorate" text,
  "kurdistan_democratic_party" real,
  "patriotic_union_of_kurdistan" real,
  "total_kurdistan_list" real,
  "total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most kirdistan list for diyala`:
```sql
                SELECT MAX("total_kurdistan_list") FROM "seats" WHERE "governorate"='Diyala';
```
## Task
Generate a SQL query to answer the following question:
`Name the governorate seats for hewler`

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

CREATE TABLE "seats" (
  "governorate" text,
  "kurdistan_democratic_party" real,
  "patriotic_union_of_kurdistan" real,
  "total_kurdistan_list" real,
  "total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the governorate seats for hewler`:
```sql
                SELECT MIN("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler';
```
## Task
Generate a SQL query to answer the following question:
`Name the least total kurdistan list`

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

CREATE TABLE "seats" (
  "governorate" text,
  "kurdistan_democratic_party" real,
  "patriotic_union_of_kurdistan" real,
  "total_kurdistan_list" real,
  "total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total kurdistan list`:
```sql
                SELECT MIN("total_kurdistan_list") FROM "seats";
```
## Task
Generate a SQL query to answer the following question:
`Name the most total governorate seats for hewler`

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

CREATE TABLE "seats" (
  "governorate" text,
  "kurdistan_democratic_party" real,
  "patriotic_union_of_kurdistan" real,
  "total_kurdistan_list" real,
  "total_governorate_seats" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most total governorate seats for hewler`:
```sql
                SELECT MAX("total_governorate_seats") FROM "seats" WHERE "governorate"='Hewler';
```
## Task
Generate a SQL query to answer the following question:
`Who won 3rd place when the mutya ng pilipinas winner was  was rochelle romero ong?`

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

CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
  "year" real,
  "mutya_ng_pilipinas_asia_pacific" text,
  "1st_runner_up" text,
  "2nd_runner_up" text,
  "3rd_runner_up" text,
  "4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won 3rd place when the mutya ng pilipinas winner was  was rochelle romero ong?`:
```sql
                SELECT "2nd_runner_up" FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Rochelle Romero Ong';
```
## Task
Generate a SQL query to answer the following question:
`List the year that mimilannie p. lisondra was the 3rd place winner.`

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

CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
  "year" real,
  "mutya_ng_pilipinas_asia_pacific" text,
  "1st_runner_up" text,
  "2nd_runner_up" text,
  "3rd_runner_up" text,
  "4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the year that mimilannie p. lisondra was the 3rd place winner.`:
```sql
                SELECT MAX("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "2nd_runner_up"='Mimilannie P. Lisondra';
```
## Task
Generate a SQL query to answer the following question:
`List the number of years where ritchie ocampo was the mutya ng pilipinas winner.`

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

CREATE TABLE "mutya_ng_pilipinas_asia_pacific_titlehol" (
  "year" real,
  "mutya_ng_pilipinas_asia_pacific" text,
  "1st_runner_up" text,
  "2nd_runner_up" text,
  "3rd_runner_up" text,
  "4th_runner_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of years where ritchie ocampo was the mutya ng pilipinas winner.`:
```sql
                SELECT COUNT("year") FROM "mutya_ng_pilipinas_asia_pacific_titlehol" WHERE "mutya_ng_pilipinas_asia_pacific"='Ritchie Ocampo';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of awardees for english and hindi`

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

CREATE TABLE "table1_24446718_7" (
  "name_of_award" text,
  "name_of_film" text,
  "language" text,
  "awardee_s" text,
  "cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of awardees for english and hindi`:
```sql
                SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "language"='English and Hindi';
```
## Task
Generate a SQL query to answer the following question:
`Name the name of award for zubeen garg`

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

CREATE TABLE "table1_24446718_7" (
  "name_of_award" text,
  "name_of_film" text,
  "language" text,
  "awardee_s" text,
  "cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the name of award for zubeen garg`:
```sql
                SELECT "name_of_award" FROM "table1_24446718_7" WHERE "awardee_s"='Zubeen Garg';
```
## Task
Generate a SQL query to answer the following question:
`Name the awardee for best editing`

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

CREATE TABLE "table1_24446718_7" (
  "name_of_award" text,
  "name_of_film" text,
  "language" text,
  "awardee_s" text,
  "cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the awardee for best editing`:
```sql
                SELECT "awardee_s" FROM "table1_24446718_7" WHERE "name_of_award"='Best Editing';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of awardees for  best cinematography`

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

CREATE TABLE "table1_24446718_7" (
  "name_of_award" text,
  "name_of_film" text,
  "language" text,
  "awardee_s" text,
  "cash_prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of awardees for  best cinematography`:
```sql
                SELECT COUNT("awardee_s") FROM "table1_24446718_7" WHERE "name_of_award"='Best Cinematography';
```
## Task
Generate a SQL query to answer the following question:
`Name the least flaps`

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

CREATE TABLE "career_summary" (
  "season" real,
  "series" text,
  "team" text,
  "races" real,
  "wins" real,
  "poles" real,
  "f_laps" real,
  "podiums" real,
  "points" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least flaps`:
```sql
                SELECT MIN("f_laps") FROM "career_summary";
```