cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Pos., when From Club is "Chelsea", and when Date is "30 July 2008"?`

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

CREATE TABLE "first_team" (
  "date" text,
  "pos" text,
  "player" text,
  "from_club" text,
  "transfer_fee" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pos., when From Club is "Chelsea", and when Date is "30 July 2008"?`:
```sql
                SELECT "pos" FROM "first_team" WHERE "from_club"='chelsea' AND "date"='30 july 2008';
```
## Task
Generate a SQL query to answer the following question:
`What is the team 2 for the match with a team 1 of Panathinaikos?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the team 2 for the match with a team 1 of Panathinaikos?`:
```sql
                SELECT "team_2" FROM "round_of_16" WHERE "team_1"='panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`What was the first leg score for the match with a team 1 of Panathinaikos?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the first leg score for the match with a team 1 of Panathinaikos?`:
```sql
                SELECT "1st_leg" FROM "round_of_16" WHERE "team_1"='panathinaikos';
```
## Task
Generate a SQL query to answer the following question:
`What is the 2nd leg score for the match with a team 2 of Werder Bremen?`

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

CREATE TABLE "round_of_16" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 2nd leg score for the match with a team 2 of Werder Bremen?`:
```sql
                SELECT "2nd_leg" FROM "round_of_16" WHERE "team_2"='werder bremen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the kitmaker for Fc Augsburg?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the kitmaker for Fc Augsburg?`:
```sql
                SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "team"='fc augsburg';
```
## Task
Generate a SQL query to answer the following question:
`Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the head coach of the team, whose shirt sponsor is karstadt quelle versicherungen?`:
```sql
                SELECT "head_coach" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='karstadt quelle versicherungen';
```
## Task
Generate a SQL query to answer the following question:
`Who is the kitmaker for the team that Uwe Rapolder is the head coach of.`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the kitmaker for the team that Uwe Rapolder is the head coach of.`:
```sql
                SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "head_coach"='uwe rapolder';
```
## Task
Generate a SQL query to answer the following question:
`Who is the team captain of the team that Lübzer is the shirt sponsor for?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the team captain of the team that Lübzer is the shirt sponsor for?`:
```sql
                SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='lübzer';
```
## Task
Generate a SQL query to answer the following question:
`Who is the shirt sponsor of the team Andreas Wolf is the captain of?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the shirt sponsor of the team Andreas Wolf is the captain of?`:
```sql
                SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "team_captain"='andreas wolf';
```
## Task
Generate a SQL query to answer the following question:
`Who is the shirt sponsor for the team Daniel Thioune captains?`

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

CREATE TABLE "personnel_and_sponsoring" (
  "team" text,
  "head_coach" text,
  "team_captain" text,
  "kitmaker" text,
  "shirt_sponsor" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the shirt sponsor for the team Daniel Thioune captains?`:
```sql
                SELECT "shirt_sponsor" FROM "personnel_and_sponsoring" WHERE "team_captain"='daniel thioune';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the game number 22?`

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

CREATE TABLE "season_schedule" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "record" text,
  "streak" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the game number 22?`:
```sql
                SELECT "date" FROM "season_schedule" WHERE "game"=22;
```
## Task
Generate a SQL query to answer the following question:
`What is the Director from Paramount with a Film with a Gross of $128,152,301?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Director from Paramount with a Film with a Gross of $128,152,301?`:
```sql
                SELECT "director" FROM "highest_grossing_films_u_s" WHERE "studio"='paramount' AND "gross"='$128,152,301';
```
## Task
Generate a SQL query to answer the following question:
`What is the Studio of the Rank 10 Film?`

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

CREATE TABLE "highest_grossing_films_u_s" (
  "rank" real,
  "title" text,
  "studio" text,
  "director" text,
  "gross" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Studio of the Rank 10 Film?`:
```sql
                SELECT "studio" FROM "highest_grossing_films_u_s" WHERE "rank"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is the source of the poll that had Republican: Dino Rossi at 46%, Democrat: Christine Gregoire at 50%, and the lead margin was larger than 3?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "source" text,
  "dates_administered" text,
  "democrat_christine_gregoire" text,
  "republican_dino_rossi" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the source of the poll that had Republican: Dino Rossi at 46%, Democrat: Christine Gregoire at 50%, and the lead margin was larger than 3?`:
