cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is Run 3, when Team is United States (USA) USA I?`

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

CREATE TABLE "results" (
  "rank" text,
  "team" text,
  "run_1" text,
  "run_2" text,
  "run_3" text,
  "run_4" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Run 3, when Team is United States (USA) USA I?`:
```sql
                SELECT "run_3" FROM "results" WHERE "team"='united states (usa) usa i';
```
## Task
Generate a SQL query to answer the following question:
`Which position has 30 points and Reiner Stuyvenberg as a passenger?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "passenger" text,
  "equipment" text,
  "position" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which position has 30 points and Reiner Stuyvenberg as a passenger?`:
```sql
                SELECT "position" FROM "season_by_season" WHERE "points"=30 AND "passenger"='reiner stuyvenberg';
```
## Task
Generate a SQL query to answer the following question:
`Which passenger has a position of 21 and less than 49 points?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "passenger" text,
  "equipment" text,
  "position" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which passenger has a position of 21 and less than 49 points?`:
```sql
                SELECT "passenger" FROM "season_by_season" WHERE "position"='21' AND "points"<49;
```
## Task
Generate a SQL query to answer the following question:
`What were the wins with more than 145 points, less than 17 races, and Sven Verbrugge as a passenger?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "passenger" text,
  "equipment" text,
  "position" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the wins with more than 145 points, less than 17 races, and Sven Verbrugge as a passenger?`:
```sql
                SELECT "wins" FROM "season_by_season" WHERE "points">145 AND "passenger"='sven verbrugge' AND "races"<17;
```
## Task
Generate a SQL query to answer the following question:
`Who is the passenger in 2009 season with 17 races?`

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

