cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Name the number of result for maroa`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of result for maroa`:
```sql
                SELECT COUNT("result") FROM "submissions" WHERE "film_title_used_in_nomination"='Maroa';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of director for  huelepega: ley de la calle`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "original_title" text,
  "film_title_used_in_nomination" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of director for  huelepega: ley de la calle`:
```sql
                SELECT COUNT("director") FROM "submissions" WHERE "original_title"='Huelepega: Ley de la Calle';
```
## Task
Generate a SQL query to answer the following question:
`What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?`

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

CREATE TABLE "final_standings" (
  "team" text,
  "b10_conference" text,
  "b10_pct" text,
  "b10_home" text,
  "b10_road" text,
  "all_games" text,
  "all_games_pct" text,
  "all_home" text,
  "all_road" text,
  "all_neutral" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the win/loss record for All Neutral games for the team whose Big 10 winning percentage was .833?`:
```sql
                SELECT "all_neutral" FROM "final_standings" WHERE "b10_pct"='.833';
```
## Task
Generate a SQL query to answer the following question:
`What is the category when the version is 1.0 and the title is Chord finder? `

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "function" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the category when the version is 1.0 and the title is Chord finder? `:
```sql
                SELECT "category" FROM "zune_hd_applications" WHERE "version"='1.0' AND "title"='Chord Finder';
```
## Task
Generate a SQL query to answer the following question:
`What was the release date for metronome? `

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "function" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the release date for metronome? `:
```sql
                SELECT "release_date" FROM "zune_hd_applications" WHERE "title"='Metronome';
```
## Task
Generate a SQL query to answer the following question:
`Who is the developer for Windows live messenger? `

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "function" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the developer for Windows live messenger? `:
```sql
                SELECT "developer" FROM "zune_hd_applications" WHERE "title"='Windows Live Messenger';
```
## Task
Generate a SQL query to answer the following question:
`What is the function of 1.4 version of Windows live messenger? `

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "function" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the function of 1.4 version of Windows live messenger? `:
```sql
                SELECT "function" FROM "zune_hd_applications" WHERE "version"='1.4' AND "title"='Windows Live Messenger';
```
## Task
Generate a SQL query to answer the following question:
`What functions were released on 2011-06-23? `

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

CREATE TABLE "zune_hd_applications" (
  "title" text,
  "developer" text,
  "category" text,
  "function" text,
  "release_date" text,
  "version" text
);
### SQL
Given the database schema, here is the SQL query that answers `What functions were released on 2011-06-23? `:
```sql
                SELECT "function" FROM "zune_hd_applications" WHERE "release_date"='2011-06-23';
```
## Task
Generate a SQL query to answer the following question:
`What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?`

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

