cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was nominated for best supporting actor in the movie Going My Way?`

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

CREATE TABLE "nominees" (
  "year_ceremony" text,
  "actor_actress" text,
  "category" text,
  "film_title_used_in_nomination" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was nominated for best supporting actor in the movie Going My Way?`:
```sql
                SELECT "actor_actress" FROM "nominees" WHERE "film_title_used_in_nomination"='Going My Way' AND "category"='Best Supporting Actor';
```
## Task
Generate a SQL query to answer the following question:
`When in 2003 to 2004 the January team is 5.7 what is it through 2001 through 2002?`

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

CREATE TABLE "duration" (
  "term_abroad" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `When in 2003 to 2004 the January team is 5.7 what is it through 2001 through 2002?`:
```sql
                SELECT "2001_02" FROM "duration" WHERE "2003_04"='5.7';
```
## Task
Generate a SQL query to answer the following question:
`When through 2005 to 2006 it is 5.4 what team is it?`

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

CREATE TABLE "duration" (
  "term_abroad" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `When through 2005 to 2006 it is 5.4 what team is it?`:
```sql
                SELECT "term_abroad" FROM "duration" WHERE "2005_06"='5.4';
```
## Task
Generate a SQL query to answer the following question:
`When through 2006 to 2007 the duration of one quarter is 3.4 what is it through 2007 to 2008?`

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

CREATE TABLE "duration" (
  "term_abroad" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `When through 2006 to 2007 the duration of one quarter is 3.4 what is it through 2007 to 2008?`:
```sql
                SELECT "2007_08" FROM "duration" WHERE "2006_07"='3.4';
```
## Task
Generate a SQL query to answer the following question:
`When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?`

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

CREATE TABLE "duration" (
  "term_abroad" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?`:
```sql
                SELECT "2000_01" FROM "duration" WHERE "2005_06"='5.3';
```
## Task
Generate a SQL query to answer the following question:
`When through 2001 to 2002 the duration is 0.5 what is the term abroad?`

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

CREATE TABLE "duration" (
  "term_abroad" text,
  "2000_01" text,
  "2001_02" text,
  "2002_03" text,
  "2003_04" text,
  "2004_05" text,
  "2005_06" text,
  "2006_07" text,
  "2007_08" text,
  "2008_09" text
);
### SQL
Given the database schema, here is the SQL query that answers `When through 2001 to 2002 the duration is 0.5 what is the term abroad?`:
```sql
                SELECT "term_abroad" FROM "duration" WHERE "2001_02"='0.5';
```
## Task
Generate a SQL query to answer the following question:
`Name the series number that aired on november 11, 1996`

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

CREATE TABLE "table1_18646432_1" (
  "series_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the series number that aired on november 11, 1996`:
```sql
                SELECT "series_num" FROM "table1_18646432_1" WHERE "original_air_date"='November 11, 1996';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the episode originally aired on September 29, 1999?`

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

CREATE TABLE "table1_18646432_4" (
  "series_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the episode originally aired on September 29, 1999?`:
```sql
                SELECT "written_by" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode originally aired on September 29, 1999?`

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

CREATE TABLE "table1_18646432_4" (
  "series_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode originally aired on September 29, 1999?`:
```sql
                SELECT "title" FROM "table1_18646432_4" WHERE "original_air_date"='September 29, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code number for episode named "chilly scenes of winter golf"?`

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

CREATE TABLE "table1_18646432_4" (
  "series_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "prod_code" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code number for episode named "chilly scenes of winter golf"?`:
```sql
                SELECT MIN("prod_code") FROM "table1_18646432_4" WHERE "title"='\"Chilly Scenes of Winter Golf\"';
```
## Task
Generate a SQL query to answer the following question:
`How many percentages were recorded under 2006 when in 2001 was 14.6%?`

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

CREATE TABLE "table1_18660332_2" (
  "ethnic_group" text,
  "2001_pct" text,
  "2001_people" text,
  "2006_pct" text,
  "2006_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many percentages were recorded under 2006 when in 2001 was 14.6%?`:
```sql
                SELECT COUNT("2006_pct") FROM "table1_18660332_2" WHERE "2001_pct"='14.6';
```
## Task
Generate a SQL query to answer the following question:
`What is the ethnic group that in 2001 had 117,513?`

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

CREATE TABLE "table1_18660332_2" (
  "ethnic_group" text,
  "2001_pct" text,
  "2001_people" text,
  "2006_pct" text,
  "2006_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ethnic group that in 2001 had 117,513?`:
```sql
                SELECT "ethnic_group" FROM "table1_18660332_2" WHERE "2001_people"='117,513';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers were recorded under 2001 when 2006 was 18.9?`

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

CREATE TABLE "table1_18660332_2" (
  "ethnic_group" text,
  "2001_pct" text,
  "2001_people" text,
  "2006_pct" text,
  "2006_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers were recorded under 2001 when 2006 was 18.9?`:
```sql
                SELECT COUNT("2001_pct") FROM "table1_18660332_2" WHERE "2006_pct"='18.9';
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage in 2006 when in 2001 was 66.9 %?`

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

CREATE TABLE "table1_18660332_2" (
  "ethnic_group" text,
  "2001_pct" text,
  "2001_people" text,
  "2006_pct" text,
  "2006_people" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage in 2006 when in 2001 was 66.9 %?`:
```sql
                SELECT "2006_pct" FROM "table1_18660332_2" WHERE "2001_pct"='66.9';
```
## Task
Generate a SQL query to answer the following question:
`If the rings is 58.975, what is the number for the horizontal bar?`

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

CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "team_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the rings is 58.975, what is the number for the horizontal bar?`:
```sql
                SELECT "horizontal_bar" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='58.975';
```
## Task
Generate a SQL query to answer the following question:
`How many positions was the United States in?`

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

CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "team_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions was the United States in?`:
```sql
                SELECT COUNT("position") FROM "top_8_teams_qualified_for_team_finals" WHERE "country"='United States';
```
## Task
Generate a SQL query to answer the following question:
`If the rings are 60.500, what is the parallel bars number?`

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

CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "team_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the rings are 60.500, what is the parallel bars number?`:
```sql
                SELECT "parallel_bars" FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.500';
```
## Task
Generate a SQL query to answer the following question:
`If the rings number is 60.000, what is the number for the vault?`

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

CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "team_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the rings number is 60.000, what is the number for the vault?`:
```sql
                SELECT COUNT("vault") FROM "top_8_teams_qualified_for_team_finals" WHERE "rings"='60.000';
```
## Task
Generate a SQL query to answer the following question:
`If the parallel bars numbers is 61.500, what is the total number for the flood?`

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

CREATE TABLE "top_8_teams_qualified_for_team_finals" (
  "position" text,
  "country" text,
  "floor" text,
  "pommel_horse" text,
  "rings" text,
  "vault" text,
  "parallel_bars" text,
  "horizontal_bar" text,
  "team_total" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the parallel bars numbers is 61.500, what is the total number for the flood?`:
```sql
                SELECT COUNT("floor") FROM "top_8_teams_qualified_for_team_finals" WHERE "parallel_bars"='61.500';
```
## Task
Generate a SQL query to answer the following question:
`When united kingdom is the country what is the most recent date?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "ko_m" real,
  "combo" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `When united kingdom is the country what is the most recent date?`:
```sql
                SELECT "most_recent_date" FROM "per_country" WHERE "country"='United Kingdom';
```
## Task
Generate a SQL query to answer the following question:
`When 3 is the rank what is the highest combo?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "ko_m" real,
  "combo" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 3 is the rank what is the highest combo?`:
```sql
                SELECT MAX("combo") FROM "per_country" WHERE "rank"='3';
```
## Task
Generate a SQL query to answer the following question:
`When 12 is the rank who is the most recent cyclist?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "ko_m" real,
  "combo" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 12 is the rank who is the most recent cyclist?`:
```sql
                SELECT "most_recent_cyclist" FROM "per_country" WHERE "rank"='12';
```
## Task
Generate a SQL query to answer the following question:
`When 155 is the jersey what is the highest amount of different holders?`

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

CREATE TABLE "per_country" (
  "rank" text,
  "country" text,
  "jerseys" real,
  "vuelta_wins" real,
  "points" real,
  "ko_m" real,
  "combo" real,
  "most_recent_cyclist" text,
  "most_recent_date" text,
  "different_holders" real
);
### SQL
Given the database schema, here is the SQL query that answers `When 155 is the jersey what is the highest amount of different holders?`:
```sql
                SELECT MAX("different_holders") FROM "per_country" WHERE "jerseys"=155;
```
## Task
Generate a SQL query to answer the following question:
` Name the upper index kcal/nm3 for 62.47`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" text,
  "lower_index_mj_nm_3" text
);
### SQL
Given the database schema, here is the SQL query that answers ` Name the upper index kcal/nm3 for 62.47`:
```sql
                SELECT "upper_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "lower_index_mj_nm_3"='62.47';
```
## Task
Generate a SQL query to answer the following question:
`Name the fuel gas for upper index mj/nm3 for 92.32`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" text,
  "lower_index_mj_nm_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the fuel gas for upper index mj/nm3 for 92.32`:
```sql
                SELECT "fuel_gas" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='92.32';
```
## Task
Generate a SQL query to answer the following question:
`Name the lower index kcal/ nm3 for 61.32`

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

CREATE TABLE "wobbe_index_of_common_fuel_gases" (
  "fuel_gas" text,
  "upper_index_kcal_nm_3" real,
  "lower_index_kcal_nm_3" real,
  "upper_index_mj_nm_3" text,
  "lower_index_mj_nm_3" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lower index kcal/ nm3 for 61.32`:
```sql
                SELECT "lower_index_kcal_nm_3" FROM "wobbe_index_of_common_fuel_gases" WHERE "upper_index_mj_nm_3"='61.32';
```
## Task
Generate a SQL query to answer the following question:
`What is the Quarterback rating of the player who got a comp percentage of 62.0?`

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

CREATE TABLE "all_time_professional_quarterback_passin" (
  "rank" real,
  "name" text,
  "tenure" text,
  "leagues" text,
  "attempts" real,
  "completions" real,
  "comp_pct" text,
  "touchdowns" real,
  "interceptions" real,
  "yardage" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Quarterback rating of the player who got a comp percentage of 62.0?`:
```sql
                SELECT "qb_rating" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='62.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the player who got 58179 in yardage?`

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

CREATE TABLE "all_time_professional_quarterback_passin" (
  "rank" real,
  "name" text,
  "tenure" text,
  "leagues" text,
  "attempts" real,
  "completions" real,
  "comp_pct" text,
  "touchdowns" real,
  "interceptions" real,
  "yardage" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the player who got 58179 in yardage?`:
```sql
                SELECT "rank" FROM "all_time_professional_quarterback_passin" WHERE "yardage"=58179;
```
## Task
Generate a SQL query to answer the following question:
`In which league would you find the player with a comp percentage of 54.0?`

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

CREATE TABLE "all_time_professional_quarterback_passin" (
  "rank" real,
  "name" text,
  "tenure" text,
  "leagues" text,
  "attempts" real,
  "completions" real,
  "comp_pct" text,
  "touchdowns" real,
  "interceptions" real,
  "yardage" real,
  "qb_rating" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which league would you find the player with a comp percentage of 54.0?`:
```sql
                SELECT "leagues" FROM "all_time_professional_quarterback_passin" WHERE "comp_pct"='54.0';
```
## Task
Generate a SQL query to answer the following question:
`Which nation is where rider phillip dutton from?`

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

CREATE TABLE "table1_18666752_3" (
  "nation" text,
  "rider" text,
  "horse" text,
  "cross_country_penalties" text,
  "total_penalties" text,
  "total_team_penalties" text,
  "team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is where rider phillip dutton from?`:
```sql
                SELECT "nation" FROM "table1_18666752_3" WHERE "rider"='Phillip Dutton';
```
## Task
Generate a SQL query to answer the following question:
`Which nation is where the horse parkmore ed is?`

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

CREATE TABLE "table1_18666752_3" (
  "nation" text,
  "rider" text,
  "horse" text,
  "cross_country_penalties" text,
  "total_penalties" text,
  "total_team_penalties" text,
  "team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation is where the horse parkmore ed is?`:
```sql
                SELECT "nation" FROM "table1_18666752_3" WHERE "horse"='Parkmore Ed';
```
## Task
Generate a SQL query to answer the following question:
`How many total team penalties are there when cross country penalties is 30.40?`

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

CREATE TABLE "table1_18666752_3" (
  "nation" text,
  "rider" text,
  "horse" text,
  "cross_country_penalties" text,
  "total_penalties" text,
  "total_team_penalties" text,
  "team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total team penalties are there when cross country penalties is 30.40?`:
```sql
                SELECT "total_team_penalties" FROM "table1_18666752_3" WHERE "cross_country_penalties"='30.40';
```
## Task
Generate a SQL query to answer the following question:
`Who is the rider where the horse is galan de sauvagere?`

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

CREATE TABLE "table1_18666752_3" (
  "nation" text,
  "rider" text,
  "horse" text,
  "cross_country_penalties" text,
  "total_penalties" text,
  "total_team_penalties" text,
  "team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the rider where the horse is galan de sauvagere?`:
```sql
                SELECT "rider" FROM "table1_18666752_3" WHERE "horse"='Galan De Sauvagere';
```
## Task
Generate a SQL query to answer the following question:
`How many penalties are there when Eric Vigeanel is the rider?`

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

CREATE TABLE "table1_18666752_3" (
  "nation" text,
  "rider" text,
  "horse" text,
  "cross_country_penalties" text,
  "total_penalties" text,
  "total_team_penalties" text,
  "team_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many penalties are there when Eric Vigeanel is the rider?`:
```sql
                SELECT COUNT("total_penalties") FROM "table1_18666752_3" WHERE "rider"='Eric Vigeanel';
```
## Task
Generate a SQL query to answer the following question:
`What record label corresponds to the single "I can't stay"?`

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

CREATE TABLE "singles" (
  "date" real,
  "single" text,
  "backed_with" text,
  "record_label" text,
  "format" text,
  "other_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What record label corresponds to the single "I can't stay"?`:
```sql
                SELECT "record_label" FROM "singles" WHERE "single"='I Can''t Stay';
```
## Task
Generate a SQL query to answer the following question:
`What format for the release that had 2000 copies?`

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

CREATE TABLE "singles" (
  "date" real,
  "single" text,
  "backed_with" text,
  "record_label" text,
  "format" text,
  "other_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What format for the release that had 2000 copies?`:
```sql
                SELECT "format" FROM "singles" WHERE "other_details"='2000 copies';
```
## Task
Generate a SQL query to answer the following question:
`What single(s) released in 2008 and had 4000 copies?`

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

CREATE TABLE "singles" (
  "date" real,
  "single" text,
  "backed_with" text,
  "record_label" text,
  "format" text,
  "other_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What single(s) released in 2008 and had 4000 copies?`:
```sql
                SELECT "single" FROM "singles" WHERE "date"=2008 AND "other_details"='4000 copies';
```
## Task
Generate a SQL query to answer the following question:
`What were the "other details" (number released) for "is my love will follow me"?`

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

CREATE TABLE "singles" (
  "date" real,
  "single" text,
  "backed_with" text,
  "record_label" text,
  "format" text,
  "other_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the "other details" (number released) for "is my love will follow me"?`:
```sql
                SELECT "other_details" FROM "singles" WHERE "single"='My Love Will Follow Me';
```
## Task
Generate a SQL query to answer the following question:
`What year was "moped girls" released?`

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

CREATE TABLE "singles" (
  "date" real,
  "single" text,
  "backed_with" text,
  "record_label" text,
  "format" text,
  "other_details" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was "moped girls" released?`:
```sql
                SELECT "date" FROM "singles" WHERE "single"='Moped Girls';
```
## Task
Generate a SQL query to answer the following question:
`Name the least amount of losses for 23 points`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least amount of losses for 23 points`:
```sql
                SELECT MIN("losses") FROM "torneo_apertura" WHERE "points"=23;
```
## Task
Generate a SQL query to answer the following question:
`Name the most wins for sport colombia`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most wins for sport colombia`:
```sql
                SELECT MAX("wins") FROM "torneo_apertura" WHERE "team"='Sport Colombia';
```
## Task
Generate a SQL query to answer the following question:
`Namr the total number of played for 5 losses`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Namr the total number of played for 5 losses`:
```sql
                SELECT COUNT("played") FROM "torneo_apertura" WHERE "losses"=5;
```
## Task
Generate a SQL query to answer the following question:
`Name the wins for draws pk is 3/0`

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

CREATE TABLE "torneo_apertura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the wins for draws pk is 3/0`:
```sql
                SELECT "wins" FROM "torneo_apertura" WHERE "draws_p_k_wins_p_k_losses"='3/0';
```
## Task
Generate a SQL query to answer the following question:
`What is scored with the position of 6?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is scored with the position of 6?`:
```sql
                SELECT MIN("scored") FROM "torneo_clausura" WHERE "position"=6;
```
## Task
Generate a SQL query to answer the following question:
`How many losses are there for team tembetary?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses are there for team tembetary?`:
```sql
                SELECT "losses" FROM "torneo_clausura" WHERE "team"='Tembetary';
```
## Task
Generate a SQL query to answer the following question:
`How many wins have 24 points?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins have 24 points?`:
```sql
                SELECT "wins" FROM "torneo_clausura" WHERE "points"=24;
```
## Task
Generate a SQL query to answer the following question:
`How many wins?`

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

CREATE TABLE "torneo_clausura" (
  "position" real,
  "team" text,
  "played" real,
  "wins" real,
  "draws_p_k_wins_p_k_losses" text,
  "losses" real,
  "scored" real,
  "conceded" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins?`:
```sql
                SELECT MAX("wins") FROM "torneo_clausura";
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?`

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

CREATE TABLE "table1_18712423_3" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date of the episode directed by Ian Barry and written by Philip Dalkin?`:
```sql
                SELECT "original_air_date" FROM "table1_18712423_3" WHERE "directed_by"='Ian Barry' AND "written_by"='Philip Dalkin';
```
## Task
Generate a SQL query to answer the following question:
`What is the show episode number of the episode that reached 1.215 millions views?`

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

CREATE TABLE "table1_18712423_3" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the show episode number of the episode that reached 1.215 millions views?`:
```sql
                SELECT MIN("series_episode") FROM "table1_18712423_3" WHERE "viewers_millions"='1.215';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episode written by Matt Ford?`

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

CREATE TABLE "table1_18712423_3" (
  "series_episode" real,
  "season_episode" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode written by Matt Ford?`:
```sql
                SELECT "directed_by" FROM "table1_18712423_3" WHERE "written_by"='Matt Ford';
```
## Task
Generate a SQL query to answer the following question:
`How many times was team 1 the wykeham wonderers?`

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

CREATE TABLE "table1_18733480_1" (
  "episode_num" real,
  "air_date" text,
  "team_1" text,
  "players_left_after_round_1" text,
  "team_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was team 1 the wykeham wonderers?`:
```sql
                SELECT COUNT("players_left_after_round_1") FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';
```
## Task
Generate a SQL query to answer the following question:
`What is the original air date that had the wykeham wonderers as team 1?`

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

CREATE TABLE "table1_18733480_1" (
  "episode_num" real,
  "air_date" text,
  "team_1" text,
  "players_left_after_round_1" text,
  "team_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the original air date that had the wykeham wonderers as team 1?`:
```sql
                SELECT "air_date" FROM "table1_18733480_1" WHERE "team_1"='Wykeham Wonderers';
```
## Task
Generate a SQL query to answer the following question:
`Who was team 1 when the chalkheads were team 2?`

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

CREATE TABLE "table1_18733480_1" (
  "episode_num" real,
  "air_date" text,
  "team_1" text,
  "players_left_after_round_1" text,
  "team_2" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was team 1 when the chalkheads were team 2?`:
```sql
                SELECT "team_1" FROM "table1_18733480_1" WHERE "team_2"='Chalkheads';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the production code 1acx09?`

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

CREATE TABLE "table1_18734298_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the production code 1acx09?`:
```sql
                SELECT "title" FROM "table1_18734298_1" WHERE "production_code"='1ACX09';
```
## Task
Generate a SQL query to answer the following question:
`How many series were directed by Rob Renzetti?`

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

CREATE TABLE "table1_18734298_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series were directed by Rob Renzetti?`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_18734298_1" WHERE "directed_by"='Rob Renzetti';
```
## Task
Generate a SQL query to answer the following question:
`Who wrote the series number 14?`

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

CREATE TABLE "table1_18734298_1" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote the series number 14?`:
```sql
                SELECT "written_by" FROM "table1_18734298_1" WHERE "no_in_series"=14;
```
## Task
Generate a SQL query to answer the following question:
`Did this driver have any winnings the season he had 32 starts`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Did this driver have any winnings the season he had 32 starts`:
```sql
                SELECT COUNT("winnings") FROM "nascar_sprint_cup_series" WHERE "starts"=32;
```
## Task
Generate a SQL query to answer the following question:
`How many wins in the season he finished 33rd`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins in the season he finished 33rd`:
```sql
                SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "position"='33rd';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of top 10 finishes`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of top 10 finishes`:
```sql
                SELECT MIN("top_10") FROM "nascar_sprint_cup_series";
```
## Task
Generate a SQL query to answer the following question:
`How many poles in the year 2000`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many poles in the year 2000`:
```sql
                SELECT MAX("poles") FROM "nascar_sprint_cup_series" WHERE "year"=2000;
```
## Task
Generate a SQL query to answer the following question:
`What is the average finish for winnings of $1,400?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average finish for winnings of $1,400?`:
```sql
                SELECT "avg_finish" FROM "nascar_nationwide_series" WHERE "winnings"='$1,400';
```
## Task
Generate a SQL query to answer the following question:
`What is the maximum starts that result in an average finish of 16.5?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the maximum starts that result in an average finish of 16.5?`:
```sql
                SELECT MAX("starts") FROM "nascar_nationwide_series" WHERE "avg_finish"='16.5';
```
## Task
Generate a SQL query to answer the following question:
`How many starts were there when the winnings are $690,321?`

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

CREATE TABLE "nascar_nationwide_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" text,
  "avg_finish" text,
  "winnings" text,
  "position" text,
  "team_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many starts were there when the winnings are $690,321?`:
```sql
                SELECT MIN("starts") FROM "nascar_nationwide_series" WHERE "winnings"='$690,321';
```
## Task
Generate a SQL query to answer the following question:
`If Safari is 3.76%, what is the other Mozilla amount?`

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

CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
  "period" text,
  "internet_explorer" text,
  "firefox" text,
  "chrome" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text,
  "mobile" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Safari is 3.76%, what is the other Mozilla amount?`:
```sql
                SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "safari"='3.76%';
```
## Task
Generate a SQL query to answer the following question:
`If Firefox is 30.45%, what is the other Mozilla amount?`

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

CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
  "period" text,
  "internet_explorer" text,
  "firefox" text,
  "chrome" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text,
  "mobile" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Firefox is 30.45%, what is the other Mozilla amount?`:
```sql
                SELECT "other_mozilla" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "firefox"='30.45%';
```
## Task
Generate a SQL query to answer the following question:
`If Internet Explorer is 47.22%, what is the Safari total?`

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

CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
  "period" text,
  "internet_explorer" text,
  "firefox" text,
  "chrome" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text,
  "mobile" text
);
### SQL
Given the database schema, here is the SQL query that answers `If Internet Explorer is 47.22%, what is the Safari total?`:
```sql
                SELECT "safari" FROM "usage_share_data_from_wikimedia_visitor_" WHERE "internet_explorer"='47.22%';
```
## Task
Generate a SQL query to answer the following question:
`For period September 2009, what is the other Mozilla total number?`

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

CREATE TABLE "usage_share_data_from_wikimedia_visitor_" (
  "period" text,
  "internet_explorer" text,
  "firefox" text,
  "chrome" text,
  "safari" text,
  "opera" text,
  "other_mozilla" text,
  "mobile" text
);
### SQL
Given the database schema, here is the SQL query that answers `For period September 2009, what is the other Mozilla total number?`:
```sql
                SELECT COUNT("other_mozilla") FROM "usage_share_data_from_wikimedia_visitor_" WHERE "period"='September 2009';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of production code by david richardson and todd holland`

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

CREATE TABLE "table1_1876825_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of production code by david richardson and todd holland`:
```sql
                SELECT COUNT("production_code") FROM "table1_1876825_2" WHERE "written_by"='David Richardson' AND "directed_by"='Todd Holland';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of series for march 19, 2000`

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

CREATE TABLE "table1_1876825_2" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of series for march 19, 2000`:
```sql
                SELECT COUNT("no_in_series") FROM "table1_1876825_2" WHERE "original_air_date"='March 19, 2000';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode "surgery"?`

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

CREATE TABLE "table1_1876825_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode "surgery"?`:
```sql
                SELECT "production_code" FROM "table1_1876825_3" WHERE "title"='\"Surgery\"';
```
## Task
Generate a SQL query to answer the following question:
`What episode number in the series originally aired on February 25, 2001?`

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

CREATE TABLE "table1_1876825_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number in the series originally aired on February 25, 2001?`:
```sql
                SELECT "no_in_series" FROM "table1_1876825_3" WHERE "original_air_date"='February 25, 2001';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode with the production code of 06-00-218?`

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

CREATE TABLE "table1_1876825_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode with the production code of 06-00-218?`:
```sql
                SELECT "title" FROM "table1_1876825_3" WHERE "production_code"='06-00-218';
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode 26 in the series?`

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

CREATE TABLE "table1_1876825_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode 26 in the series?`:
```sql
                SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_series"=26;
```
## Task
Generate a SQL query to answer the following question:
`What is the production code for episode 6 in the season?`

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

CREATE TABLE "table1_1876825_3" (
  "no_in_series" real,
  "no_in_season" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "production_code" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the production code for episode 6 in the season?`:
```sql
                SELECT "production_code" FROM "table1_1876825_3" WHERE "no_in_season"=6;
```