CREATE TABLE "season_by_season" (
  "season" text,
  "passenger" text,
  "equipment" text,
  "position" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the passenger in 2009 season with 17 races?`:
```sql
                SELECT "passenger" FROM "season_by_season" WHERE "season"='2009' AND "races"=17;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NECA?`

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

CREATE TABLE "players" (
  "name" text,
  "nationality" text,
  "position" text,
  "s_o_paulo_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE POSITION FOR BRAZIL, WITH 27 GOALS, AND FOR NECA?`:
```sql
                SELECT "position" FROM "players" WHERE "nationality"='brazil' AND "goals"=27 AND "name"='neca';
```
## Task
Generate a SQL query to answer the following question:
`WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?`

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

CREATE TABLE "players" (
  "name" text,
  "nationality" text,
  "position" text,
  "s_o_paulo_career" text,
  "appearances" real,
  "goals" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?`:
```sql
                SELECT "s_o_paulo_career" FROM "players" WHERE "appearances"<201 AND "goals"<2 AND "name"='ricardo rocha';
```
## Task
Generate a SQL query to answer the following question:
`Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?`

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

CREATE TABLE "current_models" (
  "model" text,
  "released" real,
  "sensor_size" text,
  "resolution" text,
  "active_pixels" text,
  "iso_range" text,
  "dynamic_range_f_stops" real,
  "seconds_frame" real,
  "lens_conversion_factor" real,
  "display" text,
  "storage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which display has an ISO range of 80-800, and 0.8 Seconds/Frame?`:
```sql
                SELECT "display" FROM "current_models" WHERE "iso_range"='80-800' AND "seconds_frame"=0.8;
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?`

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

CREATE TABLE "religious_group_breakdown" (
  "religion" text,
  "chester" text,
  "congleton" text,
  "crewe_and_nantwich" text,
  "ellesmere_port_and_neston" text,
  "macclesfield" text,
  "vale_royal" text,
  "total" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE VALE ROYAL WITH THE JEWISH RELIGION?`:
```sql
                SELECT "vale_royal" FROM "religious_group_breakdown" WHERE "religion"='jewish';
```
## Task
Generate a SQL query to answer the following question:
`On 1959-01-27 when outcome was failure, what is the serial?`

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

CREATE TABLE "launch_history" (
  "date" text,
  "time_gmt" text,
  "serial" text,
  "apogee" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `On 1959-01-27 when outcome was failure, what is the serial?`:
```sql
                SELECT "serial" FROM "launch_history" WHERE "outcome"='failure' AND "date"='1959-01-27';
```
## Task
Generate a SQL query to answer the following question:
`Which date has serial of 11c?`

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

CREATE TABLE "launch_history" (
  "date" text,
  "time_gmt" text,
  "serial" text,
  "apogee" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has serial of 11c?`:
```sql
                SELECT "date" FROM "launch_history" WHERE "serial"='11c';
```
## Task
Generate a SQL query to answer the following question:
`Which Apogee was on 1959-02-20?`

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

CREATE TABLE "launch_history" (
  "date" text,
  "time_gmt" text,
  "serial" text,
  "apogee" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Apogee was on 1959-02-20?`:
```sql
                SELECT "apogee" FROM "launch_history" WHERE "date"='1959-02-20';
```
## Task
Generate a SQL query to answer the following question:
`Which date has time (GMT) of 23:34?`

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

CREATE TABLE "launch_history" (
  "date" text,
  "time_gmt" text,
  "serial" text,
  "apogee" text,
  "outcome" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which date has time (GMT) of 23:34?`:
```sql
                SELECT "date" FROM "launch_history" WHERE "time_gmt"='23:34';
```
## Task
Generate a SQL query to answer the following question:
`What is Cross Country, when Soccer is Ashland, when Volleyball is Wooster, and when School Year is 2006-07?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Cross Country, when Soccer is Ashland, when Volleyball is Wooster, and when School Year is 2006-07?`:
```sql
                SELECT "cross_country" FROM "girls_league_championships" WHERE "soccer"='ashland' AND "volleyball"='wooster' AND "school_year"='2006-07';
```
## Task
Generate a SQL query to answer the following question:
`What is School Year, when Cross Country is Wooster?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is School Year, when Cross Country is Wooster?`:
```sql
                SELECT "school_year" FROM "girls_league_championships" WHERE "cross_country"='wooster';
```
## Task
Generate a SQL query to answer the following question:
`What is Tennis, when School Year is 2004-05?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Tennis, when School Year is 2004-05?`:
```sql
                SELECT "tennis" FROM "girls_league_championships" WHERE "school_year"='2004-05';
```
## Task
Generate a SQL query to answer the following question:
`What is Cross Country, when School Year is 2012-13?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Cross Country, when School Year is 2012-13?`:
```sql
                SELECT "cross_country" FROM "girls_league_championships" WHERE "school_year"='2012-13';
```
## Task
Generate a SQL query to answer the following question:
`What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is School Year, when Cross Country is Lexington, when Soccer is Ashland, and when Volleyball is Wooster?`:
```sql
                SELECT "school_year" FROM "girls_league_championships" WHERE "cross_country"='lexington' AND "soccer"='ashland' AND "volleyball"='wooster';
```
## Task
Generate a SQL query to answer the following question:
`What is Soccer, when Cross Country is Lexington, and when School Year is 2011-12?`

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

CREATE TABLE "girls_league_championships" (
  "school_year" text,
  "volleyball" text,
  "cross_country" text,
  "soccer" text,
  "tennis" text,
  "golf" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Soccer, when Cross Country is Lexington, and when School Year is 2011-12?`:
```sql
                SELECT "soccer" FROM "girls_league_championships" WHERE "cross_country"='lexington' AND "school_year"='2011-12';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Attendance, when Result is l 26-16, and when Week is less than 12?`

### 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 is the highest Attendance, when Result is l 26-16, and when Week is less than 12?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "result"='l 26-16' AND "week"<12;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Week, when Result is W 34-21?`

### 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 is the highest Week, when Result is W 34-21?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "result"='w 34-21';
```
## Task
Generate a SQL query to answer the following question:
`What is the most recent year with a finish in 2nd position?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year with a finish in 2nd position?`:
```sql
                SELECT MAX("season") FROM "season_to_season" WHERE "position"='2nd';
```
## Task
Generate a SQL query to answer the following question:
`What is the position in the 2004 season?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the position in the 2004 season?`:
```sql
                SELECT "position" FROM "season_to_season" WHERE "season">2004;
```
## Task
Generate a SQL query to answer the following question:
`What is the division for the season earlier than 2004?`

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

CREATE TABLE "season_to_season" (
  "season" real,
  "level" text,
  "division" text,
  "administration" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the division for the season earlier than 2004?`:
```sql
                SELECT "division" FROM "season_to_season" WHERE "season"<2004;
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Qual 1 is 1:16.417?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Qual 1 is 1:16.417?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_1"='1:16.417';
```
## Task
Generate a SQL query to answer the following question:
`What is Team when Qual 1 is 1:20.139?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team when Qual 1 is 1:20.139?`:
```sql
                SELECT "team" FROM "qualifying_results" WHERE "qual_1"='1:20.139';
```
## Task
Generate a SQL query to answer the following question:
`What is Name when Qual 2 is 1:15.582?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name when Qual 2 is 1:15.582?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:15.582';
```
## Task
Generate a SQL query to answer the following question:
`What is Name, when Best is 1:15.673?`

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

CREATE TABLE "qualifying_results" (
  "name" text,
  "team" text,
  "qual_1" text,
  "qual_2" text,
  "best" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Name, when Best is 1:15.673?`:
```sql
                SELECT "name" FROM "qualifying_results" WHERE "best"='1:15.673';
```
## Task
Generate a SQL query to answer the following question:
`Where was the tournament that happened in 1987 on a clay surface?`

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

CREATE TABLE "doubles_titles_28" (
  "date" real,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the tournament that happened in 1987 on a clay surface?`:
```sql
                SELECT "tournament" FROM "doubles_titles_28" WHERE "date"=1987 AND "surface"='clay';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah?`

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

CREATE TABLE "doubles_titles_28" (
  "date" real,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent before 1990 that had a score of 4–6, 6–3, 6–4 and Partnering of Yannick Noah?`:
```sql
                SELECT "opponent_in_the_final" FROM "doubles_titles_28" WHERE "date"<1990 AND "partnering"='yannick noah' AND "score"='4–6, 6–3, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?`

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

CREATE TABLE "political_parties" (
  "name_english" text,
  "name_german" text,
  "abbr" text,
  "ideology" text,
  "position" text,
  "votes_2011" text,
  "seats_in_hamburgische_b_rgerschaft" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SEATS IN Hamburgische Bürgerschaft THAT HAS GREEN POLITICS?`:
```sql
                SELECT "seats_in_hamburgische_b_rgerschaft" FROM "political_parties" WHERE "ideology"='green politics';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011?`

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

CREATE TABLE "political_parties" (
  "name_english" text,
  "name_german" text,
  "abbr" text,
  "ideology" text,
  "position" text,
  "votes_2011" text,
  "seats_in_hamburgische_b_rgerschaft" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE ABBR WITH VOTES OF 11.2% IN 2011?`:
```sql
                SELECT "abbr" FROM "political_parties" WHERE "votes_2011"='11.2%';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?`

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

CREATE TABLE "political_parties" (
  "name_english" text,
  "name_german" text,
  "abbr" text,
  "ideology" text,
  "position" text,
  "votes_2011" text,
  "seats_in_hamburgische_b_rgerschaft" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE TOTAL NUMBER OF SEATS IN Hamburgische Bürgerschaft WITH AN ABBR OF bündnis 90 / die grünen (gal)?`:
```sql
                SELECT COUNT("seats_in_hamburgische_b_rgerschaft") FROM "political_parties" WHERE "abbr"='bündnis 90 / die grünen (gal)';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE GERMAN NAME OF LIBERALISM?`

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

CREATE TABLE "political_parties" (
  "name_english" text,
  "name_german" text,
  "abbr" text,
  "ideology" text,
  "position" text,
  "votes_2011" text,
  "seats_in_hamburgische_b_rgerschaft" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE GERMAN NAME OF LIBERALISM?`:
```sql
                SELECT "name_german" FROM "political_parties" WHERE "ideology"='liberalism';
```
## Task
Generate a SQL query to answer the following question:
`WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?`

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

CREATE TABLE "political_parties" (
  "name_english" text,
  "name_german" text,
  "abbr" text,
  "ideology" text,
  "position" text,
  "votes_2011" text,
  "seats_in_hamburgische_b_rgerschaft" real
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?`:
```sql
                SELECT "seats_in_hamburgische_b_rgerschaft" FROM "political_parties" WHERE "name_english"='alliance ''90/the greens';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest game played at the TD Waterhouse Centre?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest game played at the TD Waterhouse Centre?`:
```sql
                SELECT MIN("game") FROM "game_log" WHERE "location"='td waterhouse centre';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on April 2?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on April 2?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "date"='april 2';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest game number when the opponent was the Miami Heat?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest game number when the opponent was the Miami Heat?`:
```sql
                SELECT MAX("game") FROM "game_log" WHERE "opponent"='miami heat';
```
## Task
Generate a SQL query to answer the following question:
`What is Website, when License is Apache License 2.0?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Website, when License is Apache License 2.0?`:
```sql
                SELECT "website" FROM "main_information" WHERE "license"='apache license 2.0';
```
## Task
Generate a SQL query to answer the following question:
`What is Source Version, when Target Version is Java 7, 6, 5?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Source Version, when Target Version is Java 7, 6, 5?`:
```sql
                SELECT "source_version" FROM "main_information" WHERE "target_version"='java 7, 6, 5';
```
## Task
Generate a SQL query to answer the following question:
`What is Source Version, when License is LGPL or MPL?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Source Version, when License is LGPL or MPL?`:
```sql
                SELECT "source_version" FROM "main_information" WHERE "license"='lgpl or mpl';
```
## Task
Generate a SQL query to answer the following question:
`What is Target Version, when Last Release is 2009-08-09, 1.2.9?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Target Version, when Last Release is 2009-08-09, 1.2.9?`:
```sql
                SELECT "target_version" FROM "main_information" WHERE "last_release"='2009-08-09, 1.2.9';
```
## Task
Generate a SQL query to answer the following question:
`What is Website, when Last Release is 2009-08-09, 1.2.9?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Website, when Last Release is 2009-08-09, 1.2.9?`:
```sql
                SELECT "website" FROM "main_information" WHERE "last_release"='2009-08-09, 1.2.9';
```
## Task
Generate a SQL query to answer the following question:
`What is Target Version, when License is LGPL or MPL?`

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

CREATE TABLE "main_information" (
  "source_version" text,
  "target_version" text,
  "last_release" text,
  "license" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Target Version, when License is LGPL or MPL?`:
```sql
                SELECT "target_version" FROM "main_information" WHERE "license"='lgpl or mpl';
```
## Task
Generate a SQL query to answer the following question:
`What is the class for the ERP W of 500?`

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

CREATE TABLE "broadcast_translators_of_kjjj" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class for the ERP W of 500?`:
```sql
                SELECT "class" FROM "broadcast_translators_of_kjjj" WHERE "erp_w"=500;
```
## Task
Generate a SQL query to answer the following question:
`What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?`

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

CREATE TABLE "broadcast_translators_of_kjjj" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the ERP W for the station whose call sign is K248BJ and whose frequency MHz is higher than 97.5?`:
```sql
                SELECT AVG("erp_w") FROM "broadcast_translators_of_kjjj" WHERE "call_sign"='k248bj' AND "frequency_m_hz">97.5;
```
## Task
Generate a SQL query to answer the following question:
`In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?`

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

CREATE TABLE "broadcast_translators_of_kjjj" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which city is the station licensed whose frequency MHz is higher than 102.3 and the ERP W is lower than 1,000?`:
```sql
                SELECT "city_of_license" FROM "broadcast_translators_of_kjjj" WHERE "frequency_m_hz"=102.3 AND "erp_w"<'1,000';
```
## Task
Generate a SQL query to answer the following question:
`In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU?`

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

CREATE TABLE "broadcast_translators_of_kjjj" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `In which city is the station licensed whose frequency MHz is higher than 102.3 and whose call sign is K292EU?`:
```sql
                SELECT "city_of_license" FROM "broadcast_translators_of_kjjj" WHERE "frequency_m_hz">102.3 AND "call_sign"='k292eu';
```
## Task
Generate a SQL query to answer the following question:
`What was sweden's purse in USD?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" real,
  "to_par" text,
  "margin_of_victory" text,
  "purse_us" real,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was sweden's purse in USD?`:
```sql
                SELECT SUM("purse_us") FROM "winners" WHERE "country"='sweden';
```
## Task
Generate a SQL query to answer the following question:
`What was 2003's To Par?`

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

CREATE TABLE "winners" (
  "year" real,
  "dates" text,
  "champion" text,
  "country" text,
  "score" real,
  "to_par" text,
  "margin_of_victory" text,
  "purse_us" real,
  "winner_s_share" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was 2003's To Par?`:
```sql
                SELECT "to_par" FROM "winners" WHERE "year"=2003;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest laps for the grid of 7?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest laps for the grid of 7?`:
```sql
                SELECT MAX("laps") FROM "race" WHERE "grid"=7;
```
## Task
Generate a SQL query to answer the following question:
`What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average Laps for the time/retired of +16.874 secs, and a grid less than 5?`:
```sql
                SELECT AVG("laps") FROM "race" WHERE "time_retired"='+16.874 secs' AND "grid"<5;
```
## Task
Generate a SQL query to answer the following question:
`What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the greatest points for a time/retired of +32.256 secs, and a a grid larger than 12?`:
```sql
                SELECT MAX("points") FROM "race" WHERE "time_retired"='+32.256 secs' AND "grid">12;
```
## Task
Generate a SQL query to answer the following question:
`What is biggest grid when the laps are 65?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is biggest grid when the laps are 65?`:
```sql
                SELECT MAX("grid") FROM "race" WHERE "laps"=65;
```
## Task
Generate a SQL query to answer the following question:
`What team has a grid of 15?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a grid of 15?`:
```sql
                SELECT "team" FROM "race" WHERE "grid"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the average new council number when the election result is smaller than 0?`

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

CREATE TABLE "council_composition" (
  "party" text,
  "previous_council" real,
  "staying_councillors" real,
  "seats_up_for_election" real,
  "election_result" real,
  "new_council" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average new council number when the election result is smaller than 0?`:
```sql
                SELECT AVG("new_council") FROM "council_composition" WHERE "election_result"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many seats were up for election during the vote where the election result was 9 and the new council 27?`

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

CREATE TABLE "council_composition" (
  "party" text,
  "previous_council" real,
  "staying_councillors" real,
  "seats_up_for_election" real,
  "election_result" real,
  "new_council" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats were up for election during the vote where the election result was 9 and the new council 27?`:
```sql
                SELECT SUM("seats_up_for_election") FROM "council_composition" WHERE "election_result"=9 AND "new_council">27;
```
## Task
Generate a SQL query to answer the following question:
`How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?`

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

CREATE TABLE "council_composition" (
  "party" text,
  "previous_council" real,
  "staying_councillors" real,
  "seats_up_for_election" real,
  "election_result" real,
  "new_council" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many staying councillors were there when the election result was larger than 0, the new council less than 27 and the party conservatives?`:
```sql
                SELECT AVG("staying_councillors") FROM "council_composition" WHERE "election_result">0 AND "party"='conservatives' AND "new_council"<27;
```
## Task
Generate a SQL query to answer the following question:
`What opponent did the Broncos play on November 16?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What opponent did the Broncos play on November 16?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "date"='november 16';
```
## Task
Generate a SQL query to answer the following question:
`What was the Bronco's record when they played the Detroit Lions at Mile High Stadium?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Bronco's record when they played the Detroit Lions at Mile High Stadium?`:
```sql
                SELECT "record" FROM "schedule" WHERE "game_site"='mile high stadium' AND "opponent"='detroit lions';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game on November 22?`

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

CREATE TABLE "schedule" (
  "week" text,
  "date" text,
  "opponent" text,
  "result" text,
  "game_site" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game on November 22?`:
```sql
                SELECT "result" FROM "schedule" WHERE "date"='november 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of points scored when there were 1,500 in attendance?`

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

CREATE TABLE "regular_season" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" text,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of points scored when there were 1,500 in attendance?`:
```sql
                SELECT MIN("points") FROM "regular_season" WHERE "attendance"='1,500';
```
## Task
Generate a SQL query to answer the following question:
`what is the average 2011 when 2012 is 65,000 and 2010 is more than 75,680?`

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

CREATE TABLE "financial_data_in_millions_of_euro" (
  "year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average 2011 when 2012 is 65,000 and 2010 is more than 75,680?`:
```sql
                SELECT AVG("2011") FROM "financial_data_in_millions_of_euro" WHERE "2012"='65,000' AND "2010">'75,680';
```
## Task
Generate a SQL query to answer the following question:
`what is 2001 when the year is ebitda and 2009 is less than 3,600?`

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

CREATE TABLE "financial_data_in_millions_of_euro" (
  "year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is 2001 when the year is ebitda and 2009 is less than 3,600?`:
```sql
                SELECT SUM("2001") FROM "financial_data_in_millions_of_euro" WHERE "year"='ebitda' AND "2009"<'3,600';
```
## Task
Generate a SQL query to answer the following question:
`what is the lowest 2003 when 2009 is less than 15,884, 2006 is less than 9,845 and 2004 is less than 868?`

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

CREATE TABLE "financial_data_in_millions_of_euro" (
  "year" text,
  "2001" real,
  "2002" real,
  "2003" real,
  "2004" real,
  "2005" real,
  "2006" real,
  "2007" real,
  "2008" real,
  "2009" real,
  "2010" real,
  "2011" real,
  "2012" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the lowest 2003 when 2009 is less than 15,884, 2006 is less than 9,845 and 2004 is less than 868?`:
```sql
                SELECT MIN("2003") FROM "financial_data_in_millions_of_euro" WHERE "2009"<'15,884' AND "2006"<'9,845' AND "2004"<868;
```
## Task
Generate a SQL query to answer the following question:
`who is the author for harry potter and the deathly hallows?`

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

CREATE TABLE "odyssey_award_winners_and_honor_audioboo" (
  "year" real,
  "title" text,
  "producer" text,
  "narrator" text,
  "author" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the author for harry potter and the deathly hallows?`:
```sql
                SELECT "author" FROM "odyssey_award_winners_and_honor_audioboo" WHERE "title"='harry potter and the deathly hallows';
```
## Task
Generate a SQL query to answer the following question:
`what is the title when the citation is honor and the narrator is lincoln hoppe?`

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

CREATE TABLE "odyssey_award_winners_and_honor_audioboo" (
  "year" real,
  "title" text,
  "producer" text,
  "narrator" text,
  "author" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the title when the citation is honor and the narrator is lincoln hoppe?`:
```sql
                SELECT "title" FROM "odyssey_award_winners_and_honor_audioboo" WHERE "citation"='honor' AND "narrator"='lincoln hoppe';
```
## Task
Generate a SQL query to answer the following question:
`who is the producer when the narrator is katherine kellgren, the year is before 2013 and the author is karen cushman?`

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

CREATE TABLE "odyssey_award_winners_and_honor_audioboo" (
  "year" real,
  "title" text,
  "producer" text,
  "narrator" text,
  "author" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the producer when the narrator is katherine kellgren, the year is before 2013 and the author is karen cushman?`:
```sql
                SELECT "producer" FROM "odyssey_award_winners_and_honor_audioboo" WHERE "narrator"='katherine kellgren' AND "year"<2013 AND "author"='karen cushman';
```
## Task
Generate a SQL query to answer the following question:
`what is the year when the citation is honor and the author is kadir nelson?`

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

CREATE TABLE "odyssey_award_winners_and_honor_audioboo" (
  "year" real,
  "title" text,
  "producer" text,
  "narrator" text,
  "author" text,
  "citation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the year when the citation is honor and the author is kadir nelson?`:
```sql
                SELECT SUM("year") FROM "odyssey_award_winners_and_honor_audioboo" WHERE "citation"='honor' AND "author"='kadir nelson';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent In The Final, when Year is "1942"?`

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

CREATE TABLE "pro_slam" (
  "outcome" text,
  "year" real,
  "pro_slam_championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent In The Final, when Year is "1942"?`:
```sql
                SELECT "opponent_in_the_final" FROM "pro_slam" WHERE "year"=1942;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Year, when Outcome is "Winner"?`

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

CREATE TABLE "pro_slam" (
  "outcome" text,
  "year" real,
  "pro_slam_championship" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Year, when Outcome is "Winner"?`:
```sql
                SELECT AVG("year") FROM "pro_slam" WHERE "outcome"='winner';
```
## Task
Generate a SQL query to answer the following question:
`What tournament did Pemra Özgen play against julia kimmelmann in the finals?`

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

CREATE TABLE "singles_10_7_3" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament did Pemra Özgen play against julia kimmelmann in the finals?`:
```sql
                SELECT "tournament" FROM "singles_10_7_3" WHERE "opponent_in_the_final"='julia kimmelmann';
```
## Task
Generate a SQL query to answer the following question:
`Which Home has a Visitor of nashville?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Home has a Visitor of nashville?`:
```sql
                SELECT "home" FROM "game_log" WHERE "visitor"='nashville';
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Decision of osgood, and a Date of february 15?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Decision of osgood, and a Date of february 15?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "decision"='osgood' AND "date"='february 15';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Record of 36–11–7?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Record of 36–11–7?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='36–11–7';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Visitor of edmonton?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Visitor of edmonton?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='edmonton';
```