CREATE TABLE "table1_18161217_2" (
  "satellite" text,
  "cospar_id" text,
  "satcat_no" real,
  "product_number" real,
  "launch_date" text,
  "estimated_end_date_clarification_needed" text,
  "estimated_operational_life" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the cospar ID of the Kosmos 2397 satellite, which has an operational life of 2 months?`:
```sql
                SELECT "cospar_id" FROM "table1_18161217_2" WHERE "estimated_operational_life"='2 months' AND "satellite"='Kosmos 2397';
```
## Task
Generate a SQL query to answer the following question:
`What was the launch date the satellite with cospar ID is 2008-033A?`

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

CREATE TABLE "table1_18161217_2" (
  "satellite" text,
  "cospar_id" text,
  "satcat_no" real,
  "product_number" real,
  "launch_date" text,
  "estimated_end_date_clarification_needed" text,
  "estimated_operational_life" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the launch date the satellite with cospar ID is 2008-033A?`:
```sql
                SELECT "launch_date" FROM "table1_18161217_2" WHERE "cospar_id"='2008-033A';
```
## Task
Generate a SQL query to answer the following question:
`What it the international designation for the kosmos 2379 satellite?`

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

CREATE TABLE "table1_18161217_2" (
  "satellite" text,
  "cospar_id" text,
  "satcat_no" real,
  "product_number" real,
  "launch_date" text,
  "estimated_end_date_clarification_needed" text,
  "estimated_operational_life" text
);
### SQL
Given the database schema, here is the SQL query that answers `What it the international designation for the kosmos 2379 satellite?`:
```sql
                SELECT "cospar_id" FROM "table1_18161217_2" WHERE "satellite"='Kosmos 2379';
```
## Task
Generate a SQL query to answer the following question:
`What is the estimated end date for the 2001-037a international designated satellite?`

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

CREATE TABLE "table1_18161217_2" (
  "satellite" text,
  "cospar_id" text,
  "satcat_no" real,
  "product_number" real,
  "launch_date" text,
  "estimated_end_date_clarification_needed" text,
  "estimated_operational_life" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the estimated end date for the 2001-037a international designated satellite?`:
```sql
                SELECT "estimated_end_date_clarification_needed" FROM "table1_18161217_2" WHERE "cospar_id"='2001-037A';
```
## Task
Generate a SQL query to answer the following question:
`in which city was charter date december 4, 2011`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `in which city was charter date december 4, 2011`:
```sql
                SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='December 4, 2011';
```
## Task
Generate a SQL query to answer the following question:
`how mnay greek designation  in tampa`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `how mnay greek designation  in tampa`:
```sql
                SELECT COUNT("greek_designation") FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Tampa';
```
## Task
Generate a SQL query to answer the following question:
`what is the status in vestal`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the status in vestal`:
```sql
                SELECT "status" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Vestal';
```
## Task
Generate a SQL query to answer the following question:
`what is the collegiate institution in queens`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the collegiate institution in queens`:
```sql
                SELECT "collegiate_institution" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='Queens';
```
## Task
Generate a SQL query to answer the following question:
`What was the original title of Run for Money?`

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

CREATE TABLE "table1_18162883_1" (
  "year_ceremony" text,
  "film_title_used_in_nomination" text,
  "original_title" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the original title of Run for Money?`:
```sql
                SELECT "original_title" FROM "table1_18162883_1" WHERE "film_title_used_in_nomination"='Run for Money';
```
## Task
Generate a SQL query to answer the following question:
`What was the Tuesday episode if theThursday episode was 196 Buried?`

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

CREATE TABLE "table1_18173916_6" (
  "episodes" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Tuesday episode if theThursday episode was 196 Buried?`:
```sql
                SELECT "tuesday" FROM "table1_18173916_6" WHERE "thursday"='196 Buried';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?`

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

CREATE TABLE "table1_18173916_6" (
  "episodes" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were shown on Friday if 210 Kirby's Epic Yarn was shown on Wednesday?`:
```sql
                SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='210 Kirby''s Epic Yarn';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?`

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

CREATE TABLE "table1_18173916_6" (
  "episodes" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes were shown on Friday if 190 Boardwalk Empire was shown on Wednesday?`:
```sql
                SELECT COUNT("friday") FROM "table1_18173916_6" WHERE "wednesday"='190 Boardwalk Empire';
```
## Task
Generate a SQL query to answer the following question:
`What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?`

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

CREATE TABLE "table1_18173916_6" (
  "episodes" text,
  "monday" text,
  "tuesday" text,
  "wednesday" text,
  "thursday" text,
  "friday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?`:
```sql
                SELECT "episodes" FROM "table1_18173916_6" WHERE "tuesday"='224 Assassin''s Creed: Brotherhood Circus Training';
```
## Task
Generate a SQL query to answer the following question:
`When the average away attendance is 1.889 in the Superettan, what's the average home attendance?`

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

CREATE TABLE "attendances" (
  "season" real,
  "average_attendance_home" text,
  "highest_attendance_home" text,
  "average_attendance_away" text,
  "highest_attendance_away" text,
  "division_section" text,
  "level" text,
  "average_attendance_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the average away attendance is 1.889 in the Superettan, what's the average home attendance?`:
```sql
                SELECT "average_attendance_home" FROM "attendances" WHERE "division_section"='Superettan' AND "average_attendance_away"='1.889';
```
## Task
Generate a SQL query to answer the following question:
`In which season was the average league attendance 2.572?`

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

CREATE TABLE "attendances" (
  "season" real,
  "average_attendance_home" text,
  "highest_attendance_home" text,
  "average_attendance_away" text,
  "highest_attendance_away" text,
  "division_section" text,
  "level" text,
  "average_attendance_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which season was the average league attendance 2.572?`:
```sql
                SELECT MAX("season") FROM "attendances" WHERE "average_attendance_league"='2.572';
```
## Task
Generate a SQL query to answer the following question:
`In which division did they compete in 2012?`

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

CREATE TABLE "attendances" (
  "season" real,
  "average_attendance_home" text,
  "highest_attendance_home" text,
  "average_attendance_away" text,
  "highest_attendance_away" text,
  "division_section" text,
  "level" text,
  "average_attendance_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which division did they compete in 2012?`:
```sql
                SELECT "division_section" FROM "attendances" WHERE "season"=2012;
```
## Task
Generate a SQL query to answer the following question:
`When the home attendance is 3.123, what's the highest away attendance?`

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

CREATE TABLE "attendances" (
  "season" real,
  "average_attendance_home" text,
  "highest_attendance_home" text,
  "average_attendance_away" text,
  "highest_attendance_away" text,
  "division_section" text,
  "level" text,
  "average_attendance_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the home attendance is 3.123, what's the highest away attendance?`:
```sql
                SELECT "highest_attendance_away" FROM "attendances" WHERE "average_attendance_home"='3.123';
```
## Task
Generate a SQL query to answer the following question:
`Which division has an average home attendance of 2.459?`

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

CREATE TABLE "attendances" (
  "season" real,
  "average_attendance_home" text,
  "highest_attendance_home" text,
  "average_attendance_away" text,
  "highest_attendance_away" text,
  "division_section" text,
  "level" text,
  "average_attendance_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which division has an average home attendance of 2.459?`:
```sql
                SELECT "division_section" FROM "attendances" WHERE "average_attendance_home"='2.459';
```
## Task
Generate a SQL query to answer the following question:
`How many years was he car number 92?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "car_number" real,
  "start" real,
  "qual_speed" text,
  "speed_rank" real,
  "finish" real,
  "laps_completed" real,
  "laps_led" real,
  "race_status" text,
  "chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was he car number 92?`:
```sql
                SELECT COUNT("speed_rank") FROM "indy_500_results" WHERE "car_number"=92;
```
## Task
Generate a SQL query to answer the following question:
`How many years was the chassis a lotus-ford 38/7?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "car_number" real,
  "start" real,
  "qual_speed" text,
  "speed_rank" real,
  "finish" real,
  "laps_completed" real,
  "laps_led" real,
  "race_status" text,
  "chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the chassis a lotus-ford 38/7?`:
```sql
                SELECT COUNT("year") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/7';
```
## Task
Generate a SQL query to answer the following question:
`What was the race status(es) with the lotus-ford 38/1 chassis?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "car_number" real,
  "start" real,
  "qual_speed" text,
  "speed_rank" real,
  "finish" real,
  "laps_completed" real,
  "laps_led" real,
  "race_status" text,
  "chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the race status(es) with the lotus-ford 38/1 chassis?`:
```sql
                SELECT "race_status" FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 38/1';
```
## Task
Generate a SQL query to answer the following question:
`What year(s) was the race status piston?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "car_number" real,
  "start" real,
  "qual_speed" text,
  "speed_rank" real,
  "finish" real,
  "laps_completed" real,
  "laps_led" real,
  "race_status" text,
  "chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year(s) was the race status piston?`:
```sql
                SELECT "year" FROM "indy_500_results" WHERE "race_status"='Piston';
```
## Task
Generate a SQL query to answer the following question:
`What is the largest laps led with the lotus-ford 34/3 chassis?`

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

CREATE TABLE "indy_500_results" (
  "year" real,
  "car_number" real,
  "start" real,
  "qual_speed" text,
  "speed_rank" real,
  "finish" real,
  "laps_completed" real,
  "laps_led" real,
  "race_status" text,
  "chassis" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the largest laps led with the lotus-ford 34/3 chassis?`:
```sql
                SELECT MAX("laps_led") FROM "indy_500_results" WHERE "chassis"='Lotus-Ford 34/3';
```
## Task
Generate a SQL query to answer the following question:
`What was the population of Minneapolis in 2012?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" text,
  "forcible_rape" text,
  "robbery" text,
  "aggravated_assault" text,
  "property_crime" text,
  "burglary" text,
  "larceny_theft" text,
  "motor_vehicle_theft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the population of Minneapolis in 2012?`:
```sql
                SELECT MAX("population") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "city"='Minneapolis';
```
## Task
Generate a SQL query to answer the following question:
`How many burglaries occurred in the city where the violent crime rate was 974.7?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" text,
  "forcible_rape" text,
  "robbery" text,
  "aggravated_assault" text,
  "property_crime" text,
  "burglary" text,
  "larceny_theft" text,
  "motor_vehicle_theft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many burglaries occurred in the city where the violent crime rate was 974.7?`:
```sql
                SELECT "burglary" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "violent_crime"='974.7';
```
## Task
Generate a SQL query to answer the following question:
`What was the violent crime rate in the city where the robbery rate was 201.4?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" text,
  "forcible_rape" text,
  "robbery" text,
  "aggravated_assault" text,
  "property_crime" text,
  "burglary" text,
  "larceny_theft" text,
  "motor_vehicle_theft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the violent crime rate in the city where the robbery rate was 201.4?`:
```sql
                SELECT "violent_crime" FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "robbery"='201.4';
```
## Task
Generate a SQL query to answer the following question:
`How many cities were there in 2012 where the rate of burglary was 224.8?`

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

CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" (
  "state" text,
  "city" text,
  "population" real,
  "violent_crime" text,
  "murder_and_non_negligent_manslaughter" text,
  "forcible_rape" text,
  "robbery" text,
  "aggravated_assault" text,
  "property_crime" text,
  "burglary" text,
  "larceny_theft" text,
  "motor_vehicle_theft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cities were there in 2012 where the rate of burglary was 224.8?`:
```sql
                SELECT COUNT("property_crime") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "burglary"='224.8';
```
## Task
Generate a SQL query to answer the following question:
`What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all values for Mitchell when the author species is Temminck & Schlegel, 1849?`:
```sql
                SELECT "mitchell" FROM "table1_1818471_1" WHERE "author_species"='Temminck & Schlegel, 1849';
```
## Task
Generate a SQL query to answer the following question:
`What is every value when Mitchell is 676?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value when Mitchell is 676?`:
```sql
                SELECT "value" FROM "table1_1818471_1" WHERE "mitchell"=676;
```
## Task
Generate a SQL query to answer the following question:
`How many different numbers for Afinsa when value is 5p?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different numbers for Afinsa when value is 5p?`:
```sql
                SELECT COUNT("afinsa") FROM "table1_1818471_1" WHERE "value"='5P';
```
## Task
Generate a SQL query to answer the following question:
`What is every entry for Scott when the date is (15.12)?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every entry for Scott when the date is (15.12)?`:
```sql
                SELECT "scott" FROM "table1_1818471_1" WHERE "date"='(15.12)';
```
## Task
Generate a SQL query to answer the following question:
`What is every species when Afinsa is 639?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every species when Afinsa is 639?`:
```sql
                SELECT "species" FROM "table1_1818471_1" WHERE "afinsa"=639;
```
## Task
Generate a SQL query to answer the following question:
`How many orders when the species is Pavo Cristatus?`

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

CREATE TABLE "table1_1818471_1" (
  "year" real,
  "date" text,
  "type" text,
  "species" text,
  "author_species" text,
  "value" text,
  "afinsa" real,
  "scott" text,
  "mitchell" real,
  "yvert" text,
  "sta_gib" real,
  "order" text,
  "family" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many orders when the species is Pavo Cristatus?`:
```sql
                SELECT COUNT("order") FROM "table1_1818471_1" WHERE "species"='Pavo cristatus';
```
## Task
Generate a SQL query to answer the following question:
`If the distance is 55.7, what is the name of the constellation?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the distance is 55.7, what is the name of the constellation?`:
```sql
                SELECT "constellation" FROM "targets" WHERE "distance_ly"='55.7';
```
## Task
Generate a SQL query to answer the following question:
`If the spectral type is g1v, what is the total distance amount?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the spectral type is g1v, what is the total distance amount?`:
```sql
                SELECT COUNT("distance_ly") FROM "targets" WHERE "spectral_type"='G1V';
```
## Task
Generate a SQL query to answer the following question:
`What is the hd designation for arrival date of February 2070?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the hd designation for arrival date of February 2070?`:
```sql
                SELECT COUNT("hd_designation") FROM "targets" WHERE "arrival_date"='February 2070';
```
## Task
Generate a SQL query to answer the following question:
`If the constellation is Gemini, what is the spectral type?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the constellation is Gemini, what is the spectral type?`:
```sql
                SELECT "spectral_type" FROM "targets" WHERE "constellation"='Gemini';
```
## Task
Generate a SQL query to answer the following question:
`If the arrival date is January 2059, what is the total amount of signal power?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the arrival date is January 2059, what is the total amount of signal power?`:
```sql
                SELECT COUNT("signal_power_k_w") FROM "targets" WHERE "arrival_date"='January 2059';
```
## Task
Generate a SQL query to answer the following question:
`If the spectral type is g1v, what is the constellation?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" text,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the spectral type is g1v, what is the constellation?`:
```sql
                SELECT "constellation" FROM "targets" WHERE "spectral_type"='G1V';
```
## Task
Generate a SQL query to answer the following question:
`What is the artist of the song "sugarbaby"?`

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

CREATE TABLE "list_of_songs_released_in_2009" (
  "song_title" text,
  "artist" text,
  "decade" text,
  "genre" text,
  "single_pack_name" text,
  "release_date" text,
  "family_friendly" text,
  "additional_rock_band_3_features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the artist of the song "sugarbaby"?`:
```sql
                SELECT "artist" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Sugarbaby\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date for the song "had a dad"?`

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

CREATE TABLE "list_of_songs_released_in_2009" (
  "song_title" text,
  "artist" text,
  "decade" text,
  "genre" text,
  "single_pack_name" text,
  "release_date" text,
  "family_friendly" text,
  "additional_rock_band_3_features" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date for the song "had a dad"?`:
```sql
                SELECT "release_date" FROM "list_of_songs_released_in_2009" WHERE "song_title"='\"Had a Dad\"';
```
## Task
Generate a SQL query to answer the following question:
`List the total numbers of Evian Masters tournaments. `

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

CREATE TABLE "lpga_tour_wins_9" (
  "no" real,
  "date" text,
  "tournament" text,
  "winning_score" text,
  "to_par" text,
  "margin_of_victory" text,
  "runner_s_up" text,
  "winners_share" real
);
### SQL
Given the database schema, here is the SQL query that answers `List the total numbers of Evian Masters tournaments. `:
```sql
                SELECT MAX("no") FROM "lpga_tour_wins_9" WHERE "tournament"='Evian Masters';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of season 9?`

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

CREATE TABLE "table1_18217753_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of season 9?`:
```sql
                SELECT "original_air_date" FROM "table1_18217753_1" WHERE "season_num"=9;
```
## Task
Generate a SQL query to answer the following question:
`Who were the writers when there were 27.11 million viewers?`

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

CREATE TABLE "table1_18217753_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the writers when there were 27.11 million viewers?`:
```sql
                SELECT "written_by" FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='27.11';
```
## Task
Generate a SQL query to answer the following question:
`How many series had viewers totaling 23.93 million?`

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

CREATE TABLE "table1_18217753_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series had viewers totaling 23.93 million?`:
```sql
                SELECT COUNT("series_num") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='23.93';
```
## Task
Generate a SQL query to answer the following question:
`How many original air dates totaled 26.06 million viewers?`

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

CREATE TABLE "table1_18217753_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many original air dates totaled 26.06 million viewers?`:
```sql
                SELECT COUNT("original_air_date") FROM "table1_18217753_1" WHERE "u_s_viewers_millions"='26.06';
```
## Task
Generate a SQL query to answer the following question:
`What is the title when 18.58 u.s. viewers  (millions) watched?`

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

CREATE TABLE "table1_18217741_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title when 18.58 u.s. viewers  (millions) watched?`:
```sql
                SELECT "title" FROM "table1_18217741_1" WHERE "u_s_viewers_millions"='18.58';
```
## Task
Generate a SQL query to answer the following question:
`How many digital terrestrial channels are there for channel 4?`

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

CREATE TABLE "availability_of_channels_from_various_pr" (
  "position" real,
  "channel" text,
  "analogue_terrestrial_channel" text,
  "digital_terrestrial_channel" text,
  "internet" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many digital terrestrial channels are there for channel 4?`:
```sql
                SELECT COUNT("digital_terrestrial_channel") FROM "availability_of_channels_from_various_pr" WHERE "channel"='Channel 4';
```
## Task
Generate a SQL query to answer the following question:
`What is the channel that is on digital terrestrial channel 10?`

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

CREATE TABLE "availability_of_channels_from_various_pr" (
  "position" real,
  "channel" text,
  "analogue_terrestrial_channel" text,
  "digital_terrestrial_channel" text,
  "internet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the channel that is on digital terrestrial channel 10?`:
```sql
                SELECT "channel" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='10';
```
## Task
Generate a SQL query to answer the following question:
`What is the digital terrestria channel number for itv3?`

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

CREATE TABLE "availability_of_channels_from_various_pr" (
  "position" real,
  "channel" text,
  "analogue_terrestrial_channel" text,
  "digital_terrestrial_channel" text,
  "internet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the digital terrestria channel number for itv3?`:
```sql
                SELECT "digital_terrestrial_channel" FROM "availability_of_channels_from_various_pr" WHERE "channel"='ITV3';
```
## Task
Generate a SQL query to answer the following question:
`What is the position of digital channel 5 44 (+1)?`

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

CREATE TABLE "availability_of_channels_from_various_pr" (
  "position" real,
  "channel" text,
  "analogue_terrestrial_channel" text,
  "digital_terrestrial_channel" text,
  "internet" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position of digital channel 5 44 (+1)?`:
```sql
                SELECT "position" FROM "availability_of_channels_from_various_pr" WHERE "digital_terrestrial_channel"='5 44 (+1)';
```
## Task
Generate a SQL query to answer the following question:
`where pageant is elite model look and year is bigger than 1993.0, who is the delegate?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `where pageant is elite model look and year is bigger than 1993.0, who is the delegate?`:
```sql
                SELECT "delegate" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Elite Model Look' AND "year">1993.0;
```
## Task
Generate a SQL query to answer the following question:
`How many years was the pageant miss globe international and delegate was karen loren medrano agustin?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years was the pageant miss globe international and delegate was karen loren medrano agustin?`:
```sql
                SELECT COUNT("year") FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Globe International' AND "delegate"='Karen Loren Medrano Agustin';
```
## Task
Generate a SQL query to answer the following question:
`How many pageants were in san fernando, pampanga?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pageants were in san fernando, pampanga?`:
```sql
                SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "hometown"='San Fernando, Pampanga';
```
## Task
Generate a SQL query to answer the following question:
`How many pageants were margaret ann awitan bayot the delegate of?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pageants were margaret ann awitan bayot the delegate of?`:
```sql
                SELECT COUNT("pageant") FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Margaret Ann Awitan Bayot';
```
## Task
Generate a SQL query to answer the following question:
`How many awards did milagros gutierrez win?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many awards did milagros gutierrez win?`:
```sql
                SELECT "other_awards" FROM "appointed_delegates_to_various_internati" WHERE "delegate"='Milagros Gutierrez';
```
## Task
Generate a SQL query to answer the following question:
`Where is the miss global teen?`

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

CREATE TABLE "appointed_delegates_to_various_internati" (
  "year" real,
  "delegate" text,
  "hometown" text,
  "pageant" text,
  "result" text,
  "other_awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where is the miss global teen?`:
```sql
                SELECT "hometown" FROM "appointed_delegates_to_various_internati" WHERE "pageant"='Miss Global Teen';
```
## Task
Generate a SQL query to answer the following question:
`what is the subtrate for enzyme ala dehydratase`

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

CREATE TABLE "biosynthesis" (
  "enzyme" text,
  "location" text,
  "substrate" text,
  "product" text,
  "chromosome" text,
  "ec" text,
  "omim" real,
  "porphyria" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the subtrate for enzyme ala dehydratase`:
```sql
                SELECT "substrate" FROM "biosynthesis" WHERE "enzyme"='ALA dehydratase';
```
## Task
Generate a SQL query to answer the following question:
`how many porphyria have substrate δ-aminolevulinic acid`

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

CREATE TABLE "biosynthesis" (
  "enzyme" text,
  "location" text,
  "substrate" text,
  "product" text,
  "chromosome" text,
  "ec" text,
  "omim" real,
  "porphyria" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many porphyria have substrate δ-aminolevulinic acid`:
```sql
                SELECT COUNT("porphyria") FROM "biosynthesis" WHERE "substrate"='δ-Aminolevulinic acid';
```
## Task
Generate a SQL query to answer the following question:
`give the location of subtrate coproporphyrinogen iii`

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

CREATE TABLE "biosynthesis" (
  "enzyme" text,
  "location" text,
  "substrate" text,
  "product" text,
  "chromosome" text,
  "ec" text,
  "omim" real,
  "porphyria" text
);
### SQL
Given the database schema, here is the SQL query that answers `give the location of subtrate coproporphyrinogen iii`:
```sql
                SELECT "location" FROM "biosynthesis" WHERE "substrate"='Coproporphyrinogen III';
```
## Task
Generate a SQL query to answer the following question:
`Who were the authors  of episode having production code 3t7573?`

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

CREATE TABLE "table1_18274425_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the authors  of episode having production code 3t7573?`:
```sql
                SELECT "written_by" FROM "table1_18274425_1" WHERE "production_code"='3T7573';
```
## Task
Generate a SQL query to answer the following question:
`How many episodes had a viewership of 2.65 million?`

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

CREATE TABLE "table1_18274425_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many episodes had a viewership of 2.65 million?`:
```sql
                SELECT COUNT("no_in_season") FROM "table1_18274425_1" WHERE "u_s_viewers_millions"='2.65';
```
## Task
Generate a SQL query to answer the following question:
`Who were the director/s of episodes written by Mike Daniels?`

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

CREATE TABLE "table1_18274425_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the director/s of episodes written by Mike Daniels?`:
```sql
                SELECT "directed_by" FROM "table1_18274425_1" WHERE "written_by"='Mike Daniels';
```