cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`With a To par of –1, what is Player Henrik Stenson's Score?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `With a To par of –1, what is Player Henrik Stenson's Score?`:
```sql
                SELECT "score" FROM "third_round" WHERE "to_par"='–1' AND "player"='henrik stenson';
```
## Task
Generate a SQL query to answer the following question:
`What is the To par of the Player with a Score of 73-67-68=208?`

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

CREATE TABLE "third_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the To par of the Player with a Score of 73-67-68=208?`:
```sql
                SELECT "to_par" FROM "third_round" WHERE "score"='73-67-68=208';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?`

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

CREATE TABLE "comparison_of_features" (
  "name" text,
  "wikis" text,
  "web_publishing" text,
  "calendaring_software" text,
  "project_management" text,
  "workflow_system" text,
  "document_management" text,
  "list_management" text,
  "xml_forms_management_and_workflow" text,
  "discussion" text,
  "blogs" text,
  "surveys" text,
  "time_tracking" text,
  "business_intelligence" text,
  "charting" text,
  "bookmarking_tagging_rating_and_comments" text,
  "social_software" text,
  "enterprise_search" text,
  "office_suite" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE PM THAT HAS NO BLOGS, NO XML Forms Management and workflow, NO SEARCH, AND NO SOCIAL SOFTWARE?`:
```sql
                SELECT "project_management" FROM "comparison_of_features" WHERE "blogs"='no' AND "xml_forms_management_and_workflow"='no' AND "enterprise_search"='no' AND "social_software"='no';
```
## Task
Generate a SQL query to answer the following question:
`WHAT CHARTING HAS NO BLOGS OR DISCUSSION?`

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

CREATE TABLE "comparison_of_features" (
  "name" text,
  "wikis" text,
  "web_publishing" text,
  "calendaring_software" text,
  "project_management" text,
  "workflow_system" text,
  "document_management" text,
  "list_management" text,
  "xml_forms_management_and_workflow" text,
  "discussion" text,
  "blogs" text,
  "surveys" text,
  "time_tracking" text,
  "business_intelligence" text,
  "charting" text,
  "bookmarking_tagging_rating_and_comments" text,
  "social_software" text,
  "enterprise_search" text,
  "office_suite" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT CHARTING HAS NO BLOGS OR DISCUSSION?`:
```sql
                SELECT "charting" FROM "comparison_of_features" WHERE "blogs"='no' AND "discussion"='no';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?`

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

CREATE TABLE "comparison_of_features" (
  "name" text,
  "wikis" text,
  "web_publishing" text,
  "calendaring_software" text,
  "project_management" text,
  "workflow_system" text,
  "document_management" text,
  "list_management" text,
  "xml_forms_management_and_workflow" text,
  "discussion" text,
  "blogs" text,
  "surveys" text,
  "time_tracking" text,
  "business_intelligence" text,
  "charting" text,
  "bookmarking_tagging_rating_and_comments" text,
  "social_software" text,
  "enterprise_search" text,
  "office_suite" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE SOCIAL SOFTWARE WITH NO DISCUSSION, NO TIME TRACKING, AND NO CHARTING?`:
```sql
                SELECT "social_software" FROM "comparison_of_features" WHERE "discussion"='no' AND "time_tracking"='no' AND "charting"='no';
```
## Task
Generate a SQL query to answer the following question:
`WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?`

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

CREATE TABLE "comparison_of_features" (
  "name" text,
  "wikis" text,
  "web_publishing" text,
  "calendaring_software" text,
  "project_management" text,
  "workflow_system" text,
  "document_management" text,
  "list_management" text,
  "xml_forms_management_and_workflow" text,
  "discussion" text,
  "blogs" text,
  "surveys" text,
  "time_tracking" text,
  "business_intelligence" text,
  "charting" text,
  "bookmarking_tagging_rating_and_comments" text,
  "social_software" text,
  "enterprise_search" text,
  "office_suite" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHAT IS THE BOOKMARKING, TAGGING, RATING AND COMMENTS WITH NO LIST MANAGEMENT, NO CHARTING, NO WEB PUBLISHING, OF MICROSOFT EXCHANGE SERVER?`:
```sql
                SELECT "bookmarking_tagging_rating_and_comments" FROM "comparison_of_features" WHERE "list_management"='no' AND "charting"='no' AND "web_publishing"='no' AND "name"='microsoft exchange server';
```
## Task
Generate a SQL query to answer the following question:
`What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" real,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Constellation, when Date Sent is "September 4, 2001", and when Distance ( ly ) is less than 57.4?`:
```sql
                SELECT "constellation" FROM "targets" WHERE "date_sent"='september 4, 2001' AND "distance_ly"<57.4;
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when Constellation is "Delphinus"?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" real,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when Constellation is "Delphinus"?`:
```sql
                SELECT "date_sent" FROM "targets" WHERE "constellation"='delphinus';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Distance ( ly ), when Constellation is "Draco"?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" real,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Distance ( ly ), when Constellation is "Draco"?`:
```sql
                SELECT COUNT("distance_ly") FROM "targets" WHERE "constellation"='draco';
```
## Task
Generate a SQL query to answer the following question:
`What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" real,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date Sent, when Signal Power ( kW ) is less than 126, when Arrival Date is "January 2059", and when HD Designation is "HD193664"?`:
```sql
                SELECT "date_sent" FROM "targets" WHERE "signal_power_k_w"<126 AND "arrival_date"='january 2059' AND "hd_designation"='hd193664';
```
## Task
Generate a SQL query to answer the following question:
`What is Constellation, when HD Designation is "HD197076"?`

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

CREATE TABLE "targets" (
  "hd_designation" text,
  "constellation" text,
  "distance_ly" real,
  "spectral_type" text,
  "signal_power_k_w" real,
  "date_sent" text,
  "arrival_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Constellation, when HD Designation is "HD197076"?`:
```sql
                SELECT "constellation" FROM "targets" WHERE "hd_designation"='hd197076';
```
## Task
Generate a SQL query to answer the following question:
`What date was the match against leonardo tavares with a score of 6–4, 6–4?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against leonardo tavares with a score of 6–4, 6–4?`:
```sql
                SELECT "date" FROM "singles_7" WHERE "score"='6–4, 6–4' AND "opponent"='leonardo tavares';
```
## Task
Generate a SQL query to answer the following question:
`What date was the match against adrián menéndez-maceiras?`

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

CREATE TABLE "singles_7" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the match against adrián menéndez-maceiras?`:
```sql
                SELECT "date" FROM "singles_7" WHERE "opponent"='adrián menéndez-maceiras';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of wins for Quambatook when Against is less than 1129?`

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

CREATE TABLE "2009_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of wins for Quambatook when Against is less than 1129?`:
```sql
                SELECT MAX("wins") FROM "2009_ladder" WHERE "golden_rivers"='quambatook' AND "against"<1129;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws when there are fewer than 3 wins?`

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

CREATE TABLE "2009_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of draws when there are fewer than 3 wins?`:
```sql
                SELECT COUNT("draws") FROM "2009_ladder" WHERE "wins"<3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?`

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

CREATE TABLE "2009_ladder" (
  "golden_rivers" text,
  "wins" real,
  "byes" real,
  "losses" real,
  "draws" real,
  "against" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of draws for Wakool when there are more than 11 losses and fewer than 4 wins?`:
```sql
                SELECT COUNT("draws") FROM "2009_ladder" WHERE "losses">11 AND "wins"<4 AND "golden_rivers"='wakool';
```
## Task
Generate a SQL query to answer the following question:
`Which Country has a Score of 69-74=143?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Country has a Score of 69-74=143?`:
```sql
                SELECT "country" FROM "second_round" WHERE "score"='69-74=143';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To Par smaller than 5, and a Score of 70-72=142?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To Par smaller than 5, and a Score of 70-72=142?`:
```sql
                SELECT "player" FROM "second_round" WHERE "to_par"<5 AND "score"='70-72=142';
```
## Task
Generate a SQL query to answer the following question:
`What was Frank Moore's score?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was Frank Moore's score?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='frank moore';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that home team birmingham city played?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that home team birmingham city played?`:
```sql
                SELECT "score" FROM "second_round_proper" WHERE "home_team"='birmingham city';
```
## Task
Generate a SQL query to answer the following question:
`What date was the game when away team northampton town played?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the game when away team northampton town played?`:
```sql
                SELECT "date" FROM "second_round_proper" WHERE "away_team"='northampton town';
```
## Task
Generate a SQL query to answer the following question:
`Who was the team who played home team woking?`

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

CREATE TABLE "second_round_proper" (
  "tie_no" text,
  "home_team" text,
  "score" text,
  "away_team" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the team who played home team woking?`:
```sql
                SELECT "away_team" FROM "second_round_proper" WHERE "home_team"='woking';
```
## Task
Generate a SQL query to answer the following question:
`What is the home for the league 3rd liga (iii)?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for the league 3rd liga (iii)?`:
```sql
                SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga (iii)';
```
## Task
Generate a SQL query to answer the following question:
`What is the home for league 3rd liga, and an away of 4-0?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for league 3rd liga, and an away of 4-0?`:
```sql
                SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the home for the away of 4-0?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home for the away of 4-0?`:
```sql
                SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "away"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`What season has a league 3rd liga, and away of 1-0?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What season has a league 3rd liga, and away of 1-0?`:
```sql
                SELECT "season" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the home with a league 3rd liga, and an away of 4-0?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the home with a league 3rd liga, and an away of 4-0?`:
```sql
                SELECT "home" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "league"='3rd liga' AND "away"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`What team has a season of 2009-10?`

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

CREATE TABLE "fc_bayern_munich_ii_versus_sp_vgg_unterh" (
  "season" text,
  "league" text,
  "teams" text,
  "home" text,
  "away" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team has a season of 2009-10?`:
```sql
                SELECT "teams" FROM "fc_bayern_munich_ii_versus_sp_vgg_unterh" WHERE "season"='2009-10';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Goals Against, when Points is greater than 25, when Club is "SD Indautxu", and when Position is greater than 3?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Goals Against, when Points is greater than 25, when Club is "SD Indautxu", and when Position is greater than 3?`:
```sql
                SELECT MAX("goals_against") FROM "group_i" WHERE "points">25 AND "club"='sd indautxu' AND "position">3;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Draws is less than 2?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Wins, when Draws is less than 2?`:
```sql
                SELECT COUNT("wins") FROM "group_i" WHERE "draws"<2;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Wins, when Played is less than 30?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Wins, when Played is less than 30?`:
```sql
                SELECT AVG("wins") FROM "group_i" WHERE "played"<30;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Wins, when Draws is less than 5, when Goals is greater than 49, and when Played is greater than 30?`:
```sql
                SELECT COUNT("wins") FROM "group_i" WHERE "draws"<5 AND "goals_against">49 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Goal Difference, when Position is "7", and when Played is greater than 30?`

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

CREATE TABLE "group_i" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Goal Difference, when Position is "7", and when Played is greater than 30?`:
```sql
                SELECT MIN("goal_difference") FROM "group_i" WHERE "position"=7 AND "played">30;
```
## Task
Generate a SQL query to answer the following question:
`What is the week 3, prior to the when the week 4 was Laura Nicole?`

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

CREATE TABLE "2011" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 3, prior to the when the week 4 was Laura Nicole?`:
```sql
                SELECT "week_4" FROM "2011" WHERE "week_3"='laura nicole';
```
## Task
Generate a SQL query to answer the following question:
`What was the week 2 prior to the when Miranda Jordan was the week 4?`

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

CREATE TABLE "2011" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 prior to the when Miranda Jordan was the week 4?`:
```sql
                SELECT "week_2" FROM "2011" WHERE "week_4"='miranda jordan';
```
## Task
Generate a SQL query to answer the following question:
`What was the week 2 prior to the when Brittany Alyse was week 3?`

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

CREATE TABLE "2011" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 prior to the when Brittany Alyse was week 3?`:
```sql
                SELECT "week_2" FROM "2011" WHERE "week_3"='brittany alyse';
```
## Task
Generate a SQL query to answer the following question:
`What is the week 5 after Dani Dior as week 1?`

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

CREATE TABLE "2011" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the week 5 after Dani Dior as week 1?`:
```sql
                SELECT "week_5" FROM "2011" WHERE "week_1"='dani dior';
```
## Task
Generate a SQL query to answer the following question:
`What was the week 2 before Lara Leverence was week 3?`

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

CREATE TABLE "2011" (
  "week_1" text,
  "week_2" text,
  "week_3" text,
  "week_4" text,
  "week_5" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the week 2 before Lara Leverence was week 3?`:
```sql
                SELECT "week_2" FROM "2011" WHERE "week_3"='lara leverence';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronzes that is less than 1 in total?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "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 bronzes that is less than 1 in total?`:
```sql
                SELECT COUNT("bronze") FROM "medals_table" WHERE "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of bronze that has less than 2 gold, and more than 1 silver?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "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 that has less than 2 gold, and more than 1 silver?`:
```sql
                SELECT COUNT("bronze") FROM "medals_table" WHERE "gold"<2 AND "silver">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "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 lowest rank with less than 1 gold, 0 silver, 1 bronze, and a total less than 1?`:
```sql
                SELECT MIN("rank") FROM "medals_table" WHERE "gold"<1 AND "silver"=0 AND "bronze"=1 AND "total"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average bronze for less than 0 gold?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "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 bronze for less than 0 gold?`:
```sql
                SELECT AVG("bronze") FROM "medals_table" WHERE "gold"<0;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number for less than 8 bronze, the Netherlands nation, and is ranked less than 16?`

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

CREATE TABLE "medals_table" (
  "rank" real,
  "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 for less than 8 bronze, the Netherlands nation, and is ranked less than 16?`:
```sql
                SELECT COUNT("total") FROM "medals_table" WHERE "bronze"<8 AND "nation"='netherlands' AND "rank"<16;
```
## Task
Generate a SQL query to answer the following question:
`What California city has an active status and a greek designation of established colony?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What California city has an active status and a greek designation of established colony?`:
```sql
                SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "status"='active' AND "u_s_state_district"='california' AND "greek_designation"='established colony';
```
## Task
Generate a SQL query to answer the following question:
`What's the greek designation of the new york chapter with a charter date of april 23, 2005?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the greek designation of the new york chapter with a charter date of april 23, 2005?`:
```sql
                SELECT "greek_designation" FROM "undergraduate_chapters_associate_chapter" WHERE "u_s_state_district"='new york' AND "charter_date"='april 23, 2005';
```
## Task
Generate a SQL query to answer the following question:
`What collegiate institution has an active status and a charter date of march 30, 2002?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What collegiate institution has an active status and a charter date of march 30, 2002?`:
```sql
                SELECT "collegiate_institution" FROM "undergraduate_chapters_associate_chapter" WHERE "status"='active' AND "charter_date"='march 30, 2002';
```
## Task
Generate a SQL query to answer the following question:
`What's the greek designation of the city riverside?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the greek designation of the city riverside?`:
```sql
                SELECT "greek_designation" FROM "undergraduate_chapters_associate_chapter" WHERE "city"='riverside';
```
## Task
Generate a SQL query to answer the following question:
`What city has a charter date of november 24, 1999?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What city has a charter date of november 24, 1999?`:
```sql
                SELECT "city" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='november 24, 1999';
```
## Task
Generate a SQL query to answer the following question:
`What state or district has a charter date of april 17, 2011?`

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

CREATE TABLE "undergraduate_chapters_associate_chapter" (
  "greek_designation" text,
  "collegiate_institution" text,
  "charter_date" text,
  "status" text,
  "city" text,
  "u_s_state_district" text
);
### SQL
Given the database schema, here is the SQL query that answers `What state or district has a charter date of april 17, 2011?`:
```sql
                SELECT "u_s_state_district" FROM "undergraduate_chapters_associate_chapter" WHERE "charter_date"='april 17, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?`

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

CREATE TABLE "individual_hoop" (
  "place" real,
  "name" text,
  "all_around" real,
  "hoop" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?`:
```sql
                SELECT MIN("all_around") FROM "individual_hoop" WHERE "total"=19.85 AND "hoop"<9.85;
```
## Task
Generate a SQL query to answer the following question:
`What is the average hoop when the all around is less than 9.7?`

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

CREATE TABLE "individual_hoop" (
  "place" real,
  "name" text,
  "all_around" real,
  "hoop" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average hoop when the all around is less than 9.7?`:
```sql
                SELECT AVG("hoop") FROM "individual_hoop" WHERE "all_around"<9.7;
```
## Task
Generate a SQL query to answer the following question:
`What is Per Capita Income, when Population is greater than 9,563, and when Median Family Income is "$49,310"?`

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

CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Per Capita Income, when Population is greater than 9,563, and when Median Family Income is "$49,310"?`:
```sql
                SELECT "per_capita_income" FROM "georgia_counties_ranked_by_per_capita_in" WHERE "population">'9,563' AND "median_family_income"='$49,310';
```
## Task
Generate a SQL query to answer the following question:
`What is Median Family Income, when Median Household Income is "$50,717"?`

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

CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Median Family Income, when Median Household Income is "$50,717"?`:
```sql
                SELECT "median_family_income" FROM "georgia_counties_ranked_by_per_capita_in" WHERE "median_household_income"='$50,717';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?`

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

CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Number of Households, when Per Capita Income is "$25,557", and when Population is less than "22,330"?`:
```sql
                SELECT MAX("number_of_households") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$25,557' AND "population"<'22,330';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Population, when Per Capita Income is "$16,330"?`

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

CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Population, when Per Capita Income is "$16,330"?`:
```sql
                SELECT MIN("population") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$16,330';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287?`

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

CREATE TABLE "georgia_counties_ranked_by_per_capita_in" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Population, when Per Capita Income is "$17,168", and when Number of Households is greater than 3,287?`:
```sql
                SELECT MAX("population") FROM "georgia_counties_ranked_by_per_capita_in" WHERE "per_capita_income"='$17,168' AND "number_of_households">'3,287';
```
## Task
Generate a SQL query to answer the following question:
`What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Place, when Score is "70-68=138", and when Player is "Andrew Magee"?`:
```sql
                SELECT "place" FROM "second_round" WHERE "score"='70-68=138' AND "player"='andrew magee';
```
## Task
Generate a SQL query to answer the following question:
`What is To par, when Place is "T5", and when Score is "70-68=138"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is To par, when Place is "T5", and when Score is "70-68=138"?`:
```sql
                SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "score"='70-68=138';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Place is "T5", when Country is "United States", and when Player is "Davis Love III"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Place is "T5", when Country is "United States", and when Player is "Davis Love III"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t5' AND "country"='united states' AND "player"='davis love iii';
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Country is "United States", when Place is "T10", and when Score is "68-71=139"?`:
```sql
                SELECT "player" FROM "second_round" WHERE "country"='united states' AND "place"='t10' AND "score"='68-71=139';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Player is "Vijay Singh"?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Player is "Vijay Singh"?`:
```sql
                SELECT "score" FROM "second_round" WHERE "player"='vijay singh';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a To par of –2, and a Country of wales?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a To par of –2, and a Country of wales?`:
```sql
                SELECT "player" FROM "first_round" WHERE "to_par"='–2' AND "country"='wales';
```
## Task
Generate a SQL query to answer the following question:
`Which Score has a To par of –3, and a Player of santiago luna?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has a To par of –3, and a Player of santiago luna?`:
```sql
                SELECT "score" FROM "first_round" WHERE "to_par"='–3' AND "player"='santiago luna';
```
## Task
Generate a SQL query to answer the following question:
`Which Player has a Score of 67 in united states?`

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

CREATE TABLE "first_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" real,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Player has a Score of 67 in united states?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score"=67 AND "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What are the Opponents at the Schenectady, U.S. Tournament?`

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

CREATE TABLE "wins_50" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partner" text,
  "opponents_in_the_final" text,
  "score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Opponents at the Schenectady, U.S. Tournament?`:
```sql
                SELECT "opponents_in_the_final" FROM "wins_50" WHERE "tournament"='schenectady, u.s.';
```
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the August 20, 2007 match?`

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

CREATE TABLE "singles_2_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the August 20, 2007 match?`:
```sql
                SELECT "outcome" FROM "singles_2_8" WHERE "date"='august 20, 2007';
```
## Task
Generate a SQL query to answer the following question:
`What was the score in the August 20, 2007 match?`

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

CREATE TABLE "singles_2_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score in the August 20, 2007 match?`:
```sql
                SELECT "score" FROM "singles_2_8" WHERE "date"='august 20, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which tournament was held on July 13, 2008?`

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

CREATE TABLE "singles_2_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which tournament was held on July 13, 2008?`:
```sql
                SELECT "tournament" FROM "singles_2_8" WHERE "date"='july 13, 2008';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent in the September 20, 2010 match?`

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

CREATE TABLE "singles_2_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent in the September 20, 2010 match?`:
```sql
                SELECT "opponent" FROM "singles_2_8" WHERE "date"='september 20, 2010';
```
## Task
Generate a SQL query to answer the following question:
`What date was the Izmir Cup in which İlhan played against Somdev Devvarman?`

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

CREATE TABLE "singles_2_8" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date was the Izmir Cup in which İlhan played against Somdev Devvarman?`:
```sql
                SELECT "date" FROM "singles_2_8" WHERE "tournament"='izmir cup' AND "opponent"='somdev devvarman';
```
## Task
Generate a SQL query to answer the following question:
`What years did Tom Lehman win?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What years did Tom Lehman win?`:
```sql
                SELECT "year_s_won" FROM "missed_the_cut" WHERE "player"='tom lehman';
```
## Task
Generate a SQL query to answer the following question:
`What was the total To Par for the winner in 1995?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total To Par for the winner in 1995?`:
```sql
                SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1995';
```