cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What bridge is a pratt pony through truss tyoe bridge?`

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

CREATE TABLE "references" (
  "name" text,
  "listed" text,
  "location" text,
  "county" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bridge is a pratt pony through truss tyoe bridge?`:
```sql
                SELECT "name" FROM "references" WHERE "type"='pratt pony through truss';
```
## Task
Generate a SQL query to answer the following question:
`What type of bridge is in Cooperstown?`

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

CREATE TABLE "references" (
  "name" text,
  "listed" text,
  "location" text,
  "county" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of bridge is in Cooperstown?`:
```sql
                SELECT "type" FROM "references" WHERE "location"='cooperstown';
```
## Task
Generate a SQL query to answer the following question:
`What bridge is in Mcville?`

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

CREATE TABLE "references" (
  "name" text,
  "listed" text,
  "location" text,
  "county" text,
  "type" text
);
### SQL
Given the database schema, here is the SQL query that answers `What bridge is in Mcville?`:
```sql
                SELECT "name" FROM "references" WHERE "location"='mcville';
```
## Task
Generate a SQL query to answer the following question:
`Which tracking method supports MySQL databases and is named Open Web Analytics?`

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

CREATE TABLE "free_open_source_floss" (
  "name" text,
  "platform" text,
  "supported_databases" text,
  "tracking_method" text,
  "latest_stable_release" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tracking method supports MySQL databases and is named Open Web Analytics?`:
```sql
                SELECT "tracking_method" FROM "free_open_source_floss" WHERE "supported_databases"='mysql' AND "name"='open web analytics';
```
## Task
Generate a SQL query to answer the following question:
`Which tracking method has a latest stable release of 2.23-05?`

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

CREATE TABLE "free_open_source_floss" (
  "name" text,
  "platform" text,
  "supported_databases" text,
  "tracking_method" text,
  "latest_stable_release" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tracking method has a latest stable release of 2.23-05?`:
```sql
                SELECT "tracking_method" FROM "free_open_source_floss" WHERE "latest_stable_release"='2.23-05';
```
## Task
Generate a SQL query to answer the following question:
`What is the latest stable release date for Crawltrack?`

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

CREATE TABLE "free_open_source_floss" (
  "name" text,
  "platform" text,
  "supported_databases" text,
  "tracking_method" text,
  "latest_stable_release" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the latest stable release date for Crawltrack?`:
```sql
                SELECT "latest_stable_release" FROM "free_open_source_floss" WHERE "name"='crawltrack';
```
## Task
Generate a SQL query to answer the following question:
`Which tracking method has a latest stable release of 6.0?`

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

CREATE TABLE "free_open_source_floss" (
  "name" text,
  "platform" text,
  "supported_databases" text,
  "tracking_method" text,
  "latest_stable_release" text,
  "license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tracking method has a latest stable release of 6.0?`:
```sql
                SELECT "tracking_method" FROM "free_open_source_floss" WHERE "latest_stable_release"='6.0';
```
## Task
Generate a SQL query to answer the following question:
`What is the least passengers from the Dallas/Fort Worth International (DFW) airport?`

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

CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the least passengers from the Dallas/Fort Worth International (DFW) airport?`:
```sql
                SELECT MIN("passengers") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "airport"='dallas/fort worth international (dfw)';
```
## Task
Generate a SQL query to answer the following question:
`What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)`

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

CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)`:
```sql
                SELECT "city" FROM "busiest_domestic_routes_from_lex_april_2" WHERE "rank">6 AND "airport"='st. petersburg/clearwater (pie)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total rank of the airport that has 79,290 passengers?`

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

CREATE TABLE "busiest_domestic_routes_from_lex_april_2" (
  "rank" real,
  "city" text,
  "airport" text,
  "passengers" real,
  "carriers" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total rank of the airport that has 79,290 passengers?`:
```sql
                SELECT COUNT("rank") FROM "busiest_domestic_routes_from_lex_april_2" WHERE "passengers"='79,290';
```
## Task
Generate a SQL query to answer the following question:
`Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winner has a Country of norway, and a FIS Nordic World Ski Championships of 1924?`:
```sql
                SELECT "winner" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "fis_nordic_world_ski_championships"='1924';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a FIS Nordic World Ski Championships of 1948, 1950?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a FIS Nordic World Ski Championships of 1948, 1950?`:
```sql
                SELECT "country" FROM "men_s_nordic_combined" WHERE "fis_nordic_world_ski_championships"='1948, 1950';
```
## Task
Generate a SQL query to answer the following question:
`Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Holmenkollen has a Country of norway, and a Winner of tom sandberg?`:
```sql
                SELECT "holmenkollen" FROM "men_s_nordic_combined" WHERE "country"='norway' AND "winner"='tom sandberg';
```
## Task
Generate a SQL query to answer the following question:
`Which FIS Nordic World Ski Championships has Winter Olympics of 1960?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FIS Nordic World Ski Championships has Winter Olympics of 1960?`:
```sql
                SELECT "fis_nordic_world_ski_championships" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1960';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Winter Olympics of 1948?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Winter Olympics of 1948?`:
```sql
                SELECT "country" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1948';
```
## Task
Generate a SQL query to answer the following question:
`Which Winner has a Winter Olympics of 1968?`

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

CREATE TABLE "men_s_nordic_combined" (
  "winner" text,
  "country" text,
  "winter_olympics" text,
  "fis_nordic_world_ski_championships" text,
  "holmenkollen" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Winner has a Winter Olympics of 1968?`:
```sql
                SELECT "winner" FROM "men_s_nordic_combined" WHERE "winter_olympics"='1968';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game when the attendance was 43,279?`

### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game when the attendance was 43,279?`:
```sql
                SELECT "result" FROM "schedule" WHERE "attendance"='43,279';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance, when Date is 1 October 1998?`

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

CREATE TABLE "uefa_cup_winners_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Attendance, when Date is 1 October 1998?`:
```sql
                SELECT AVG("attendance") FROM "uefa_cup_winners_cup" WHERE "date"='1 october 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Date is 17 September 1998?`

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

CREATE TABLE "uefa_cup_winners_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Date is 17 September 1998?`:
```sql
                SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='17 september 1998';
```
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Date is 8 April 1999?`

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

CREATE TABLE "uefa_cup_winners_cup" (
  "date" text,
  "round" text,
  "opponent" text,
  "venue" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Date is 8 April 1999?`:
```sql
                SELECT "opponent" FROM "uefa_cup_winners_cup" WHERE "date"='8 april 1999';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?`

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

CREATE TABLE "regular_season" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE HIGHEST POINTS FOR LOS ANGELES?`:
```sql
                SELECT "high_points" FROM "regular_season" WHERE "opponent"='los angeles';
```
## Task
Generate a SQL query to answer the following question:
`What was the Score F-A when the result was D?`

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

CREATE TABLE "pre_season_friendly_match_details" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Score F-A when the result was D?`:
```sql
                SELECT "score_f_a" FROM "pre_season_friendly_match_details" WHERE "result"='d';
```
## Task
Generate a SQL query to answer the following question:
`On which date did they play Leicester City in Venue A?`

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

CREATE TABLE "pre_season_friendly_match_details" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which date did they play Leicester City in Venue A?`:
```sql
                SELECT "date" FROM "pre_season_friendly_match_details" WHERE "venue"='a' AND "opponents"='leicester city';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played in Venue H?`

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

CREATE TABLE "pre_season_friendly_match_details" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played in Venue H?`:
```sql
                SELECT "result" FROM "pre_season_friendly_match_details" WHERE "venue"='h';
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game played on 17 July 2008?`

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

CREATE TABLE "pre_season_friendly_match_details" (
  "date" text,
  "opponents" text,
  "venue" text,
  "result" text,
  "score_f_a" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game played on 17 July 2008?`:
```sql
                SELECT "result" FROM "pre_season_friendly_match_details" WHERE "date"='17 july 2008';
```
## Task
Generate a SQL query to answer the following question:
`What Passenger has 16 Wins?`

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

CREATE TABLE "season_by_season" (
  "passenger" text,
  "points" real,
  "races" real,
  "wins" text,
  "second" text,
  "third" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Passenger has 16 Wins?`:
```sql
                SELECT "passenger" FROM "season_by_season" WHERE "wins"='16';
```
## Task
Generate a SQL query to answer the following question:
`Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?`

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

CREATE TABLE "broadcasting" (
  "small_season_number" real,
  "time_of_broadcast" text,
  "days_of_the_week" text,
  "hours" text,
  "length_of_episode" text,
  "picture_format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Time of broadcast has a Picture format of 4:3, and Hours of 20:30, and Days of the week of monday, wednesday, friday?`:
```sql
                SELECT "time_of_broadcast" FROM "broadcasting" WHERE "picture_format"='4:3' AND "hours"='20:30' AND "days_of_the_week"='monday, wednesday, friday';
```
## Task
Generate a SQL query to answer the following question:
`Which Days of the week has a Time of broadcast in january–february, june 2002?`

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

CREATE TABLE "broadcasting" (
  "small_season_number" real,
  "time_of_broadcast" text,
  "days_of_the_week" text,
  "hours" text,
  "length_of_episode" text,
  "picture_format" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Days of the week has a Time of broadcast in january–february, june 2002?`:
```sql
                SELECT "days_of_the_week" FROM "broadcasting" WHERE "time_of_broadcast"='january–february, june 2002';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?`

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

CREATE TABLE "grand_slam" (
  "outcome" text,
  "year" real,
  "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 `Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?`:
```sql
                SELECT "outcome" FROM "grand_slam" WHERE "championship"='us championships' AND "score_in_the_final"='5–7, 6–1, 6–3, 6–3';
```
## Task
Generate a SQL query to answer the following question:
`Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?`

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

CREATE TABLE "grand_slam" (
  "outcome" text,
  "year" real,
  "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 `Which Outcome has a Year larger than 1939, and an Opponent in the final of frank kovacs?`:
```sql
                SELECT "outcome" FROM "grand_slam" WHERE "year">1939 AND "opponent_in_the_final"='frank kovacs';
```
## Task
Generate a SQL query to answer the following question:
`Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?`

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

CREATE TABLE "grand_slam" (
  "outcome" text,
  "year" real,
  "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 `Which Surface has an Opponent in the final of don mcneill, and a Year of 1940?`:
```sql
                SELECT "surface" FROM "grand_slam" WHERE "opponent_in_the_final"='don mcneill' AND "year"=1940;
```
## Task
Generate a SQL query to answer the following question:
`How many years have an Opponent in the final of welby van horn?`

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

CREATE TABLE "grand_slam" (
  "outcome" text,
  "year" real,
  "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 `How many years have an Opponent in the final of welby van horn?`:
```sql
                SELECT SUM("year") FROM "grand_slam" WHERE "opponent_in_the_final"='welby van horn';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of player dick metz?`

### 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" real,
  "money" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of player dick metz?`:
```sql
                SELECT "score" FROM "final_leaderboard" WHERE "player"='dick metz';
```
## Task
Generate a SQL query to answer the following question:
`Which season had EV Bad Wörishofen in the West?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which season had EV Bad Wörishofen in the West?`:
```sql
                SELECT "season" FROM "bezirksliga" WHERE "west"='ev bad wörishofen';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the South in the 2004-05 season?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the South in the 2004-05 season?`:
```sql
                SELECT "south" FROM "bezirksliga" WHERE "season"='2004-05';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the South when EV Bad Wörishofen was in the West?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the South when EV Bad Wörishofen was in the West?`:
```sql
                SELECT "south" FROM "bezirksliga" WHERE "west"='ev bad wörishofen';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the South when TSV Kottern was in the West and EHF Passau was in the East?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the South when TSV Kottern was in the West and EHF Passau was in the East?`:
```sql
                SELECT "south" FROM "bezirksliga" WHERE "west"='tsv kottern' AND "east"='ehf passau';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the East when TUS Geretsried II was in the South?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the East when TUS Geretsried II was in the South?`:
```sql
                SELECT "east" FROM "bezirksliga" WHERE "south"='tus geretsried ii';
```
## Task
Generate a SQL query to answer the following question:
`Who was in the West when ESV Gebensbach was in the East?`

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

CREATE TABLE "bezirksliga" (
  "season" text,
  "north" text,
  "south" text,
  "east" text,
  "west" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the West when ESV Gebensbach was in the East?`:
```sql
                SELECT "west" FROM "bezirksliga" WHERE "east"='esv gebensbach';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Gold, when Nation is Hungary, and when Bronze is greater than 1?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "nation"='hungary' AND "bronze">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "nation"='soviet union' AND "gold">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Bronze, when Silver is greater than 0, when Gold is greater than 3, and when Rank is 1?`:
```sql
                SELECT COUNT("bronze") FROM "medal_table" WHERE "silver">0 AND "gold">3 AND "rank"='1';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Bronze, when Total is less than 3, and when Silver is less than 0?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Bronze, when Total is less than 3, and when Silver is less than 0?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "total"<3 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Total, when Silver is greater than 4, and when Gold is greater than 16?`:
```sql
                SELECT AVG("total") FROM "medal_table" WHERE "silver">4 AND "gold">16;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of Silver, when Total is less than 1?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of Silver, when Total is less than 1?`:
```sql
                SELECT SUM("silver") FROM "medal_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is day 4 when day 2 is PAAQ?`

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

CREATE TABLE "first_semester" (
  "day_1" text,
  "day_2" text,
  "day_3" text,
  "day_4" text,
  "day_5" text,
  "wednesday" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is day 4 when day 2 is PAAQ?`:
```sql
                SELECT "day_4" FROM "first_semester" WHERE "day_2"='paaq';
```
## Task
Generate a SQL query to answer the following question:
`What is the other value associated with a Christianity value of 10.24%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the other value associated with a Christianity value of 10.24%?`:
```sql
                SELECT "other" FROM "religion" WHERE "christianity"='10.24%';
```
## Task
Generate a SQL query to answer the following question:
`What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Judaism percentage associated with Buddhism at 0.01% and Other at 0.13%?`:
```sql
                SELECT "judaism" FROM "religion" WHERE "other"='0.13%' AND "buddhism"='0.01%';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Atheism associated with an other percentage of 0.08%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Atheism associated with an other percentage of 0.08%?`:
```sql
                SELECT "atheism" FROM "religion" WHERE "other"='0.08%';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Buddhists associated with a Christianity percentage of 52.32%?`:
```sql
                SELECT "buddhism" FROM "religion" WHERE "christianity"='52.32%';
```
## Task
Generate a SQL query to answer the following question:
`What is the percentage of Judaism associated with Christianity at 2.51%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the percentage of Judaism associated with Christianity at 2.51%?`:
```sql
                SELECT "judaism" FROM "religion" WHERE "christianity"='2.51%';
```
## Task
Generate a SQL query to answer the following question:
`What is the value of other religions associated with atheism at 1.86%?`

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

CREATE TABLE "religion" (
  "ethnicity" text,
  "islam" text,
  "christianity" text,
  "judaism" text,
  "buddhism" text,
  "other" text,
  "atheism" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the value of other religions associated with atheism at 1.86%?`:
```sql
                SELECT "other" FROM "religion" WHERE "atheism"='1.86%';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 2, when No. 9 is Mia?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 2, when No. 9 is Mia?`:
```sql
                SELECT "no_2" FROM "female_names" WHERE "no_9"='mia';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 7, when No. 4 is Madison, and when No. 10 is Amelia?`:
```sql
                SELECT "no_7" FROM "female_names" WHERE "no_4"='madison' AND "no_10"='amelia';
```
## Task
Generate a SQL query to answer the following question:
`What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No.1, when No. 2 is Emma, and when No. 7 is Olivia?`:
```sql
                SELECT "no_1" FROM "female_names" WHERE "no_2"='emma' AND "no_7"='olivia';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 5, when No. 2 is Olivia, when No. 4 is Ava, and when No. 6 is Abigail?`:
```sql
                SELECT "no_5" FROM "female_names" WHERE "no_2"='olivia' AND "no_4"='ava' AND "no_6"='abigail';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 3, when No. 7 is Abigail, and when No. 2 is Olivia?`:
```sql
                SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_2"='olivia';
```
## Task
Generate a SQL query to answer the following question:
`What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?`

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

CREATE TABLE "female_names" (
  "region_year" text,
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_4" text,
  "no_5" text,
  "no_6" text,
  "no_7" text,
  "no_8" text,
  "no_9" text,
  "no_10" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is No. 3, when No. 7 is Abigail, and when No. 4 is Ava?`:
```sql
                SELECT "no_3" FROM "female_names" WHERE "no_7"='abigail' AND "no_4"='ava';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have Grid larger than 14, and a Rider of sylvain guintoli?`:
```sql
                SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid">14 AND "rider"='sylvain guintoli';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has Laps of 24, and a Rider of marco melandri?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has Laps of 24, and a Rider of marco melandri?`:
```sql
                SELECT SUM("grid") FROM "moto_gp_classification" WHERE "laps"=24 AND "rider"='marco melandri';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has Laps smaller than 24, and a Time of retirement?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has Laps smaller than 24, and a Time of retirement?`:
```sql
                SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps"<24 AND "time"='retirement';
```
## Task
Generate a SQL query to answer the following question:
`Which Grid has a Rider of randy de puniet, and Laps smaller than 24?`

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

CREATE TABLE "moto_gp_classification" (
  "rider" text,
  "manufacturer" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid has a Rider of randy de puniet, and Laps smaller than 24?`:
```sql
                SELECT MAX("grid") FROM "moto_gp_classification" WHERE "rider"='randy de puniet' AND "laps"<24;
```
## Task
Generate a SQL query to answer the following question:
`What was the type of surface played on for the week of March 17?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the type of surface played on for the week of March 17?`:
```sql
                SELECT "surface" FROM "singles" WHERE "week"='march 17';
```
## Task
Generate a SQL query to answer the following question:
`What was the tournament for the week of August 4?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the tournament for the week of August 4?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "week"='august 4';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament had Richard Krajicek as a finalist?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament had Richard Krajicek as a finalist?`:
```sql
                SELECT "tournament" FROM "singles" WHERE "finalist"='richard krajicek';
```
## Task
Generate a SQL query to answer the following question:
`On what date did Detroit play at home?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Detroit play at home?`:
```sql
                SELECT "date" FROM "playoffs" WHERE "home"='detroit';
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team on June 9?`

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

CREATE TABLE "playoffs" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team on June 9?`:
```sql
                SELECT "home" FROM "playoffs" WHERE "date"='june 9';
```
## Task
Generate a SQL query to answer the following question:
`What was the money value that went along with the score of 68-67-69-76=280?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the money value that went along with the score of 68-67-69-76=280?`:
```sql
                SELECT "money" FROM "final_round" WHERE "score"='68-67-69-76=280';
```
## Task
Generate a SQL query to answer the following question:
`What score did Leonard Thompson have when he won $9,000?`

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

CREATE TABLE "final_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text,
  "money" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score did Leonard Thompson have when he won $9,000?`:
```sql
                SELECT "score" FROM "final_round" WHERE "money"='9,000' AND "player"='leonard thompson';
```
## Task
Generate a SQL query to answer the following question:
`What date had a record of 15-14-4?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date had a record of 15-14-4?`:
```sql
                SELECT "date" FROM "game_log" WHERE "record"='15-14-4';
```
## Task
Generate a SQL query to answer the following question:
`What is the fame number when the Montreal Canadiens were the opponent?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the fame number when the Montreal Canadiens were the opponent?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "opponent"='montreal canadiens';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score of game 35?`

### 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,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score of game 35?`:
```sql
                SELECT "score" FROM "game_log" WHERE "game"=35;
```
## Task
Generate a SQL query to answer the following question:
`What is the average oveall pick for players from the college of Miami (FL)?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average oveall pick for players from the college of Miami (FL)?`:
```sql
                SELECT AVG("overall") FROM "washington_redskins_draft_history" WHERE "college"='miami (fl)';
```
## Task
Generate a SQL query to answer the following question:
`Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player was drafted overall from the college of Nebraska in a round under 6, pick of 15, and overall under 224?`:
```sql
                SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"<224 AND "round"<6 AND "pick"=15 AND "college"='nebraska';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest overall draft pick number for terry daniels who was picked in round 10?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest overall draft pick number for terry daniels who was picked in round 10?`:
```sql
                SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=10 AND "name"='terry daniels';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the rounds where the draft pick came from the college of tennessee and had an overall pick number bigger than 153 and a pick less than 14?`:
```sql
                SELECT SUM("round") FROM "washington_redskins_draft_history" WHERE "college"='tennessee' AND "overall">153 AND "pick"<14;
```
## Task
Generate a SQL query to answer the following question:
`What position did the draft pick number play that was overall pick number 133?`

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

CREATE TABLE "washington_redskins_draft_history" (
  "round" real,
  "pick" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the draft pick number play that was overall pick number 133?`:
```sql
                SELECT "position" FROM "washington_redskins_draft_history" WHERE "overall"=133;
```