```sql
                SELECT "source" FROM "opinion_polling_for_the_united_states_gu" WHERE "republican_dino_rossi"='46%' AND "lead_margin">3 AND "democrat_christine_gregoire"='50%';
```
## Task
Generate a SQL query to answer the following question:
`What was the percentage for Republican: Dino Rossi when Democrat: Christine Gregoire polled at 53.7% and the lead margin was larger than 7?`

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

CREATE TABLE "opinion_polling_for_the_united_states_gu" (
  "source" text,
  "dates_administered" text,
  "democrat_christine_gregoire" text,
  "republican_dino_rossi" text,
  "lead_margin" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the percentage for Republican: Dino Rossi when Democrat: Christine Gregoire polled at 53.7% and the lead margin was larger than 7?`:
```sql
                SELECT "republican_dino_rossi" FROM "opinion_polling_for_the_united_states_gu" WHERE "lead_margin">7 AND "democrat_christine_gregoire"='53.7%';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?`

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

CREATE TABLE "list_of_doctor_who_audio_releases" (
  "title" text,
  "writer" text,
  "format" text,
  "company" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of the album written by Ford, Phil Phil Ford under BBC Audio?`:
```sql
                SELECT "release_date" FROM "list_of_doctor_who_audio_releases" WHERE "company"='bbc audio' AND "writer"='ford, phil phil ford';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date of the album written by Goss, James James Goss under Audiogo?`

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

CREATE TABLE "list_of_doctor_who_audio_releases" (
  "title" text,
  "writer" text,
  "format" text,
  "company" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date of the album written by Goss, James James Goss under Audiogo?`:
```sql
                SELECT "release_date" FROM "list_of_doctor_who_audio_releases" WHERE "writer"='goss, james james goss' AND "company"='audiogo';
```
## Task
Generate a SQL query to answer the following question:
`Who is the company that released the album on 2008-09-18 18 September 2008?`

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

CREATE TABLE "list_of_doctor_who_audio_releases" (
  "title" text,
  "writer" text,
  "format" text,
  "company" text,
  "release_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the company that released the album on 2008-09-18 18 September 2008?`:
```sql
                SELECT "company" FROM "list_of_doctor_who_audio_releases" WHERE "release_date"='2008-09-18 18 september 2008';
```
## Task
Generate a SQL query to answer the following question:
`Notre-Dame-De-Lourdes has what average area km 2?`

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

CREATE TABLE "parishes" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `Notre-Dame-De-Lourdes has what average area km 2?`:
```sql
                SELECT AVG("area_km_2") FROM "parishes" WHERE "official_name"='notre-dame-de-lourdes';
```
## Task
Generate a SQL query to answer the following question:
`Saint-Jacques has what as the area km 2?`

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

CREATE TABLE "parishes" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `Saint-Jacques has what as the area km 2?`:
```sql
                SELECT "area_km_2" FROM "parishes" WHERE "official_name"='saint-jacques';
```
## Task
Generate a SQL query to answer the following question:
`With an area km 2 of 343.95 what is the official name?`

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

CREATE TABLE "parishes" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `With an area km 2 of 343.95 what is the official name?`:
```sql
                SELECT "official_name" FROM "parishes" WHERE "area_km_2"=343.95;
```
## Task
Generate a SQL query to answer the following question:
`Saint-Basile has what status?`

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

CREATE TABLE "parishes" (
  "official_name" text,
  "status" text,
  "area_km_2" real,
  "population" real,
  "census_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `Saint-Basile has what status?`:
```sql
                SELECT "status" FROM "parishes" WHERE "official_name"='saint-basile';
```
## Task
Generate a SQL query to answer the following question:
`What circuit has qualifying as the session?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit has qualifying as the session?`:
```sql
                SELECT "circuit" FROM "y" WHERE "session"='qualifying';
```
## Task
Generate a SQL query to answer the following question:
`The 1997 Japanese Formula 3 Championship is part of what circuit?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `The 1997 Japanese Formula 3 Championship is part of what circuit?`:
```sql
                SELECT "circuit" FROM "y" WHERE "event"='1997 japanese formula 3 championship';
```
## Task
Generate a SQL query to answer the following question:
`The Fall Nationals has what sessions?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `The Fall Nationals has what sessions?`:
```sql
                SELECT "session" FROM "y" WHERE "event"='fall nationals';
```
## Task
Generate a SQL query to answer the following question:
`The 1977 Japanese Grand Prix in the open wheel discipline has what session?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `The 1977 Japanese Grand Prix in the open wheel discipline has what session?`:
```sql
                SELECT "session" FROM "y" WHERE "discipline"='open wheel' AND "event"='1977 japanese grand prix';
```
## Task
Generate a SQL query to answer the following question:
`What circuit has a race for the session, and open wheel as the discipline, and the 1977 Japanese Grand Prix as the event?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `What circuit has a race for the session, and open wheel as the discipline, and the 1977 Japanese Grand Prix as the event?`:
```sql
                SELECT "circuit" FROM "y" WHERE "session"='race' AND "discipline"='open wheel' AND "event"='1977 japanese grand prix';
```
## Task
Generate a SQL query to answer the following question:
`For what cause is Touring Car Racing the discipline?`

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

CREATE TABLE "y" (
  "discipline" text,
  "circuit" text,
  "event" text,
  "session" text,
  "cause" text
);
### SQL
Given the database schema, here is the SQL query that answers `For what cause is Touring Car Racing the discipline?`:
```sql
                SELECT "cause" FROM "y" WHERE "discipline"='touring car racing';
```
## Task
Generate a SQL query to answer the following question:
`What player scored 70-73-69-72=284?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player scored 70-73-69-72=284?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "score"='70-73-69-72=284';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest amount of money that Craig Stadler won?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest amount of money that Craig Stadler won?`:
```sql
                SELECT MIN("money") FROM "final_leaderboard" WHERE "player"='craig stadler';
```
## Task
Generate a SQL query to answer the following question:
`What country is David Graham from?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What country is David Graham from?`:
```sql
                SELECT "country" FROM "final_leaderboard" WHERE "player"='david graham';
```
## Task
Generate a SQL query to answer the following question:
`What is the total amount of money that the United States one with a To par of –2?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total amount of money that the United States one with a To par of –2?`:
```sql
                SELECT COUNT("money") FROM "final_leaderboard" WHERE "country"='united states' AND "to_par"='–2';
```
## Task
Generate a SQL query to answer the following question:
`What score did Jack Nicklaus have when he placed t6?`

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

CREATE TABLE "final_leaderboard" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Jack Nicklaus have when he placed t6?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "place"='t6' AND "player"='jack nicklaus';
```
## Task
Generate a SQL query to answer the following question:
`How much money has a to par of E?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `How much money has a to par of E?`:
```sql
                SELECT COUNT("money") FROM "final_round" WHERE "to_par"='e';
```
## Task
Generate a SQL query to answer the following question:
`What was the location on October 16?`

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

CREATE TABLE "1930s_giants_11_3" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location on October 16?`:
```sql
                SELECT "location" FROM "1930s_giants_11_3" WHERE "date"='october 16';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the result was 56-0 before 1935?`

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

CREATE TABLE "1930s_giants_11_3" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the result was 56-0 before 1935?`:
```sql
                SELECT "winner" FROM "1930s_giants_11_3" WHERE "year"<1935 AND "result"='56-0';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner in philadelphia municipal stadium in 1939?`

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

CREATE TABLE "1930s_giants_11_3" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner in philadelphia municipal stadium in 1939?`:
```sql
                SELECT "winner" FROM "1930s_giants_11_3" WHERE "location"='philadelphia municipal stadium' AND "year"=1939;
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year that the result 21-17?`

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

CREATE TABLE "1930s_giants_11_3" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year that the result 21-17?`:
```sql
                SELECT MIN("year") FROM "1930s_giants_11_3" WHERE "result"='21-17';
```
## Task
Generate a SQL query to answer the following question:
`What was the location after 1934 that Philadelphia Eagles lost on October 15?`

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

CREATE TABLE "1930s_giants_11_3" (
  "year" real,
  "date" text,
  "winner" text,
  "result" text,
  "loser" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location after 1934 that Philadelphia Eagles lost on October 15?`:
```sql
                SELECT "location" FROM "1930s_giants_11_3" WHERE "year">1934 AND "loser"='philadelphia eagles' AND "date"='october 15';
```
## Task
Generate a SQL query to answer the following question:
`When did chang myon (장면) leave office?`

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

CREATE TABLE "republic_of_korea_1948_presents" (
  "president" text,
  "vice" real,
  "romanized_hangul" text,
  "took_office" text,
  "left_office" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did chang myon (장면) leave office?`:
```sql
                SELECT "left_office" FROM "republic_of_korea_1948_presents" WHERE "romanized_hangul"='chang myon (장면)';
```
## Task
Generate a SQL query to answer the following question:
`When did the vice president with a vice over 6 take office?`

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

CREATE TABLE "republic_of_korea_1948_presents" (
  "president" text,
  "vice" real,
  "romanized_hangul" text,
  "took_office" text,
  "left_office" text,
  "political_party" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the vice president with a vice over 6 take office?`:
```sql
                SELECT "took_office" FROM "republic_of_korea_1948_presents" WHERE "vice">6;
```
## Task
Generate a SQL query to answer the following question:
`What province in Tumbes has less than 11 districts and a UBIGEO of 2401?`

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

CREATE TABLE "provinces_table" (
  "province" text,
  "region" text,
  "capital" text,
  "districts" real,
  "ubigeo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What province in Tumbes has less than 11 districts and a UBIGEO of 2401?`:
```sql
                SELECT "province" FROM "provinces_table" WHERE "districts"<11 AND "region"='tumbes' AND "ubigeo"=2401;
```
## Task
Generate a SQL query to answer the following question:
`What is Chepén's average UBIGEO?`

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

CREATE TABLE "provinces_table" (
  "province" text,
  "region" text,
  "capital" text,
  "districts" real,
  "ubigeo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Chepén's average UBIGEO?`:
```sql
                SELECT AVG("ubigeo") FROM "provinces_table" WHERE "province"='chepén';
```
## Task
Generate a SQL query to answer the following question:
`What is the region for Chepén with 3 districts?`

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

CREATE TABLE "provinces_table" (
  "province" text,
  "region" text,
  "capital" text,
  "districts" real,
  "ubigeo" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the region for Chepén with 3 districts?`:
```sql
                SELECT "region" FROM "provinces_table" WHERE "districts"=3 AND "capital"='chepén';
```
## Task
Generate a SQL query to answer the following question:
`What is the Diameter (km) of the Valle with a Longitude of 152.5e named before 1997?`

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

CREATE TABLE "valles" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Diameter (km) of the Valle with a Longitude of 152.5e named before 1997?`:
```sql
                SELECT MAX("diameter_km") FROM "valles" WHERE "longitude"='152.5e' AND "year_named"<1997;
```
## Task
Generate a SQL query to answer the following question:
`What is the Year named of the Ganga Valles?`

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

CREATE TABLE "valles" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Year named of the Ganga Valles?`:
```sql
                SELECT MAX("year_named") FROM "valles" WHERE "name"='ganga valles';
```
## Task
Generate a SQL query to answer the following question:
`What is the Latitude of the Alajen Vallis named after 1997?`

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

CREATE TABLE "valles" (
  "name" text,
  "latitude" text,
  "longitude" text,
  "diameter_km" real,
  "year_named" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Latitude of the Alajen Vallis named after 1997?`:
```sql
                SELECT "latitude" FROM "valles" WHERE "year_named">1997 AND "name"='alajen vallis';
```
## Task
Generate a SQL query to answer the following question:
`What is the release date with par116 as the cat. #?`

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

CREATE TABLE "releases" (
  "cat_num" text,
  "artist" text,
  "title" text,
  "release_date" text,
  "format" text,
  "other_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the release date with par116 as the cat. #?`:
```sql
                SELECT "release_date" FROM "releases" WHERE "cat_num"='par116';
```
## Task
Generate a SQL query to answer the following question:
`What is the title released on 24 July 2005?`

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

CREATE TABLE "releases" (
  "cat_num" text,
  "artist" text,
  "title" text,
  "release_date" text,
  "format" text,
  "other_information" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title released on 24 July 2005?`:
```sql
                SELECT "title" FROM "releases" WHERE "release_date"='24 july 2005';
```
## Task
Generate a SQL query to answer the following question:
`What is Record, when High Points is "Thaddeus Young (19)", and when Team is "@ Orlando"?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when High Points is "Thaddeus Young (19)", and when Team is "@ Orlando"?`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_points"='thaddeus young (19)' AND "team"='@ orlando';
```
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Location Attendance is "Time Warner Cable Arena 10,848"?`

### 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,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Location Attendance is "Time Warner Cable Arena 10,848"?`:
```sql
                SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='time warner cable arena 10,848';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the lowest Losses that has the Gains smaller than 0?`

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

CREATE TABLE "gains_holds_and_losses_by_party" (
  "party" text,
  "seats_dissol" real,
  "seats_2012" real,
  "gains" real,
  "holds" real,
  "losses" real,
  "net_change" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the lowest Losses that has the Gains smaller than 0?`:
```sql
                SELECT MIN("losses") FROM "gains_holds_and_losses_by_party" WHERE "gains"<0;
```
## Task
Generate a SQL query to answer the following question:
`what is the record when marc gasol (8) had the high rebounds?`

### 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 the record when marc gasol (8) had the high rebounds?`:
```sql
                SELECT "record" FROM "game_log" WHERE "high_rebounds"='marc gasol (8)';
```
## Task
Generate a SQL query to answer the following question:
`what is the score on march 8?`

### 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 the score on march 8?`:
```sql
                SELECT "score" FROM "game_log" WHERE "date"='march 8';
```
## Task
Generate a SQL query to answer the following question:
`who had the high assists on march 30?`

### 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 `who had the high assists on march 30?`:
```sql
                SELECT "high_assists" FROM "game_log" WHERE "date"='march 30';
```
## Task
Generate a SQL query to answer the following question:
`Which location has a capacity greater than 51,500?`

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

CREATE TABLE "stadiums_and_locations" (
  "team" text,
  "location" text,
  "venue" text,
  "capacity" real,
  "avg_attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which location has a capacity greater than 51,500?`:
```sql
                SELECT "location" FROM "stadiums_and_locations" WHERE "capacity">'51,500';
```
## Task
Generate a SQL query to answer the following question:
`Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?`:
```sql
                SELECT "rider" FROM "moto_gp_classification" WHERE "laps"<30 AND "manufacturer"='yamaha' AND "time"='accident' AND "grid">3;
```
## Task
Generate a SQL query to answer the following question:
`Who was the manufacturer for the race on grid 12?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the manufacturer for the race on grid 12?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "grid"=12;
```
## Task
Generate a SQL query to answer the following question:
`Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the manufacturer for the car that dani pedrosa did less than 9 laps in?`:
```sql
                SELECT "manufacturer" FROM "moto_gp_classification" WHERE "laps"<9 AND "rider"='dani pedrosa';
```
## Task
Generate a SQL query to answer the following question:
`How many laps did the driver with the yamaha manufacturer go on grid 3?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps did the driver with the yamaha manufacturer go on grid 3?`:
```sql
                SELECT "laps" FROM "moto_gp_classification" WHERE "manufacturer"='yamaha' AND "grid"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is the time in Baltimore?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the time in Baltimore?`:
```sql
                SELECT "time" FROM "21st_century_comeback" WHERE "city"='baltimore';
```
## Task
Generate a SQL query to answer the following question:
`What date was the score 1-8?`

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

CREATE TABLE "21st_century_comeback" (
  "date" text,
  "time" text,
  "opponent" text,
  "score" text,
  "site" text,
  "city" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the score 1-8?`:
```sql
                SELECT "date" FROM "21st_century_comeback" WHERE "score"='1-8';
```
## Task
Generate a SQL query to answer the following question:
`What is the event where the opponent was Chris Barden?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the event where the opponent was Chris Barden?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='chris barden';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the Court in Napoli?`

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

CREATE TABLE "singles_26_18_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of the Court in Napoli?`:
```sql
                SELECT "surface" FROM "singles_26_18_8" WHERE "tournament"='napoli';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the game with a Score of 6–4, 6–4?`

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

CREATE TABLE "singles_26_18_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the game with a Score of 6–4, 6–4?`:
```sql
                SELECT "outcome" FROM "singles_26_18_8" WHERE "score"='6–4, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`What is the Outcome of the game against Frederic Jeanclaude?`

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

CREATE TABLE "singles_26_18_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Outcome of the game against Frederic Jeanclaude?`:
```sql
                SELECT "outcome" FROM "singles_26_18_8" WHERE "opponent"='frederic jeanclaude';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent in a game with a Score of 6–2, 6–2?`

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

CREATE TABLE "singles_26_18_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent in a game with a Score of 6–2, 6–2?`:
```sql
                SELECT "opponent" FROM "singles_26_18_8" WHERE "score"='6–2, 6–2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Surface of the court against Ivo Klec with a Score of 6–3, 6–3?`

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

CREATE TABLE "singles_26_18_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Surface of the court against Ivo Klec with a Score of 6–3, 6–3?`:
```sql
                SELECT "surface" FROM "singles_26_18_8" WHERE "opponent"='ivo klec' AND "score"='6–3, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Who was the player with a score of 70-69=139?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the player with a score of 70-69=139?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='70-69=139';
```
## Task
Generate a SQL query to answer the following question:
`What country did Bart Bryant with a score of 69-70=139 belong to?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country did Bart Bryant with a score of 69-70=139 belong to?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='69-70=139' AND "player"='bart bryant';
```
## Task
Generate a SQL query to answer the following question:
`What is the country that the player with a score of 70-69=139 from?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the country that the player with a score of 70-69=139 from?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='70-69=139';
```
## Task
Generate a SQL query to answer the following question:
`In what place did the player with a score of 66-67=133 come in?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what place did the player with a score of 66-67=133 come in?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='66-67=133';
```
## Task
Generate a SQL query to answer the following question:
`What country was the player from who placed t3 with a score of 70-68=138?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was the player from who placed t3 with a score of 70-68=138?`:
```sql
                SELECT "country" FROM "second_round" WHERE "place"='t3' AND "score"='70-68=138';
```
## Task
Generate a SQL query to answer the following question:
`What was the score for the player from Scotland?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score for the player from Scotland?`:
```sql
                SELECT "score" FROM "second_round" WHERE "country"='scotland';
```
## Task
Generate a SQL query to answer the following question:
`What week had a game that was played on November 11, 1962?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What week had a game that was played on November 11, 1962?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "date"='november 11, 1962';
```
## Task
Generate a SQL query to answer the following question:
`Who is the author of Bludgeoning Angel Dokuro-Chan?`

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

CREATE TABLE "top_10_female_characters_rankings" (
  "year" real,
  "character" text,
  "title" text,
  "author" text,
  "artist" text,
  "imprint" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the author of Bludgeoning Angel Dokuro-Chan?`:
```sql
                SELECT "author" FROM "top_10_female_characters_rankings" WHERE "title"='bludgeoning angel dokuro-chan';
```
## Task
Generate a SQL query to answer the following question:
`What was the manner of departure for the outgoing manager, miguel brindisi?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_departure" text,
  "incoming_manager" text,
  "date_hired" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the manner of departure for the outgoing manager, miguel brindisi?`:
```sql
                SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='miguel brindisi';
```
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager for the team, necaxa?`

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

CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_departure" text,
  "incoming_manager" text,
  "date_hired" text,
  "position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the outgoing manager for the team, necaxa?`:
```sql
                SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='necaxa';
```
## Task
Generate a SQL query to answer the following question:
`Who was the winner when the finalist was fsv frankfurt?`

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

CREATE TABLE "german_cup_finals_under_the_gauliga_syst" (
  "year" real,
  "winner" text,
  "finalist" text,
  "result" text,
  "date" text,
  "venue" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the winner when the finalist was fsv frankfurt?`:
```sql
                SELECT "winner" FROM "german_cup_finals_under_the_gauliga_syst" WHERE "finalist"='fsv frankfurt';
```