cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`When zhang'an county 章安縣 is the commandery capital what is the province?`

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

CREATE TABLE "territories_of_eastern_wu" (
  "province" text,
  "provincial_capital" text,
  "commandery" text,
  "commandery_capital" text,
  "no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When zhang'an county 章安縣 is the commandery capital what is the province?`:
```sql
                SELECT "province" FROM "territories_of_eastern_wu" WHERE "commandery_capital"='Zhang''an County 章安縣';
```
## Task
Generate a SQL query to answer the following question:
`When gaoliang 高涼 is the commandery what is the commandery capital?`

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

CREATE TABLE "territories_of_eastern_wu" (
  "province" text,
  "provincial_capital" text,
  "commandery" text,
  "commandery_capital" text,
  "no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When gaoliang 高涼 is the commandery what is the commandery capital?`:
```sql
                SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Gaoliang 高涼';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of episode number 9-10?`

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

CREATE TABLE "table1_27832075_2" (
  "series_num" real,
  "episode_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode number 9-10?`:
```sql
                SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='9-10';
```
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers wtched episode 69 of the series?`

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

CREATE TABLE "table1_27832075_2" (
  "series_num" real,
  "episode_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million U.S. viewers wtched episode 69 of the series?`:
```sql
                SELECT "u_s_viewers_millions" FROM "table1_27832075_2" WHERE "series_num"=69;
```
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 23 in the season?`

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

CREATE TABLE "table1_27832075_2" (
  "series_num" real,
  "episode_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 23 in the season?`:
```sql
                SELECT "directed_by" FROM "table1_27832075_2" WHERE "episode_num"='23';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 12 of the season?`

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

CREATE TABLE "table1_27832075_2" (
  "series_num" real,
  "episode_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 12 of the season?`:
```sql
                SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='12';
```
## Task
Generate a SQL query to answer the following question:
`What are all the Riders whose best-conditioned horse is Basia?`

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

CREATE TABLE "world_championship_winners" (
  "year" real,
  "location" text,
  "distance_miles" real,
  "rider_names" text,
  "horse_name" text,
  "best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the Riders whose best-conditioned horse is Basia?`:
```sql
                SELECT "rider_names" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Basia';
```
## Task
Generate a SQL query to answer the following question:
`What was the distance (in miles) of the championship were the winning horse was Koona?`

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

CREATE TABLE "world_championship_winners" (
  "year" real,
  "location" text,
  "distance_miles" real,
  "rider_names" text,
  "horse_name" text,
  "best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance (in miles) of the championship were the winning horse was Koona?`:
```sql
                SELECT "distance_miles" FROM "world_championship_winners" WHERE "horse_name"='Koona';
```
## Task
Generate a SQL query to answer the following question:
`Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?`

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

CREATE TABLE "world_championship_winners" (
  "year" real,
  "location" text,
  "distance_miles" real,
  "rider_names" text,
  "horse_name" text,
  "best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?`:
```sql
                SELECT "rider_names" FROM "world_championship_winners" WHERE "location"='Euer Valley, CA' AND "horse_name"='Magic Sirocco';
```
## Task
Generate a SQL query to answer the following question:
`How many different riders are there that won riding Omr Tsunami?`

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

CREATE TABLE "world_championship_winners" (
  "year" real,
  "location" text,
  "distance_miles" real,
  "rider_names" text,
  "horse_name" text,
  "best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different riders are there that won riding Omr Tsunami?`:
```sql
                SELECT COUNT("rider_names") FROM "world_championship_winners" WHERE "horse_name"='OMR Tsunami';
```
## Task
Generate a SQL query to answer the following question:
`What was the total distance (in miles) of the championship where the best conditioned horse was Freedom?`

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

CREATE TABLE "world_championship_winners" (
  "year" real,
  "location" text,
  "distance_miles" real,
  "rider_names" text,
  "horse_name" text,
  "best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total distance (in miles) of the championship where the best conditioned horse was Freedom?`:
```sql
                SELECT "distance_miles" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Freedom';
```
## Task
Generate a SQL query to answer the following question:
`Who directed the episoede titled "sex, losers, and videotape"?`

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

CREATE TABLE "table1_27833469_1" (
  "series_num" real,
  "season_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episoede titled "sex, losers, and videotape"?`:
```sql
                SELECT "directed_by" FROM "table1_27833469_1" WHERE "title"='\"Sex, Losers, and Videotape\"';
```
## Task
Generate a SQL query to answer the following question:
`How many series numbers are there when there were 15.8 u.s. viewers (millions)?`

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

CREATE TABLE "table1_27833469_1" (
  "series_num" real,
  "season_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series numbers are there when there were 15.8 u.s. viewers (millions)?`:
```sql
                SELECT COUNT("series_num") FROM "table1_27833469_1" WHERE "u_s_viewers_millions"='15.8';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode number 11 of the season?`

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

CREATE TABLE "table1_27833469_1" (
  "series_num" real,
  "season_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode number 11 of the season?`:
```sql
                SELECT "title" FROM "table1_27833469_1" WHERE "season_num"='11';
```
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode titled "boardroom and a parked place"?`

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

CREATE TABLE "table1_27833469_1" (
  "series_num" real,
  "season_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date of the episode titled "boardroom and a parked place"?`:
```sql
                SELECT "original_air_date" FROM "table1_27833469_1" WHERE "title"='\"Boardroom and a Parked Place\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the series number for the episode number 10 of the season?`

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

CREATE TABLE "table1_27833469_1" (
  "series_num" real,
  "season_num" text,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the series number for the episode number 10 of the season?`:
```sql
                SELECT "series_num" FROM "table1_27833469_1" WHERE "season_num"='10';
```
## Task
Generate a SQL query to answer the following question:
`What are the the approximate translations when the Morphological Category is 1st. plur. perfect?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the the approximate translations when the Morphological Category is 1st. plur. perfect?`:
```sql
                SELECT "approximate_translation" FROM "triconsonantal_roots" WHERE "morphological_category"='1st. plur. perfect';
```
## Task
Generate a SQL query to answer the following question:
`What are the approximate translations when the morphological category is masc. sing. active participle?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the approximate translations when the morphological category is masc. sing. active participle?`:
```sql
                SELECT "approximate_translation" FROM "triconsonantal_roots" WHERE "morphological_category"='masc. sing. active participle';
```
## Task
Generate a SQL query to answer the following question:
`How many hebrew forms are there for the arabic form  yuktibu يكتب?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many hebrew forms are there for the arabic form  yuktibu يكتب?`:
```sql
                SELECT COUNT("hebrew_form") FROM "triconsonantal_roots" WHERE "arabic_form"='yuktibu يكتب';
```
## Task
Generate a SQL query to answer the following question:
`What are the arabic forms when the approximate translation is "he writes, will write"?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the arabic forms when the approximate translation is "he writes, will write"?`:
```sql
                SELECT "arabic_form" FROM "triconsonantal_roots" WHERE "approximate_translation"='\"he writes, will write\"';
```
## Task
Generate a SQL query to answer the following question:
`What are the morphological categories when the approximate translation is "he wrote"?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the morphological categories when the approximate translation is "he wrote"?`:
```sql
                SELECT "morphological_category" FROM "triconsonantal_roots" WHERE "approximate_translation"='\"he wrote\"';
```
## Task
Generate a SQL query to answer the following question:
`How many Arabic forms are there for the 1st. plur. perfect category?`

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

CREATE TABLE "triconsonantal_roots" (
  "semitological_abbreviation" text,
  "hebrew_name" text,
  "arabic_name" text,
  "morphological_category" text,
  "hebrew_form" text,
  "arabic_form" text,
  "approximate_translation" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many Arabic forms are there for the 1st. plur. perfect category?`:
```sql
                SELECT COUNT("arabic_form") FROM "triconsonantal_roots" WHERE "morphological_category"='1st. plur. perfect';
```
## Task
Generate a SQL query to answer the following question:
`How many were the viewers (in millions) of the series no. 45?`

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

CREATE TABLE "table1_27847088_1" (
  "episode_no" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many were the viewers (in millions) of the series no. 45?`:
```sql
                SELECT "viewers_millions" FROM "table1_27847088_1" WHERE "series_no"=45;
```
## Task
Generate a SQL query to answer the following question:
`Who was the writer of the episode title "Divine Intervention"?`

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

CREATE TABLE "table1_27847088_1" (
  "episode_no" real,
  "series_no" real,
  "episode" text,
  "director" text,
  "writer_s" text,
  "original_airdate" text,
  "viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the writer of the episode title "Divine Intervention"?`:
```sql
                SELECT "writer_s" FROM "table1_27847088_1" WHERE "episode"='\"Divine Intervention\"';
```
## Task
Generate a SQL query to answer the following question:
`How many games did UCLA's baseball team win with a score 7-6 during May of 2010?`

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

CREATE TABLE "schedule" (
  "num" real,
  "date" text,
  "opponent" text,
  "site_stadium" text,
  "score" text,
  "win" text,
  "loss" text,
  "save" text,
  "attendance" real,
  "overall_record" text,
  "pac_10_record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did UCLA's baseball team win with a score 7-6 during May of 2010?`:
```sql
                SELECT COUNT("opponent") FROM "schedule" WHERE "score"='7-6';
```
## Task
Generate a SQL query to answer the following question:
`How many wins are listed when the first title is 2004?`

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

CREATE TABLE "champions_by_nationality" (
  "rank" text,
  "nationality" text,
  "non_major_wins" real,
  "non_major_winners" real,
  "major_wins" real,
  "major_winners" real,
  "total_wins" real,
  "total_winners" real,
  "first_title" real,
  "last_title" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many wins are listed when the first title is 2004?`:
```sql
                SELECT "total_wins" FROM "champions_by_nationality" WHERE "first_title"=2004;
```
## Task
Generate a SQL query to answer the following question:
`Which network was located in Illinois?`

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

CREATE TABLE "table_of_network_o_os_that_aired_nta_pro" (
  "city" text,
  "state_or_territory" text,
  "station_call_sign" text,
  "network" text,
  "channel_number" real,
  "programs_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which network was located in Illinois?`:
```sql
                SELECT "network" FROM "table_of_network_o_os_that_aired_nta_pro" WHERE "state_or_territory"='Illinois';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest channel number?`

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

CREATE TABLE "table_of_network_o_os_that_aired_nta_pro" (
  "city" text,
  "state_or_territory" text,
  "station_call_sign" text,
  "network" text,
  "channel_number" real,
  "programs_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest channel number?`:
```sql
                SELECT MAX("channel_number") FROM "table_of_network_o_os_that_aired_nta_pro";
```
## Task
Generate a SQL query to answer the following question:
`Which state or territory had a channel number of exactly 7?`

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

CREATE TABLE "table_of_network_o_os_that_aired_nta_pro" (
  "city" text,
  "state_or_territory" text,
  "station_call_sign" text,
  "network" text,
  "channel_number" real,
  "programs_aired" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which state or territory had a channel number of exactly 7?`:
```sql
                SELECT "state_or_territory" FROM "table_of_network_o_os_that_aired_nta_pro" WHERE "channel_number"=7;
```
## Task
Generate a SQL query to answer the following question:
`Name the date for omni coliseum 10,330`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for omni coliseum 10,330`:
```sql
                SELECT "date" FROM "game_log" WHERE "location_attendance"='Omni Coliseum 10,330';
```
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for 3 game`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location attendance for 3 game`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "game"=3;
```
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for l 93-105`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the location attendance for l 93-105`:
```sql
                SELECT "location_attendance" FROM "game_log" WHERE "score"='L 93-105';
```
## Task
Generate a SQL query to answer the following question:
`Name the record for  oakland-alameda county coliseum arena 15,025`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for  oakland-alameda county coliseum arena 15,025`:
```sql
                SELECT "record" FROM "game_log" WHERE "location_attendance"='Oakland-Alameda County Coliseum Arena 15,025';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of games for w 112-94`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of games for w 112-94`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "score"='W 112-94';
```
## Task
Generate a SQL query to answer the following question:
`what is the club in the sixth round proper`

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

CREATE TABLE "calendar" (
  "round" text,
  "main_date" text,
  "number_of_fixtures" real,
  "clubs" text,
  "new_entries_this_round" text,
  "prize_money" text,
  "player_of_the_round" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the club in the sixth round proper`:
```sql
                SELECT "clubs" FROM "calendar" WHERE "round"='Sixth round proper';
```
## Task
Generate a SQL query to answer the following question:
`For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface`

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

CREATE TABLE "singles" (
  "outcome" text,
  "edition" text,
  "opponent_team" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For edition is 2011 europe/africa group iiib and surface where score is 6–4, 6–1 please specify all the surface`:
```sql
                SELECT "surface" FROM "singles" WHERE "score"='6–4, 6–1' AND "edition"='2011 Europe/Africa Group IIIB';
```
## Task
Generate a SQL query to answer the following question:
`For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team.`

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

CREATE TABLE "singles" (
  "outcome" text,
  "edition" text,
  "opponent_team" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For opponent is sandra kristjánsdóttir, outcome is winner and edition is 2009 europe/africa group iiib mention all the opponent team.`:
```sql
                SELECT "opponent_team" FROM "singles" WHERE "edition"='2009 Europe/Africa Group IIIB' AND "outcome"='Winner' AND "opponent"='Sandra Kristjánsdóttir';
```
## Task
Generate a SQL query to answer the following question:
`For score 7–6 (7–3) , 6–4 please mention total number of outcome`

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

CREATE TABLE "singles" (
  "outcome" text,
  "edition" text,
  "opponent_team" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For score 7–6 (7–3) , 6–4 please mention total number of outcome`:
```sql
                SELECT COUNT("outcome") FROM "singles" WHERE "score"='7–6 (7–3) , 6–4';
```
## Task
Generate a SQL query to answer the following question:
`For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent`

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

CREATE TABLE "singles" (
  "outcome" text,
  "edition" text,
  "opponent_team" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For armenia as opponent team and edition is 2009 europe/africa group iiib mention all the opponent`:
```sql
                SELECT "opponent" FROM "singles" WHERE "edition"='2009 Europe/Africa Group IIIB' AND "opponent_team"='Armenia';
```
## Task
Generate a SQL query to answer the following question:
`For score 6–2, 6–3 and outcome is loser mention all the edition.`

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

CREATE TABLE "singles" (
  "outcome" text,
  "edition" text,
  "opponent_team" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For score 6–2, 6–3 and outcome is loser mention all the edition.`:
```sql
                SELECT "edition" FROM "singles" WHERE "outcome"='Loser' AND "score"='6–2, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`who was the winner of uci rating cn?`

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

CREATE TABLE "events" (
  "dates" text,
  "race_name" text,
  "location" text,
  "uci_rating" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the winner of uci rating cn?`:
```sql
                SELECT "winner" FROM "events" WHERE "uci_rating"='CN';
```
## Task
Generate a SQL query to answer the following question:
`what race name had a uci rating of cn?`

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

CREATE TABLE "events" (
  "dates" text,
  "race_name" text,
  "location" text,
  "uci_rating" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `what race name had a uci rating of cn?`:
```sql
                SELECT "race_name" FROM "events" WHERE "uci_rating"='CN';
```
## Task
Generate a SQL query to answer the following question:
`what location has team trek-livestrong?`

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

CREATE TABLE "events" (
  "dates" text,
  "race_name" text,
  "location" text,
  "uci_rating" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `what location has team trek-livestrong?`:
```sql
                SELECT "location" FROM "events" WHERE "team"='Trek-Livestrong';
```
## Task
Generate a SQL query to answer the following question:
`who was the winner for souderton, pa?`

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

CREATE TABLE "events" (
  "dates" text,
  "race_name" text,
  "location" text,
  "uci_rating" text,
  "winner" text,
  "team" text,
  "series_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `who was the winner for souderton, pa?`:
```sql
                SELECT "winner" FROM "events" WHERE "location"='Souderton, PA';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of episode 120 in the series that Mike Rohl directed?`

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

CREATE TABLE "table1_27892955_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode 120 in the series that Mike Rohl directed?`:
```sql
                SELECT "title" FROM "table1_27892955_1" WHERE "directed_by"='Mike Rohl' AND "no_in_series"=120;
```
## Task
Generate a SQL query to answer the following question:
`Who wrote episode that had 1.97 million u.s. viewers?`

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

CREATE TABLE "table1_27892955_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who wrote episode that had 1.97 million u.s. viewers?`:
```sql
                SELECT "written_by" FROM "table1_27892955_1" WHERE "u_s_viewers_million"='1.97';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode that had 2.02 million u.s. viewers?`

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

CREATE TABLE "table1_27892955_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_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the episode that had 2.02 million u.s. viewers?`:
```sql
                SELECT "title" FROM "table1_27892955_1" WHERE "u_s_viewers_million"='2.02';
```
## Task
Generate a SQL query to answer the following question:
`How many games did they play on january 11?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games did they play on january 11?`:
```sql
                SELECT COUNT("location_attendance") FROM "game_log" WHERE "date"='January 11';
```
## Task
Generate a SQL query to answer the following question:
`What is every team with a record of 9-7?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every team with a record of 9-7?`:
```sql
                SELECT "team" FROM "game_log" WHERE "record"='9-7';
```
## Task
Generate a SQL query to answer the following question:
`How many people are high assists when location attendance is Seattle Center Coliseum 14,180?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people are high assists when location attendance is Seattle Center Coliseum 14,180?`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "location_attendance"='Seattle Center Coliseum 14,180';
```
## Task
Generate a SQL query to answer the following question:
`What is every date with game 23?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every date with game 23?`:
```sql
                SELECT "date" FROM "game_log" WHERE "game"=23;
```
## Task
Generate a SQL query to answer the following question:
`What is every team with location attendance of Seattle Center Coliseum 14,180?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every team with location attendance of Seattle Center Coliseum 14,180?`:
```sql
                SELECT "team" FROM "game_log" WHERE "location_attendance"='Seattle Center Coliseum 14,180';
```
## Task
Generate a SQL query to answer the following question:
`What is every team with location attendance of Arco Arena 17,014?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is every team with location attendance of Arco Arena 17,014?`:
```sql
                SELECT "team" FROM "game_log" WHERE "location_attendance"='ARCO Arena 17,014';
```
## Task
Generate a SQL query to answer the following question:
`what was the opposition where the field is waldstadion during time 6`

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

CREATE TABLE "table1_27893892_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 `what was the opposition where the field is waldstadion during time 6`:
```sql
                SELECT "opponent" FROM "table1_27893892_2" WHERE "game_site"='Waldstadion' AND "week"=6;
```
## Task
Generate a SQL query to answer the following question:
`what is the location for saturday, april 21`

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

CREATE TABLE "table1_27893892_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 `what is the location for saturday, april 21`:
```sql
                SELECT "game_site" FROM "table1_27893892_2" WHERE "date"='Saturday, April 21';
```
## Task
Generate a SQL query to answer the following question:
`what was the participation for saturday, may 12`

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

CREATE TABLE "table1_27893892_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 `what was the participation for saturday, may 12`:
```sql
                SELECT MAX("attendance") FROM "table1_27893892_2" WHERE "date"='Saturday, May 12';
```
## Task
Generate a SQL query to answer the following question:
`what was the achievement for the rival at scottish claymores`

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

CREATE TABLE "table1_27893892_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 `what was the achievement for the rival at scottish claymores`:
```sql
                SELECT "team_record" FROM "table1_27893892_2" WHERE "opponent"='at Scottish Claymores';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number for 140+?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number for 140+?`:
```sql
                SELECT MAX("140") FROM "statistics";
```
## Task
Generate a SQL query to answer the following question:
`How many legs were lost when the high checkout was 101?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many legs were lost when the high checkout was 101?`:
```sql
                SELECT COUNT("legs_lost") FROM "statistics" WHERE "high_checkout"=101;
```
## Task
Generate a SQL query to answer the following question:
`Who was the player when the 180s was 15?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player when the 180s was 15?`:
```sql
                SELECT "player" FROM "statistics" WHERE "180s"=15;
```
## Task
Generate a SQL query to answer the following question:
`How many legs were own by alan tabern?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many legs were own by alan tabern?`:
```sql
                SELECT MAX("legs_won") FROM "statistics" WHERE "player"='Alan Tabern';
```
## Task
Generate a SQL query to answer the following question:
`What is the 3-dart average where the 140+ is 75?`

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

CREATE TABLE "statistics" (
  "player" text,
  "played" real,
  "legs_won" real,
  "legs_lost" real,
  "100" real,
  "140" real,
  "180s" real,
  "high_checkout" real,
  "3_dart_average" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 3-dart average where the 140+ is 75?`:
```sql
                SELECT "3_dart_average" FROM "statistics" WHERE "140"=75;
```
## Task
Generate a SQL query to answer the following question:
`name the team for 36-29 record`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `name the team for 36-29 record`:
```sql
                SELECT "team" FROM "game_log" WHERE "record"='36-29';
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of high asists for 34-27`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of high asists for 34-27`:
```sql
                SELECT COUNT("high_assists") FROM "game_log" WHERE "record"='34-27';
```
## Task
Generate a SQL query to answer the following question:
`Name the date for score of w 112-91`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for score of w 112-91`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='W 112-91';
```
## Task
Generate a SQL query to answer the following question:
`Name the number of location attendance for 36-29 record`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of location attendance for 36-29 record`:
```sql
                SELECT COUNT("location_attendance") FROM "game_log" WHERE "record"='36-29';
```
## Task
Generate a SQL query to answer the following question:
`What date did the episode with 8.28 million u.s. viewers originally air?`

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

CREATE TABLE "table1_27910411_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the episode with 8.28 million u.s. viewers originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_27910411_1" WHERE "u_s_viewers_millions"='8.28';
```
## Task
Generate a SQL query to answer the following question:
`What episode number of the series is "open water"?`

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

CREATE TABLE "table1_27910411_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What episode number of the series is "open water"?`:
```sql
                SELECT "no_in_series" FROM "table1_27910411_1" WHERE "title"='\"Open Water\"';
```
## Task
Generate a SQL query to answer the following question:
`How many items are listed for U.S. viewers for episode number 5 in the series?`

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

CREATE TABLE "table1_27910411_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many items are listed for U.S. viewers for episode number 5 in the series?`:
```sql
                SELECT COUNT("u_s_viewers_millions") FROM "table1_27910411_1" WHERE "no_in_series"=5;
```
## Task
Generate a SQL query to answer the following question:
`What date did episode 10 in the series originally air?`

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

CREATE TABLE "table1_27910411_1" (
  "no_in_series" real,
  "title" text,
  "directed_by" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did episode 10 in the series originally air?`:
```sql
                SELECT "original_air_date" FROM "table1_27910411_1" WHERE "no_in_series"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the date the episode entitled "House" aired?`

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

CREATE TABLE "table1_27911342_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date the episode entitled "House" aired?`:
```sql
                SELECT "original_air_date" FROM "table1_27911342_1" WHERE "title"='\"House\"';
```
## Task
Generate a SQL query to answer the following question:
`What is the season number of the show written by both Kari Lizer and Jeff Astrof?`

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

CREATE TABLE "table1_27911342_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the season number of the show written by both Kari Lizer and Jeff Astrof?`:
```sql
                SELECT COUNT("season_num") FROM "table1_27911342_1" WHERE "written_by"='Kari Lizer';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the Series 40 Season 5 show?`

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

CREATE TABLE "table1_27911342_1" (
  "series_num" real,
  "season_num" real,
  "title" text,
  "written_by" text,
  "original_air_date" text,
  "u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the Series 40 Season 5 show?`:
```sql
                SELECT "title" FROM "table1_27911342_1" WHERE "season_num"=5;
```