cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who was the under-15 when Moises Galvez	was the under-17?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the under-15 when Moises Galvez	was the under-17?`:
```sql
                SELECT "under_15" FROM "boys" WHERE "under_17"='Moises Galvez';
```
## Task
Generate a SQL query to answer the following question:
`How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?`:
```sql
                SELECT COUNT("year") FROM "boys" WHERE "under_15"='Arturo Salazar Martinez' AND "under_19"='Moises Galvez';
```
## Task
Generate a SQL query to answer the following question:
`When the under-11 was Aly Abou El Einen, who was the under-13?`

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

CREATE TABLE "boys" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the under-11 was Aly Abou El Einen, who was the under-13?`:
```sql
                SELECT "under_13" FROM "boys" WHERE "under_11"='Aly Abou El Einen';
```
## Task
Generate a SQL query to answer the following question:
`What is the election date for those politicians who left office on 1850-11-15?`

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

CREATE TABLE "elections_to_congress_of_deputies" (
  "election_number" real,
  "election_date" text,
  "district" text,
  "province" text,
  "took_office" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the election date for those politicians who left office on 1850-11-15?`:
```sql
                SELECT COUNT("election_date") FROM "elections_to_congress_of_deputies" WHERE "left_office"='1850-11-15';
```
## Task
Generate a SQL query to answer the following question:
`What are the election date for elections held in the province of Albacete?`

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

CREATE TABLE "elections_to_congress_of_deputies" (
  "election_number" real,
  "election_date" text,
  "district" text,
  "province" text,
  "took_office" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the election date for elections held in the province of Albacete?`:
```sql
                SELECT "election_date" FROM "elections_to_congress_of_deputies" WHERE "province"='Albacete';
```
## Task
Generate a SQL query to answer the following question:
`What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?`

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

CREATE TABLE "elections_to_congress_of_deputies" (
  "election_number" real,
  "election_date" text,
  "district" text,
  "province" text,
  "took_office" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date in which a politician who left office on 1840-10-11 for a politician whose election number was 11?`:
```sql
                SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "election_number"=11;
```
## Task
Generate a SQL query to answer the following question:
`In how many district has a politician took office on 1844-10-14?`

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

CREATE TABLE "elections_to_congress_of_deputies" (
  "election_number" real,
  "election_date" text,
  "district" text,
  "province" text,
  "took_office" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `In how many district has a politician took office on 1844-10-14?`:
```sql
                SELECT "district" FROM "elections_to_congress_of_deputies" WHERE "took_office"='1844-10-14';
```
## Task
Generate a SQL query to answer the following question:
`What are the dates of leaving office for politician from the province of Seville?`

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

CREATE TABLE "elections_to_congress_of_deputies" (
  "election_number" real,
  "election_date" text,
  "district" text,
  "province" text,
  "took_office" text,
  "left_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the dates of leaving office for politician from the province of Seville?`:
```sql
                SELECT "left_office" FROM "elections_to_congress_of_deputies" WHERE "province"='Seville';
```
## Task
Generate a SQL query to answer the following question:
`When united arab emirates is the country how many fastest qualifying are there?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "location" text,
  "country" text,
  "date" text,
  "fastest_qualifying" text,
  "winning_pilot" text,
  "winning_aircraft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When united arab emirates is the country how many fastest qualifying are there?`:
```sql
                SELECT COUNT("fastest_qualifying") FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';
```
## Task
Generate a SQL query to answer the following question:
`When cancelled is the fastest qualifying where is the location?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "location" text,
  "country" text,
  "date" text,
  "fastest_qualifying" text,
  "winning_pilot" text,
  "winning_aircraft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When cancelled is the fastest qualifying where is the location?`:
```sql
                SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_qualifying"='Cancelled';
```
## Task
Generate a SQL query to answer the following question:
`When united arab emirates is the country what is the winning aircraft?`

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

CREATE TABLE "race_calendar_and_results" (
  "round" real,
  "location" text,
  "country" text,
  "date" text,
  "fastest_qualifying" text,
  "winning_pilot" text,
  "winning_aircraft" text
);
### SQL
Given the database schema, here is the SQL query that answers `When united arab emirates is the country what is the winning aircraft?`:
```sql
                SELECT "winning_aircraft" FROM "race_calendar_and_results" WHERE "country"='United Arab Emirates';
```
## Task
Generate a SQL query to answer the following question:
`List the number of assists against illinois-chicago.`

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

CREATE TABLE "individual_triple_doubles" (
  "num" real,
  "player" text,
  "points" real,
  "rebounds" real,
  "assists" real,
  "opponent" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of assists against illinois-chicago.`:
```sql
                SELECT "assists" FROM "individual_triple_doubles" WHERE "opponent"='Illinois-Chicago';
```
## Task
Generate a SQL query to answer the following question:
`List the opposing team on february 15, 2003.`

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

CREATE TABLE "individual_triple_doubles" (
  "num" real,
  "player" text,
  "points" real,
  "rebounds" real,
  "assists" real,
  "opponent" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the opposing team on february 15, 2003.`:
```sql
                SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 15, 2003';
```
## Task
Generate a SQL query to answer the following question:
`List the number of recovers for player #2.`

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

CREATE TABLE "individual_triple_doubles" (
  "num" real,
  "player" text,
  "points" real,
  "rebounds" real,
  "assists" real,
  "opponent" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the number of recovers for player #2.`:
```sql
                SELECT "rebounds" FROM "individual_triple_doubles" WHERE "num"=2;
```
## Task
Generate a SQL query to answer the following question:
`List the opposing team from february 22, 1983.`

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

CREATE TABLE "individual_triple_doubles" (
  "num" real,
  "player" text,
  "points" real,
  "rebounds" real,
  "assists" real,
  "opponent" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the opposing team from february 22, 1983.`:
```sql
                SELECT "opponent" FROM "individual_triple_doubles" WHERE "date"='February 22, 1983';
```
## Task
Generate a SQL query to answer the following question:
`List the lowest number of assists.`

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

CREATE TABLE "individual_triple_doubles" (
  "num" real,
  "player" text,
  "points" real,
  "rebounds" real,
  "assists" real,
  "opponent" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `List the lowest number of assists.`:
```sql
                SELECT MIN("assists") FROM "individual_triple_doubles";
```
## Task
Generate a SQL query to answer the following question:
`What is every value for Under-11 when value of under-17 is Salma Nassar?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for Under-11 when value of under-17 is Salma Nassar?`:
```sql
                SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for Under-13 when value for Under-15 is Maria Elena Ubina?`:
```sql
                SELECT "under_13" FROM "girls" WHERE "under_15"='Maria Elena Ubina';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for Under-17 if Under-15 is Maria Elena Ubina?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for Under-17 if Under-15 is Maria Elena Ubina?`:
```sql
                SELECT "under_17" FROM "girls" WHERE "under_15"='Maria Elena Ubina';
```
## Task
Generate a SQL query to answer the following question:
`What is every value for Under-11 if Under-19 is Leong Siu Lynn?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every value for Under-11 if Under-19 is Leong Siu Lynn?`:
```sql
                SELECT "under_11" FROM "girls" WHERE "under_19"='Leong Siu Lynn';
```
## Task
Generate a SQL query to answer the following question:
`Who is everyone Under-11 if Under-17 is Salma Nassar?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is everyone Under-11 if Under-17 is Salma Nassar?`:
```sql
                SELECT "under_11" FROM "girls" WHERE "under_17"='Salma Nassar';
```
## Task
Generate a SQL query to answer the following question:
`Who is every Under-15 if Under-11 is Reeham Sedky?`

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

CREATE TABLE "girls" (
  "year" real,
  "under_11" text,
  "under_13" text,
  "under_15" text,
  "under_17" text,
  "under_19" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is every Under-15 if Under-11 is Reeham Sedky?`:
```sql
                SELECT "under_15" FROM "girls" WHERE "under_11"='Reeham Sedky';
```
## Task
Generate a SQL query to answer the following question:
`How many couples had a vote percentage of 9.5%?`

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

CREATE TABLE "table1_26375386_16" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many couples had a vote percentage of 9.5%?`:
```sql
                SELECT COUNT("rank") FROM "table1_26375386_16" WHERE "vote_percentage"='9.5%';
```
## Task
Generate a SQL query to answer the following question:
`What was the lowest judge rank for danny and frankie?`

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

CREATE TABLE "table1_26375386_16" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest judge rank for danny and frankie?`:
```sql
                SELECT MIN("judges") FROM "table1_26375386_16" WHERE "couple"='Danny and Frankie';
```
## Task
Generate a SQL query to answer the following question:
`What couple had a total of 8?`

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

CREATE TABLE "table1_26375386_16" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What couple had a total of 8?`:
```sql
                SELECT "couple" FROM "table1_26375386_16" WHERE "total"=8;
```
## Task
Generate a SQL query to answer the following question:
`In what region was the change in % of the country's population since 1993 at 0.3? `

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

CREATE TABLE "results" (
  "region" text,
  "population" real,
  "pct_of_countrys_population" text,
  "change_in_population_since_1993" real,
  "change_in_pct_of_countrys_population_since_1993" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what region was the change in % of the country's population since 1993 at 0.3? `:
```sql
                SELECT "region" FROM "results" WHERE "change_in_pct_of_countrys_population_since_1993"='0.3';
```
## Task
Generate a SQL query to answer the following question:
`What is the change in population since 1993 in the region where the % of country's population was 4.2? `

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

CREATE TABLE "results" (
  "region" text,
  "population" real,
  "pct_of_countrys_population" text,
  "change_in_population_since_1993" real,
  "change_in_pct_of_countrys_population_since_1993" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the change in population since 1993 in the region where the % of country's population was 4.2? `:
```sql
                SELECT COUNT("change_in_population_since_1993") FROM "results" WHERE "pct_of_countrys_population"='4.2';
```
## Task
Generate a SQL query to answer the following question:
`What is the change in % of the country's population since 1993 in the Lambayeque region?`

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

CREATE TABLE "results" (
  "region" text,
  "population" real,
  "pct_of_countrys_population" text,
  "change_in_population_since_1993" real,
  "change_in_pct_of_countrys_population_since_1993" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the change in % of the country's population since 1993 in the Lambayeque region?`:
```sql
                SELECT "change_in_pct_of_countrys_population_since_1993" FROM "results" WHERE "region"='Lambayeque';
```
## Task
Generate a SQL query to answer the following question:
`What is the broadcast are for channel 1?`

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

CREATE TABLE "television_broadcasters" (
  "channel" real,
  "channel_name" text,
  "callsign" text,
  "signal_power" text,
  "broadcast_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the broadcast are for channel 1?`:
```sql
                SELECT "broadcast_area" FROM "television_broadcasters" WHERE "channel"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the call sign for channel 6?`

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

CREATE TABLE "television_broadcasters" (
  "channel" real,
  "channel_name" text,
  "callsign" text,
  "signal_power" text,
  "broadcast_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the call sign for channel 6?`:
```sql
                SELECT "callsign" FROM "television_broadcasters" WHERE "channel"=6;
```
## Task
Generate a SQL query to answer the following question:
`What is the channel number for TBS?`

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

CREATE TABLE "television_broadcasters" (
  "channel" real,
  "channel_name" text,
  "callsign" text,
  "signal_power" text,
  "broadcast_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the channel number for TBS?`:
```sql
                SELECT MIN("channel") FROM "television_broadcasters" WHERE "channel_name"='TBS';
```
## Task
Generate a SQL query to answer the following question:
`How many channels are there in the Greater Tokyo area?`

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

CREATE TABLE "television_broadcasters" (
  "channel" real,
  "channel_name" text,
  "callsign" text,
  "signal_power" text,
  "broadcast_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many channels are there in the Greater Tokyo area?`:
```sql
                SELECT COUNT("channel") FROM "television_broadcasters" WHERE "broadcast_area"='Greater Tokyo';
```
## Task
Generate a SQL query to answer the following question:
`What is the signal power for JOAB-DTV?`

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

CREATE TABLE "television_broadcasters" (
  "channel" real,
  "channel_name" text,
  "callsign" text,
  "signal_power" text,
  "broadcast_area" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the signal power for JOAB-DTV?`:
```sql
                SELECT "signal_power" FROM "television_broadcasters" WHERE "callsign"='JOAB-DTV';
```
## Task
Generate a SQL query to answer the following question:
`How many times is the voting percentage 10.7%`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the voting percentage 10.7%`:
```sql
                SELECT COUNT("rank") FROM "table1_26375386_20" WHERE "vote_percentage"='10.7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the vote percentage for the couple gary and maria?`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the vote percentage for the couple gary and maria?`:
```sql
                SELECT "vote_percentage" FROM "table1_26375386_20" WHERE "couple"='Gary and Maria';
```
## Task
Generate a SQL query to answer the following question:
`what couple had a vote percentage of 5.8%?`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `what couple had a vote percentage of 5.8%?`:
```sql
                SELECT "couple" FROM "table1_26375386_20" WHERE "vote_percentage"='5.8%';
```
## Task
Generate a SQL query to answer the following question:
`What is the public when the vote percentage is 16.0%`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the public when the vote percentage is 16.0%`:
```sql
                SELECT "public" FROM "table1_26375386_20" WHERE "vote_percentage"='16.0%';
```
## Task
Generate a SQL query to answer the following question:
`How many judges were there when the result is safe with a vote percentage of 10.7%?`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many judges were there when the result is safe with a vote percentage of 10.7%?`:
```sql
                SELECT MIN("judges") FROM "table1_26375386_20" WHERE "result"='Safe' AND "vote_percentage"='10.7%';
```
## Task
Generate a SQL query to answer the following question:
`How many times was the vote percentage 15.0%?`

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

CREATE TABLE "table1_26375386_20" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times was the vote percentage 15.0%?`:
```sql
                SELECT COUNT("total") FROM "table1_26375386_20" WHERE "vote_percentage"='15.0%';
```
## Task
Generate a SQL query to answer the following question:
`What is the least place when the couple is Keiron & Brianne?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least place when the couple is Keiron & Brianne?`:
```sql
                SELECT MIN("place") FROM "average_score_chart" WHERE "couple"='Keiron & Brianne';
```
## Task
Generate a SQL query to answer the following question:
`How many numbers of dances for place 1?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many numbers of dances for place 1?`:
```sql
                SELECT COUNT("number_of_dances") FROM "average_score_chart" WHERE "place"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks by average when Keiron & Brianne are the couple?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks by average when Keiron & Brianne are the couple?`:
```sql
                SELECT COUNT("rank_by_average") FROM "average_score_chart" WHERE "couple"='Keiron & Brianne';
```
## Task
Generate a SQL query to answer the following question:
`What is every average when number of dances is 1?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every average when number of dances is 1?`:
```sql
                SELECT "average" FROM "average_score_chart" WHERE "number_of_dances"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many ranks by average for the couple Tana and Stuart?`

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

CREATE TABLE "average_score_chart" (
  "rank_by_average" real,
  "place" real,
  "couple" text,
  "total_points" text,
  "number_of_dances" real,
  "average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many ranks by average for the couple Tana and Stuart?`:
```sql
                SELECT COUNT("rank_by_average") FROM "average_score_chart" WHERE "couple"='Tana and Stuart';
```
## Task
Generate a SQL query to answer the following question:
`Name the rank for mikey and melanie`

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

CREATE TABLE "table1_26375386_22" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the rank for mikey and melanie`:
```sql
                SELECT "rank" FROM "table1_26375386_22" WHERE "couple"='Mikey and Melanie';
```
## Task
Generate a SQL query to answer the following question:
`Name the public for mikey and melanie`

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

CREATE TABLE "table1_26375386_22" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the public for mikey and melanie`:
```sql
                SELECT "public" FROM "table1_26375386_22" WHERE "couple"='Mikey and Melanie';
```
## Task
Generate a SQL query to answer the following question:
`Name the judges for 4 public`

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

CREATE TABLE "table1_26375386_22" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the judges for 4 public`:
```sql
                SELECT "judges" FROM "table1_26375386_22" WHERE "public"=4;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number for 3 public`

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

CREATE TABLE "table1_26375386_22" (
  "rank" real,
  "couple" text,
  "judges" real,
  "public" real,
  "total" real,
  "vote_percentage" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number for 3 public`:
```sql
                SELECT COUNT("total") FROM "table1_26375386_22" WHERE "public"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the number of directors for the film title Eldra?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of directors for the film title Eldra?`:
```sql
                SELECT COUNT("director") FROM "table1_26385848_1" WHERE "film_title"='Eldra';
```
## Task
Generate a SQL query to answer the following question:
`What is the year (ceremony) for the film title Eldra?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year (ceremony) for the film title Eldra?`:
```sql
                SELECT "year_ceremony" FROM "table1_26385848_1" WHERE "film_title"='Eldra';
```
## Task
Generate a SQL query to answer the following question:
`Who is the director for the  film title Eldra?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the director for the  film title Eldra?`:
```sql
                SELECT "director" FROM "table1_26385848_1" WHERE "film_title"='Eldra';
```
## Task
Generate a SQL query to answer the following question:
`In the year (ceremony) 1998 (71st), what are all the main languages?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year (ceremony) 1998 (71st), what are all the main languages?`:
```sql
                SELECT "main_language_s" FROM "table1_26385848_1" WHERE "year_ceremony"='1998 (71st)';
```
## Task
Generate a SQL query to answer the following question:
`In the year (ceremony) 2009 (82nd), who are all the directors?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year (ceremony) 2009 (82nd), who are all the directors?`:
```sql
                SELECT "director" FROM "table1_26385848_1" WHERE "year_ceremony"='2009 (82nd)';
```
## Task
Generate a SQL query to answer the following question:
`In the year (ceremony) 1995 (68th), what is the film title?`

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

CREATE TABLE "table1_26385848_1" (
  "year_ceremony" text,
  "film_title" text,
  "main_language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `In the year (ceremony) 1995 (68th), what is the film title?`:
```sql
                SELECT "film_title" FROM "table1_26385848_1" WHERE "year_ceremony"='1995 (68th)';
```
## Task
Generate a SQL query to answer the following question:
`If the country of Origin is South Africa, who is the primary user?`

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

CREATE TABLE "table1_26389588_1" (
  "name_designation" text,
  "year_of_introduction" text,
  "country_of_origin" text,
  "primary_cartridge" text,
  "primary_user" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the country of Origin is South Africa, who is the primary user?`:
```sql
                SELECT "primary_user" FROM "table1_26389588_1" WHERE "country_of_origin"='South Africa';
```
## Task
Generate a SQL query to answer the following question:
`If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?`

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

CREATE TABLE "table1_26389588_1" (
  "name_designation" text,
  "year_of_introduction" text,
  "country_of_origin" text,
  "primary_cartridge" text,
  "primary_user" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Country of Origin is Denmark and the year of introduction is 1962, what is the primary cartridge?`:
```sql
                SELECT "primary_cartridge" FROM "table1_26389588_1" WHERE "year_of_introduction"='1962' AND "country_of_origin"='Denmark';
```
## Task
Generate a SQL query to answer the following question:
`How many different years was the name/designation cetme?`

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

CREATE TABLE "table1_26389588_1" (
  "name_designation" text,
  "year_of_introduction" text,
  "country_of_origin" text,
  "primary_cartridge" text,
  "primary_user" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different years was the name/designation cetme?`:
```sql
                SELECT COUNT("year_of_introduction") FROM "table1_26389588_1" WHERE "name_designation"='CETME';
```
## Task
Generate a SQL query to answer the following question:
`If the country of origin is switzerland, what is the name/ designation?`

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

CREATE TABLE "table1_26389588_1" (
  "name_designation" text,
  "year_of_introduction" text,
  "country_of_origin" text,
  "primary_cartridge" text,
  "primary_user" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the country of origin is switzerland, what is the name/ designation?`:
```sql
                SELECT "name_designation" FROM "table1_26389588_1" WHERE "country_of_origin"='Switzerland';
```
## Task
Generate a SQL query to answer the following question:
`How many singles does Lisa Stansfield have?`

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

CREATE TABLE "table1_26400075_2" (
  "entered_a" text,
  "weeks_in_top_10" real,
  "single" text,
  "artist" text,
  "peak" real,
  "peak_reached_a" text,
  "weeks_at_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many singles does Lisa Stansfield have?`:
```sql
                SELECT COUNT("single") FROM "table1_26400075_2" WHERE "artist"='Lisa Stansfield';
```
## Task
Generate a SQL query to answer the following question:
`How many weeks in the top-10 did Beats International have?`

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

CREATE TABLE "table1_26400075_2" (
  "entered_a" text,
  "weeks_in_top_10" real,
  "single" text,
  "artist" text,
  "peak" real,
  "peak_reached_a" text,
  "weeks_at_peak" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks in the top-10 did Beats International have?`:
```sql
                SELECT "weeks_in_top_10" FROM "table1_26400075_2" WHERE "artist"='Beats International';
```
## Task
Generate a SQL query to answer the following question:
`Name the final score for barcelona dragons`

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

CREATE TABLE "table1_26401898_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the final score for barcelona dragons`:
```sql
                SELECT "final_score" FROM "table1_26401898_2" WHERE "opponent"='Barcelona Dragons';
```
## Task
Generate a SQL query to answer the following question:
`Name the least week for  l 26–42`

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

CREATE TABLE "table1_26401898_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least week for  l 26–42`:
```sql
                SELECT MIN("week") FROM "table1_26401898_2" WHERE "final_score"='L 26–42';
```
## Task
Generate a SQL query to answer the following question:
`Name the game site for  l 26–42`

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

CREATE TABLE "table1_26401898_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the game site for  l 26–42`:
```sql
                SELECT "game_site" FROM "table1_26401898_2" WHERE "final_score"='L 26–42';
```
## Task
Generate a SQL query to answer the following question:
`Name the most attendance`

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

CREATE TABLE "table1_26401898_2" (
  "week" real,
  "date" text,
  "kickoff" text,
  "opponent" text,
  "final_score" text,
  "team_record" text,
  "game_site" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most attendance`:
```sql
                SELECT MIN("attendance") FROM "table1_26401898_2";
```
## Task
Generate a SQL query to answer the following question:
`What is the elected year when the 2010 candidates were jesse stone (r) 93.51 diane evans (i) 6.49%?`

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

CREATE TABLE "election_results" (
  "district" real,
  "incumbent" text,
  "party" text,
  "elected" text,
  "status" text,
  "2010_candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elected year when the 2010 candidates were jesse stone (r) 93.51 diane evans (i) 6.49%?`:
```sql
                SELECT "elected" FROM "election_results" WHERE "2010_candidates"='Jesse Stone (R) 93.51 Diane Evans (I) 6.49%';
```
## Task
Generate a SQL query to answer the following question:
`What is the party when 2010 candidates is gloria butler (d) unopposed?`

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

CREATE TABLE "election_results" (
  "district" real,
  "incumbent" text,
  "party" text,
  "elected" text,
  "status" text,
  "2010_candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the party when 2010 candidates is gloria butler (d) unopposed?`:
```sql
                SELECT "party" FROM "election_results" WHERE "2010_candidates"='Gloria Butler (D) unopposed';
```
## Task
Generate a SQL query to answer the following question:
`How many times were the 2010 candidates Judson hill (r) unopposed?`

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

CREATE TABLE "election_results" (
  "district" real,
  "incumbent" text,
  "party" text,
  "elected" text,
  "status" text,
  "2010_candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times were the 2010 candidates Judson hill (r) unopposed?`:
```sql
                SELECT COUNT("elected") FROM "election_results" WHERE "2010_candidates"='Judson Hill (R) unopposed';
```
## Task
Generate a SQL query to answer the following question:
`What is the elected year when the party is democratic and the 2010 candidates is jason carter (d) unopposed?`

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

CREATE TABLE "election_results" (
  "district" real,
  "incumbent" text,
  "party" text,
  "elected" text,
  "status" text,
  "2010_candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the elected year when the party is democratic and the 2010 candidates is jason carter (d) unopposed?`:
```sql
                SELECT "elected" FROM "election_results" WHERE "party"='Democratic' AND "2010_candidates"='Jason Carter (D) unopposed';
```
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican?`

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

CREATE TABLE "election_results" (
  "district" real,
  "incumbent" text,
  "party" text,
  "elected" text,
  "status" text,
  "2010_candidates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican?`:
```sql
                SELECT "incumbent" FROM "election_results" WHERE "elected"='2004' AND "status"='Re-elected' AND "party"='Republican';
```
## Task
Generate a SQL query to answer the following question:
`what number is the episode "there will be bad blood" in the series?`

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

CREATE TABLE "table1_26409328_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 `what number is the episode "there will be bad blood" in the series?`:
```sql
                SELECT MIN("no_in_series") FROM "table1_26409328_1" WHERE "title"='\"There Will Be Bad Blood\"';
```
## Task
Generate a SQL query to answer the following question:
`who wrote the episode having joe daniello as director with production code 6ajn05?`

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

CREATE TABLE "table1_26409328_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 wrote the episode having joe daniello as director with production code 6ajn05?`:
```sql
                SELECT "written_by" FROM "table1_26409328_1" WHERE "directed_by"='Joe Daniello' AND "production_code"='6AJN05';
```
## Task
Generate a SQL query to answer the following question:
`what title was given to the episode with production code 6ajn08?`

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

CREATE TABLE "table1_26409328_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 `what title was given to the episode with production code 6ajn08?`:
```sql
                SELECT "title" FROM "table1_26409328_1" WHERE "production_code"='6AJN08';
```
## Task
Generate a SQL query to answer the following question:
`what is the production code of the episode viewed by 5.36 million u.s. people? `

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

CREATE TABLE "table1_26409328_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 `what is the production code of the episode viewed by 5.36 million u.s. people? `:
```sql
                SELECT "production_code" FROM "table1_26409328_1" WHERE "u_s_viewers_millions"='5.36';
```
## Task
Generate a SQL query to answer the following question:
`How many cast members had sydney walker as their fresh meat partner?`

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

CREATE TABLE "cast" (
  "alumni" text,
  "original_season" text,
  "fresh_meat_partner" text,
  "age" real,
  "hometown" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many cast members had sydney walker as their fresh meat partner?`:
```sql
                SELECT COUNT("hometown") FROM "cast" WHERE "fresh_meat_partner"='Sydney Walker';
```
## Task
Generate a SQL query to answer the following question:
`What alumni had noor jehangir as their fresh meat partner?`

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

CREATE TABLE "cast" (
  "alumni" text,
  "original_season" text,
  "fresh_meat_partner" text,
  "age" real,
  "hometown" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What alumni had noor jehangir as their fresh meat partner?`:
```sql
                SELECT "alumni" FROM "cast" WHERE "fresh_meat_partner"='Noor Jehangir';
```
## Task
Generate a SQL query to answer the following question:
`What alumni were in rw: cancun as their original season?`

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

CREATE TABLE "cast" (
  "alumni" text,
  "original_season" text,
  "fresh_meat_partner" text,
  "age" real,
  "hometown" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `What alumni were in rw: cancun as their original season?`:
```sql
                SELECT "alumni" FROM "cast" WHERE "original_season"='RW: Cancun';
```
## Task
Generate a SQL query to answer the following question:
`How many people were from portland, or?`

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

CREATE TABLE "cast" (
  "alumni" text,
  "original_season" text,
  "fresh_meat_partner" text,
  "age" real,
  "hometown" text,
  "finish" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were from portland, or?`:
```sql
                SELECT COUNT("age") FROM "cast" WHERE "hometown"='Portland, OR';
```