cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd when Nicolai Klindt won?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who came in 3rd when Nicolai Klindt won?`:
```sql
                SELECT "3rd_place" FROM "previous_winners" WHERE "winners"='nicolai klindt';
```
## Task
Generate a SQL query to answer the following question:
`Who won when Karol Ząbik came in 2nd?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won when Karol Ząbik came in 2nd?`:
```sql
                SELECT "winners" FROM "previous_winners" WHERE "2nd_place"='karol ząbik';
```
## Task
Generate a SQL query to answer the following question:
`Who came in 3rd at Venue?`

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

CREATE TABLE "previous_winners" (
  "year" text,
  "venue" text,
  "winners" text,
  "2nd_place" text,
  "3rd_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who came in 3rd at Venue?`:
```sql
                SELECT "3rd_place" FROM "previous_winners" WHERE "venue"='venue';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of weeks that the Steelers had a record of 1–0?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "kickoff_et" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of weeks that the Steelers had a record of 1–0?`:
```sql
                SELECT COUNT("week") FROM "schedule" WHERE "record"='1–0';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the Steelers game that had a result of l 20–17?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "kickoff_et" text,
  "opponent" text,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the Steelers game that had a result of l 20–17?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "result"='l 20–17';
```
## Task
Generate a SQL query to answer the following question:
`Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged' AND "platelet_count"='unaffected' AND "bleeding_time"='prolonged';
```
## Task
Generate a SQL query to answer the following question:
`Name the condition with partial thromboplastin time of prolonged or unaffected`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the condition with partial thromboplastin time of prolonged or unaffected`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='prolonged or unaffected';
```
## Task
Generate a SQL query to answer the following question:
`Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='unaffected' AND "prothrombin_time"='unaffected' AND "platelet_count"='decreased';
```
## Task
Generate a SQL query to answer the following question:
`Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged`:
```sql
                SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='unaffected' AND "bleeding_time"='unaffected' AND "prothrombin_time"='prolonged' AND "partial_thromboplastin_time"='prolonged';
```
## Task
Generate a SQL query to answer the following question:
`Name the bleeding time with platelet count of unaffected and condition of factor xii deficiency`

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

CREATE TABLE "laboratory_findings_in_various_platelet_" (
  "condition" text,
  "prothrombin_time" text,
  "partial_thromboplastin_time" text,
  "bleeding_time" text,
  "platelet_count" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the bleeding time with platelet count of unaffected and condition of factor xii deficiency`:
```sql
                SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='unaffected' AND "condition"='factor xii deficiency';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of losses with draws less than 1 and 6.3% efficiency?`

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

CREATE TABLE "coaches" (
  "name" text,
  "period" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "efficiency_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of losses with draws less than 1 and 6.3% efficiency?`:
```sql
                SELECT AVG("losses") FROM "coaches" WHERE "efficiency_pct"='6.3%' AND "draws"<1;
```
## Task
Generate a SQL query to answer the following question:
`what is the number of draws for ali said gouled?`

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

CREATE TABLE "coaches" (
  "name" text,
  "period" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "efficiency_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of draws for ali said gouled?`:
```sql
                SELECT COUNT("draws") FROM "coaches" WHERE "name"='ali said gouled';
```
## Task
Generate a SQL query to answer the following question:
`what is the number of draws when there are 4 losses and 28.6% efficiency?`

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

CREATE TABLE "coaches" (
  "name" text,
  "period" text,
  "wins" real,
  "draws" real,
  "losses" real,
  "efficiency_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the number of draws when there are 4 losses and 28.6% efficiency?`:
```sql
                SELECT COUNT("draws") FROM "coaches" WHERE "losses"=4 AND "efficiency_pct"='28.6%';
```
## Task
Generate a SQL query to answer the following question:
`Name the females when males are 1 548`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the females when males are 1 548`:
```sql
                SELECT "females" FROM "language" WHERE "males"='1 548';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage with number of 1 343`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage with number of 1 343`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "number"='1 343';
```
## Task
Generate a SQL query to answer the following question:
`Name the percentage which has females of 2`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the percentage which has females of 2`:
```sql
                SELECT "percentage_pct" FROM "language" WHERE "females"='2';
```
## Task
Generate a SQL query to answer the following question:
`Name the males for language of persons that didn't name their native language`

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

CREATE TABLE "language" (
  "language" text,
  "number" text,
  "percentage_pct" text,
  "males" text,
  "females" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the males for language of persons that didn't name their native language`:
```sql
                SELECT "males" FROM "language" WHERE "language"='persons that didn''t name their native language';
```
## Task
Generate a SQL query to answer the following question:
`What are the school colors for the college whose main campus is overland park?`

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

CREATE TABLE "eastern_division" (
  "institution" text,
  "main_campus_location" text,
  "founded" real,
  "mascot" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the school colors for the college whose main campus is overland park?`:
```sql
                SELECT "school_colors" FROM "eastern_division" WHERE "main_campus_location"='overland park';
```
## Task
Generate a SQL query to answer the following question:
`What is independence community college's newest campus?`

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

CREATE TABLE "eastern_division" (
  "institution" text,
  "main_campus_location" text,
  "founded" real,
  "mascot" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is independence community college's newest campus?`:
```sql
                SELECT MIN("founded") FROM "eastern_division" WHERE "institution"='independence community college';
```
## Task
Generate a SQL query to answer the following question:
`What college was founded in 1967?`

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

CREATE TABLE "eastern_division" (
  "institution" text,
  "main_campus_location" text,
  "founded" real,
  "mascot" text,
  "school_colors" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college was founded in 1967?`:
```sql
                SELECT "main_campus_location" FROM "eastern_division" WHERE "founded"=1967;
```
## Task
Generate a SQL query to answer the following question:
`Which party is associated with a leader who began his tenure on June 13, 2007?`

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

CREATE TABLE "list_of_negotiation_leaders" (
  "from" text,
  "until" text,
  "name" text,
  "party" text,
  "function" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which party is associated with a leader who began his tenure on June 13, 2007?`:
```sql
                SELECT "party" FROM "list_of_negotiation_leaders" WHERE "from"='june 13, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the beginning date associated with an ending date of July 4, 2007?`

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

CREATE TABLE "list_of_negotiation_leaders" (
  "from" text,
  "until" text,
  "name" text,
  "party" text,
  "function" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the beginning date associated with an ending date of July 4, 2007?`:
```sql
                SELECT "from" FROM "list_of_negotiation_leaders" WHERE "until"='july 4, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Who had a function of explorator?`

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

CREATE TABLE "list_of_negotiation_leaders" (
  "from" text,
  "until" text,
  "name" text,
  "party" text,
  "function" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a function of explorator?`:
```sql
                SELECT "name" FROM "list_of_negotiation_leaders" WHERE "function"='explorator';
```
## Task
Generate a SQL query to answer the following question:
`What is the Until date associated with a beginning From date of July 5, 2007?`

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

CREATE TABLE "list_of_negotiation_leaders" (
  "from" text,
  "until" text,
  "name" text,
  "party" text,
  "function" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Until date associated with a beginning From date of July 5, 2007?`:
```sql
                SELECT "until" FROM "list_of_negotiation_leaders" WHERE "from"='july 5, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?`

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

CREATE TABLE "list_of_negotiation_leaders" (
  "from" text,
  "until" text,
  "name" text,
  "party" text,
  "function" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Until date that has a party of VLD and a beginning from date of December 17, 2007?`:
```sql
                SELECT "until" FROM "list_of_negotiation_leaders" WHERE "party"='vld' AND "from"='december 17, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Can you tell me the Competing entities that has the First held smaller than 1970?`

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

CREATE TABLE "references" (
  "competing_entities" text,
  "first_held" real,
  "current_holder" text,
  "next" text,
  "held_every" text
);
### SQL
Given the database schema, here is the SQL query that answers `Can you tell me the Competing entities that has the First held smaller than 1970?`:
```sql
                SELECT "competing_entities" FROM "references" WHERE "first_held"<1970;
```
## Task
Generate a SQL query to answer the following question:
`What surface was played on on October 3, 2010?`

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

CREATE TABLE "singles_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "tier" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What surface was played on on October 3, 2010?`:
```sql
                SELECT "surface" FROM "singles_10" WHERE "date"='october 3, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What was the tier versus Manana Shapakidze?`

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

CREATE TABLE "singles_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "tier" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tier versus Manana Shapakidze?`:
```sql
                SELECT "tier" FROM "singles_10" WHERE "opponent_in_the_final"='manana shapakidze';
```
## Task
Generate a SQL query to answer the following question:
`What was the score versus Michaela Pochabová?`

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

CREATE TABLE "singles_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "tier" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score versus Michaela Pochabová?`:
```sql
                SELECT "score" FROM "singles_10" WHERE "opponent_in_the_final"='michaela pochabová';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on May 8, 2006?`

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

CREATE TABLE "singles_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "tier" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on May 8, 2006?`:
```sql
                SELECT "opponent_in_the_final" FROM "singles_10" WHERE "date"='may 8, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What was the tier versus Annalisa bona?`

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

CREATE TABLE "singles_10" (
  "date" text,
  "tournament" text,
  "surface" text,
  "tier" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tier versus Annalisa bona?`:
```sql
                SELECT "tier" FROM "singles_10" WHERE "opponent_in_the_final"='annalisa bona';
```
## Task
Generate a SQL query to answer the following question:
`What is the average place for the song called "homme" that has voes larger than 1320?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average place for the song called "homme" that has voes larger than 1320?`:
```sql
                SELECT AVG("place") FROM "eurolaul_26_january_2002" WHERE "song"='\"homme\"' AND "votes">1320;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the draw for the song "Beautiful Inside" which has a place larger than 2?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the draw for the song "Beautiful Inside" which has a place larger than 2?`:
```sql
                SELECT SUM("draw") FROM "eurolaul_26_january_2002" WHERE "song"='\"beautiful inside\"' AND "place">2;
```
## Task
Generate a SQL query to answer the following question:
`Which song has votes greater than 640 and a draw of 1?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which song has votes greater than 640 and a draw of 1?`:
```sql
                SELECT "song" FROM "eurolaul_26_january_2002" WHERE "votes">640 AND "draw"=1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average place for a song with votes smaller than 8696, the song "turn the tide", and a draw larger than 3?`

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

CREATE TABLE "eurolaul_26_january_2002" (
  "draw" real,
  "artist" text,
  "song" text,
  "votes" real,
  "place" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average place for a song with votes smaller than 8696, the song "turn the tide", and a draw larger than 3?`:
```sql
                SELECT AVG("place") FROM "eurolaul_26_january_2002" WHERE "votes"<8696 AND "song"='\"turn the tide\"' AND "draw">3;
```
## Task
Generate a SQL query to answer the following question:
`When Keey has 58.1% what % does Bush have?`

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

CREATE TABLE "by_county" (
  "county" text,
  "kerrypct" text,
  "kerrynum" real,
  "bushpct" text,
  "bushnum" real,
  "otherspct" text,
  "othersnum" real
);
### SQL
Given the database schema, here is the SQL query that answers `When Keey has 58.1% what % does Bush have?`:
```sql
                SELECT "bushpct" FROM "by_county" WHERE "kerrypct"='58.1%';
```
## Task
Generate a SQL query to answer the following question:
`Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15?`

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

CREATE TABLE "notable_players" (
  "nationality" text,
  "position" text,
  "real_betis_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which of Real Betis career had appearances smaller than 98, nationality of Spain, and goals greater than 15?`:
```sql
                SELECT "real_betis_career" FROM "notable_players" WHERE "appearances"<98 AND "nationality"='spain' AND "goals">15;
```
## Task
Generate a SQL query to answer the following question:
`What Decile has State Authority and Raumati South Area?`

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

CREATE TABLE "kapiti_coast_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Decile has State Authority and Raumati South Area?`:
```sql
                SELECT "decile" FROM "kapiti_coast_district" WHERE "authority"='state' AND "area"='raumati south';
```
## Task
Generate a SQL query to answer the following question:
`What is the total Decile with Waikanae Area?`

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

CREATE TABLE "kapiti_coast_district" (
  "name" text,
  "years" text,
  "gender" text,
  "area" text,
  "authority" text,
  "decile" real,
  "roll" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total Decile with Waikanae Area?`:
```sql
                SELECT SUM("decile") FROM "kapiti_coast_district" WHERE "area"='waikanae';
```
## Task
Generate a SQL query to answer the following question:
`What Player with a Place of T10 had a Score of 80-70-72-72=294?`

### 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 with a Place of T10 had a Score of 80-70-72-72=294?`:
```sql
                SELECT "player" FROM "final_leaderboard" WHERE "place"='t10' AND "score"='80-70-72-72=294';
```
## Task
Generate a SQL query to answer the following question:
`What was the Money ($) amount for Lloyd Mangrum?`

### 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 was the Money ($) amount for Lloyd Mangrum?`:
```sql
                SELECT "money" FROM "final_leaderboard" WHERE "player"='lloyd mangrum';
```
## Task
Generate a SQL query to answer the following question:
`What was the Money ($) amount for Cary Middlecoff?`

### 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 was the Money ($) amount for Cary Middlecoff?`:
```sql
                SELECT "money" FROM "final_leaderboard" WHERE "player"='cary middlecoff';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game with a score of 5–2, and a Loss of lilly (9–9)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game with a score of 5–2, and a Loss of lilly (9–9)?`:
```sql
                SELECT "date" FROM "game_log" WHERE "score"='5–2' AND "loss"='lilly (9–9)';
```
## Task
Generate a SQL query to answer the following question:
`What team was the opponent when there was a score of 5–4 (11)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team was the opponent when there was a score of 5–4 (11)?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "score"='5–4 (11)';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game with a record of 47–39?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game with a record of 47–39?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='47–39';
```
## Task
Generate a SQL query to answer the following question:
`What year did Tom Watson win?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What year did Tom Watson win?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom watson';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number that Tom Watson parred larger than 10?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number that Tom Watson parred larger than 10?`:
```sql
                SELECT COUNT("total") FROM "missed_the_cut" WHERE "player"='tom watson' AND "to_par">10;
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Record of 4-5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Record of 4-5?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='4-5';
```
## Task
Generate a SQL query to answer the following question:
`Which score has a Loss of gubicza (0-1)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which score has a Loss of gubicza (0-1)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='gubicza (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`Which loss happened april 18?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which loss happened april 18?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "date"='april 18';
```
## Task
Generate a SQL query to answer the following question:
`Which record has an Opponent of orioles and a Date of april 14?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has an Opponent of orioles and a Date of april 14?`:
```sql
                SELECT "record" FROM "game_log" WHERE "opponent"='orioles' AND "date"='april 14';
```
## Task
Generate a SQL query to answer the following question:
`Which record has a Date of april 25?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which record has a Date of april 25?`:
```sql
                SELECT "record" FROM "game_log" WHERE "date"='april 25';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent has a Record of 4-5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent has a Record of 4-5?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='4-5';
```
## Task
Generate a SQL query to answer the following question:
`Name the country which has prix uip venezia`

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

CREATE TABLE "2004" (
  "category" text,
  "film" text,
  "director_s" text,
  "country" text,
  "nominating_festival" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the country which has prix uip venezia`:
```sql
                SELECT "country" FROM "2004" WHERE "nominating_festival"='prix uip venezia';
```
## Task
Generate a SQL query to answer the following question:
`Name the nominating festival for director of 2004`

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

CREATE TABLE "2004" (
  "category" text,
  "film" text,
  "director_s" text,
  "country" text,
  "nominating_festival" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nominating festival for director of 2004`:
```sql
                SELECT "nominating_festival" FROM "2004" WHERE "director_s"='2004';
```
## Task
Generate a SQL query to answer the following question:
`Name the category for prix uip berlin`

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

CREATE TABLE "2004" (
  "category" text,
  "film" text,
  "director_s" text,
  "country" text,
  "nominating_festival" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the category for prix uip berlin`:
```sql
                SELECT "category" FROM "2004" WHERE "nominating_festival"='prix uip berlin';
```
## Task
Generate a SQL query to answer the following question:
`Name the nominating festival for un cartus de kent si un pachet de cafea`

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

CREATE TABLE "2004" (
  "category" text,
  "film" text,
  "director_s" text,
  "country" text,
  "nominating_festival" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the nominating festival for un cartus de kent si un pachet de cafea`:
```sql
                SELECT "nominating_festival" FROM "2004" WHERE "film"='un cartus de kent si un pachet de cafea';
```
## Task
Generate a SQL query to answer the following question:
`Name the director of alt i alt`

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

CREATE TABLE "2004" (
  "category" text,
  "film" text,
  "director_s" text,
  "country" text,
  "nominating_festival" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the director of alt i alt`:
```sql
                SELECT "director_s" FROM "2004" WHERE "film"='alt i alt';
```
## Task
Generate a SQL query to answer the following question:
`What's the score of the game they played against a team with a record of 81-54?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the score of the game they played against a team with a record of 81-54?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='81-54';
```
## Task
Generate a SQL query to answer the following question:
`What game score was there for the team with a record of 84-56?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What game score was there for the team with a record of 84-56?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='84-56';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Winner for the City of Loutraki?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Winner for the City of Loutraki?`:
```sql
                SELECT "winner" FROM "european_poker_tour" WHERE "city"='loutraki';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date for the Event ept copenhagen?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date for the Event ept copenhagen?`:
```sql
                SELECT "date" FROM "european_poker_tour" WHERE "event"='ept copenhagen';
```
## Task
Generate a SQL query to answer the following question:
`What Event did John dibella win?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Event did John dibella win?`:
```sql
                SELECT "event" FROM "european_poker_tour" WHERE "winner"='john dibella';
```
## Task
Generate a SQL query to answer the following question:
`What was the prize for winner benny spindler?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the prize for winner benny spindler?`:
```sql
                SELECT "prize" FROM "european_poker_tour" WHERE "winner"='benny spindler';
```
## Task
Generate a SQL query to answer the following question:
`What was the Event in the city of copenhagen?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Event in the city of copenhagen?`:
```sql
                SELECT "event" FROM "european_poker_tour" WHERE "city"='copenhagen';
```
## Task
Generate a SQL query to answer the following question:
`What was the Event for the prize of €850,000?`

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

CREATE TABLE "european_poker_tour" (
  "date" text,
  "city" text,
  "event" text,
  "winner" text,
  "prize" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Event for the prize of €850,000?`:
```sql
                SELECT "event" FROM "european_poker_tour" WHERE "prize"='€850,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the Redcliffe population with a Pine Rivers population greater than 164,254 and a total population less than 103,669?`

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

CREATE TABLE "population" (
  "year" real,
  "population_total" real,
  "caboolture" real,
  "pine_rivers" real,
  "redcliffe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Redcliffe population with a Pine Rivers population greater than 164,254 and a total population less than 103,669?`:
```sql
                SELECT SUM("redcliffe") FROM "population" WHERE "pine_rivers">'164,254' AND "population_total"<'103,669';
```
## Task
Generate a SQL query to answer the following question:
`What is the Pine Rivers total population after 1947 with a Redcliffe population smaller than 68,877, a total population greater than 50,785, and a Caboolture population greater than 12,207?`

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

CREATE TABLE "population" (
  "year" real,
  "population_total" real,
  "caboolture" real,
  "pine_rivers" real,
  "redcliffe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Pine Rivers total population after 1947 with a Redcliffe population smaller than 68,877, a total population greater than 50,785, and a Caboolture population greater than 12,207?`:
```sql
                SELECT COUNT("pine_rivers") FROM "population" WHERE "year">1947 AND "redcliffe"<'68,877' AND "population_total">'50,785' AND "caboolture">'12,207';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Caboolture population with a Redcliffe population greater than 27,327, a Pine Rivers population greater than 119,236, and a total population greater than 344,878 after 1971?`

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

CREATE TABLE "population" (
  "year" real,
  "population_total" real,
  "caboolture" real,
  "pine_rivers" real,
  "redcliffe" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Caboolture population with a Redcliffe population greater than 27,327, a Pine Rivers population greater than 119,236, and a total population greater than 344,878 after 1971?`:
```sql
                SELECT AVG("caboolture") FROM "population" WHERE "redcliffe">'27,327' AND "pine_rivers">'119,236' AND "year">1971 AND "population_total">'344,878';
```
## Task
Generate a SQL query to answer the following question:
`In which place is Emmet French?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which place is Emmet French?`:
```sql
                SELECT "place" FROM "first_round" WHERE "player"='emmet french';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Gold Coast when Melbourne and Adelaide are yes, but Perth is no?`:
```sql
                SELECT "gold_coast" FROM "1995" WHERE "melbourne"='yes' AND "perth"='no' AND "adelaide"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Melbourne when Adelaide, Sydney, and Perth are yes, and Gold Coast is no?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Melbourne when Adelaide, Sydney, and Perth are yes, and Gold Coast is no?`:
```sql
                SELECT "melbourne" FROM "1995" WHERE "adelaide"='yes' AND "sydney"='yes' AND "perth"='yes' AND "gold_coast"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Melbourne when Gold Coast, Perth, Auckland, and Sydney are no?`:
```sql
                SELECT "melbourne" FROM "1995" WHERE "gold_coast"='no' AND "perth"='no' AND "auckland"='no' AND "sydney"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Gold Coast when Adelaide and Perth are yes, but Auckland is no?`:
```sql
                SELECT "gold_coast" FROM "1995" WHERE "adelaide"='yes' AND "auckland"='no' AND "perth"='yes';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Gold Coast when Melbourne and Sydney are yes, while Auckland and Perth are no?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Gold Coast when Melbourne and Sydney are yes, while Auckland and Perth are no?`:
```sql
                SELECT "gold_coast" FROM "1995" WHERE "melbourne"='yes' AND "sydney"='yes' AND "auckland"='no' AND "perth"='no';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Melbourne when Adelaide is no, and Auckland is yes?`

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

CREATE TABLE "1995" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Melbourne when Adelaide is no, and Auckland is yes?`:
```sql
                SELECT "melbourne" FROM "1995" WHERE "adelaide"='no' AND "auckland"='yes';
```
## Task
Generate a SQL query to answer the following question:
`Who won on 3 june?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won on 3 june?`:
```sql
                SELECT "winner" FROM "stage_results" WHERE "date"='3 june';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Race Leader of hermann buse ( ger ), and a Stage of 5?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has a Race Leader of hermann buse ( ger ), and a Stage of 5?`:
```sql
                SELECT "date" FROM "stage_results" WHERE "race_leader"='hermann buse ( ger )' AND "stage"='5';
```
## Task
Generate a SQL query to answer the following question:
`Which race Leader has a Stage of 7?`

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

CREATE TABLE "stage_results" (
  "stage" text,
  "date" text,
  "course" text,
  "distance" text,
  "winner" text,
  "race_leader" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which race Leader has a Stage of 7?`:
```sql
                SELECT "race_leader" FROM "stage_results" WHERE "stage"='7';
```