cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the RYds when the RAtt was 2, and the comp is 41?`

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

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RYds when the RAtt was 2, and the comp is 41?`:
```sql
                SELECT "r_yds" FROM "post_season" WHERE "r_att"='2' AND "comp"='41';
```
## Task
Generate a SQL query to answer the following question:
`What is the Long when the ryds is 18?`

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

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Long when the ryds is 18?`:
```sql
                SELECT "long" FROM "post_season" WHERE "r_yds"='18';
```
## Task
Generate a SQL query to answer the following question:
`What is the RAvg when the ratt is 3?`

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

CREATE TABLE "post_season" (
  "year" text,
  "team" text,
  "comp" text,
  "long" text,
  "rate" text,
  "r_att" text,
  "r_yds" text,
  "r_avg" text,
  "lost" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the RAvg when the ratt is 3?`:
```sql
                SELECT "r_avg" FROM "post_season" WHERE "r_att"='3';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?`

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

CREATE TABLE "senior_pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Runner-up for the merrill lynch/golf digest commemorative pro-am tournament?`:
```sql
                SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "tournament"='merrill lynch/golf digest commemorative pro-am';
```
## Task
Generate a SQL query to answer the following question:
`What was the margin of victory when the winning score was –14 (70-68-67=205)?`

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

CREATE TABLE "senior_pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the margin of victory when the winning score was –14 (70-68-67=205)?`:
```sql
                SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–14 (70-68-67=205)';
```
## Task
Generate a SQL query to answer the following question:
`Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?`

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

CREATE TABLE "senior_pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the runner(s)-up when the winning score was –10 (69-68-74-67=278)?`:
```sql
                SELECT "margin_of_victory" FROM "senior_pga_tour_wins_9" WHERE "winning_score"='–10 (69-68-74-67=278)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?`

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

CREATE TABLE "senior_pga_tour_wins_9" (
  "date" text,
  "tournament" text,
  "winning_score" text,
  "margin_of_victory" text,
  "runner_s_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?`:
```sql
                SELECT "runner_s_up" FROM "senior_pga_tour_wins_9" WHERE "margin_of_victory"='2 strokes' AND "tournament"='mazda senior tournament players championship';
```
## Task
Generate a SQL query to answer the following question:
`When was the last title of the team with a home ground of Sydney cricket ground?`

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

CREATE TABLE "teams" (
  "team_name_sponsored_name" text,
  "home_ground_a" text,
  "first_season" text,
  "last_title" text,
  "titles" real
);
### SQL
Given the database schema, here is the SQL query that answers `When was the last title of the team with a home ground of Sydney cricket ground?`:
```sql
                SELECT "last_title" FROM "teams" WHERE "home_ground_a"='sydney cricket ground';
```
## Task
Generate a SQL query to answer the following question:
`How many people were in attendance for the game week 15?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many people were in attendance for the game week 15?`:
```sql
                SELECT COUNT("attendance") FROM "schedule" WHERE "week"=15;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of people in attendance in the game against the Buffalo Bills in a week later than 14?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='buffalo bills' AND "week">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Week when there were more than 63,866 people in attendance on September 7, 1981?`:
```sql
                SELECT AVG("week") FROM "schedule" WHERE "attendance">'63,866' AND "date"='september 7, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Attendance for the game on November 1, 1981?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Attendance for the game on November 1, 1981?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='november 1, 1981';
```
## Task
Generate a SQL query to answer the following question:
`What position is played by the player from the Chicago Cubs?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position is played by the player from the Chicago Cubs?`:
```sql
                SELECT "position" FROM "supplemental_first_round_selections" WHERE "team"='chicago cubs';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the Outfielder that was picked prior to Pick 42?`

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

CREATE TABLE "supplemental_first_round_selections" (
  "pick" real,
  "player" text,
  "team" text,
  "position" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the Outfielder that was picked prior to Pick 42?`:
```sql
                SELECT "player" FROM "supplemental_first_round_selections" WHERE "position"='outfielder' AND "pick"<42;
```
## Task
Generate a SQL query to answer the following question:
`What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?`:
```sql
                SELECT "week_of" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin' AND "runner_up"='meredith mcgrath larisa savchenko';
```
## Task
Generate a SQL query to answer the following question:
`What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Semi finalists when the Runner-up was katrina adams zina garrison-jackson?`:
```sql
                SELECT "semi_finalists" FROM "october" WHERE "runner_up"='katrina adams zina garrison-jackson';
```
## Task
Generate a SQL query to answer the following question:
`What is the Winner when anke huber chanda rubin was semi finalist?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Winner when anke huber chanda rubin was semi finalist?`:
```sql
                SELECT "winner" FROM "october" WHERE "semi_finalists"='anke huber chanda rubin';
```
## Task
Generate a SQL query to answer the following question:
`What is the Tier when the runner-up is chanda rubin caroline vis?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Tier when the runner-up is chanda rubin caroline vis?`:
```sql
                SELECT "tier" FROM "october" WHERE "runner_up"='chanda rubin caroline vis';
```
## Task
Generate a SQL query to answer the following question:
`What is the Week when the winner was mary joe fernández 6–4, 7–5?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Week when the winner was mary joe fernández 6–4, 7–5?`:
```sql
                SELECT "week_of" FROM "october" WHERE "winner"='mary joe fernández 6–4, 7–5';
```
## Task
Generate a SQL query to answer the following question:
`What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?`

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

CREATE TABLE "october" (
  "week_of" text,
  "tier" text,
  "winner" text,
  "runner_up" text,
  "semi_finalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?`:
```sql
                SELECT "runner_up" FROM "october" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 5–7, 6–1, 6–4';
```
## Task
Generate a SQL query to answer the following question:
`Which week had safe as the result and Dolly Parton as the theme?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which week had safe as the result and Dolly Parton as the theme?`:
```sql
                SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "theme"='dolly parton';
```
## Task
Generate a SQL query to answer the following question:
`On which week was the beatles the original artist and the order # smaller than 10?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which week was the beatles the original artist and the order # smaller than 10?`:
```sql
                SELECT "week_num" FROM "performances" WHERE "original_artist"='the beatles' AND "order_num"<10;
```
## Task
Generate a SQL query to answer the following question:
`On which week was the result safe and the song choice " across the universe "?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `On which week was the result safe and the song choice " across the universe "?`:
```sql
                SELECT "week_num" FROM "performances" WHERE "result"='safe' AND "song_choice"='\" across the universe \"';
```
## Task
Generate a SQL query to answer the following question:
`Which original artist had 5 as their order #?`

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

CREATE TABLE "performances" (
  "week_num" text,
  "theme" text,
  "song_choice" text,
  "original_artist" text,
  "order_num" real,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which original artist had 5 as their order #?`:
```sql
                SELECT "original_artist" FROM "performances" WHERE "order_num"=5;
```
## Task
Generate a SQL query to answer the following question:
`Which nominee was nominated in the Outstanding Director of a Musical category?`

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

CREATE TABLE "1997_broadway_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which nominee was nominated in the Outstanding Director of a Musical category?`:
```sql
                SELECT "nominee" FROM "1997_broadway_revival" WHERE "category"='outstanding director of a musical';
```
## Task
Generate a SQL query to answer the following question:
`What is the result for Brent Spiner?`

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

CREATE TABLE "1997_broadway_revival" (
  "year" real,
  "award" text,
  "category" text,
  "nominee" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for Brent Spiner?`:
```sql
                SELECT "result" FROM "1997_broadway_revival" WHERE "nominee"='brent spiner';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of games for Shaun Stonerook?`

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

CREATE TABLE "rebounds" (
  "rank" real,
  "name" text,
  "team" text,
  "games" real,
  "rebounds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of games for Shaun Stonerook?`:
```sql
                SELECT MIN("games") FROM "rebounds" WHERE "name"='shaun stonerook';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?`

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

CREATE TABLE "medal_leaders" (
  "nation" text,
  "sport" 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 total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?`:
```sql
                SELECT MAX("total") FROM "medal_leaders" WHERE "bronze"<1 AND "silver"<0;
```
## Task
Generate a SQL query to answer the following question:
`Total weeks of 49,980 attendance?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Total weeks of 49,980 attendance?`:
```sql
                SELECT SUM("week") FROM "schedule" WHERE "attendance"='49,980';
```
## Task
Generate a SQL query to answer the following question:
`Mean attendance for December 22, 1980?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Mean attendance for December 22, 1980?`:
```sql
                SELECT AVG("attendance") FROM "schedule" WHERE "date"='december 22, 1980';
```
## Task
Generate a SQL query to answer the following question:
`Overall attendance for week 4?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Overall attendance for week 4?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "week"=4;
```
## Task
Generate a SQL query to answer the following question:
`What was in 2007 that has a 3r of 1999?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was in 2007 that has a 3r of 1999?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "1999"='3r';
```
## Task
Generate a SQL query to answer the following question:
`What was in 2007 that is from 2004 0f 2r and 2010 of A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was in 2007 that is from 2004 0f 2r and 2010 of A?`:
```sql
                SELECT "2007" FROM "singles_performance_timeline" WHERE "2004"='2r' AND "2010"='a';
```
## Task
Generate a SQL query to answer the following question:
`What is in 2001, that has the year 2006, 2r, and in 2010 an A?`

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

CREATE TABLE "singles_performance_timeline" (
  "tournament" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "1999" text,
  "2000" text,
  "2001" text,
  "2002" text,
  "2003" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is in 2001, that has the year 2006, 2r, and in 2010 an A?`:
```sql
                SELECT "2001" FROM "singles_performance_timeline" WHERE "2006"='2r' AND "2010"='a';
```
## Task
Generate a SQL query to answer the following question:
`Who was awarded after 1947 in the category of, the best actor in a leading role?`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "award" text,
  "result" text,
  "category" text,
  "film" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was awarded after 1947 in the category of, the best actor in a leading role?`:
```sql
                SELECT "award" FROM "awards_and_nominations" WHERE "year">1947 AND "category"='best actor in a leading role';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text,
  "round" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?`:
```sql
                SELECT "opponent" FROM "kickboxing_record" WHERE "method"='tko' AND "location"='elgin, illinois, usa' AND "date"='2001-02-11';
```
## Task
Generate a SQL query to answer the following question:
`Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text,
  "round" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?`:
```sql
                SELECT AVG("round") FROM "kickboxing_record" WHERE "location"='auckland, new zealand' AND "method"='tko' AND "date"='1994-11-24';
```
## Task
Generate a SQL query to answer the following question:
`Which highest Round has a Result of loss?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text,
  "round" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which highest Round has a Result of loss?`:
```sql
                SELECT MAX("round") FROM "kickboxing_record" WHERE "result"='loss';
```
## Task
Generate a SQL query to answer the following question:
`Which Location has a Method of decision?`

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

CREATE TABLE "kickboxing_record" (
  "date" text,
  "result" text,
  "opponent" text,
  "location" text,
  "method" text,
  "round" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Location has a Method of decision?`:
```sql
                SELECT "location" FROM "kickboxing_record" WHERE "method"='decision';
```
## Task
Generate a SQL query to answer the following question:
`What tournament has 1r as a 2004, and 1r as a 2007?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What tournament has 1r as a 2004, and 1r as a 2007?`:
```sql
                SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2004"='1r' AND "2007"='1r';
```
## Task
Generate a SQL query to answer the following question:
`What 2012 has q2 as the 2010, and wimbledon as the tournament?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2012 has q2 as the 2010, and wimbledon as the tournament?`:
```sql
                SELECT "2012" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='q2' AND "tournament"='wimbledon';
```
## Task
Generate a SQL query to answer the following question:
`What 2006 has grand slam tournaments of 2010?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2006 has grand slam tournaments of 2010?`:
```sql
                SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2010"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What 2006 has grand slam tournaments of 2005?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2006 has grand slam tournaments of 2005?`:
```sql
                SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2005"='grand slam tournaments';
```
## Task
Generate a SQL query to answer the following question:
`What 2006 has q2 as the 2007?`

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

CREATE TABLE "grand_slam_singles_performance_timeline" (
  "tournament" text,
  "2002" text,
  "2004" text,
  "2005" text,
  "2006" text,
  "2007" text,
  "2008" text,
  "2010" text,
  "2011" text,
  "2012" text
);
### SQL
Given the database schema, here is the SQL query that answers `What 2006 has q2 as the 2007?`:
```sql
                SELECT "2006" FROM "grand_slam_singles_performance_timeline" WHERE "2007"='q2';
```
## Task
Generate a SQL query to answer the following question:
`What are the losses where the award is Mike Miller (Smoy)?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "winpct" text,
  "awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the losses where the award is Mike Miller (Smoy)?`:
```sql
                SELECT "losses" FROM "seasons" WHERE "awards"='mike miller (smoy)';
```
## Task
Generate a SQL query to answer the following question:
`Where the wins are 46, what is the win%?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "winpct" text,
  "awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the wins are 46, what is the win%?`:
```sql
                SELECT "winpct" FROM "seasons" WHERE "wins"='46';
```
## Task
Generate a SQL query to answer the following question:
`Where the Vancouver Grizzlies is the awards, what is the conference?`

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

CREATE TABLE "seasons" (
  "season" text,
  "conference" text,
  "division" text,
  "finish" text,
  "wins" text,
  "losses" text,
  "winpct" text,
  "awards" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the Vancouver Grizzlies is the awards, what is the conference?`:
```sql
                SELECT "conference" FROM "seasons" WHERE "awards"='vancouver grizzlies';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?`

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

CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 1987 value with a 1995 value less than 1995 and a 1999 less than 9?`:
```sql
                SELECT MAX("1987") FROM "elections_to_the_legislative_assembly_of" WHERE "1995"<1995 AND "1999"<9;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?`

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

CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?`:
```sql
                SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">74 AND "1985"=125 AND "1995">130;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?`

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

CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?`:
```sql
                SELECT MAX("2007") FROM "elections_to_the_legislative_assembly_of" WHERE "1985">52 AND "1987">130 AND "1990"<1990;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?`

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

CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?`:
```sql
                SELECT MAX("1995") FROM "elections_to_the_legislative_assembly_of" WHERE "1990">36 AND "1987"<1987 AND "2007">107;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?`

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

CREATE TABLE "elections_to_the_legislative_assembly_of" (
  "party" text,
  "1985" real,
  "1987" real,
  "1990" real,
  "1995" real,
  "1999" real,
  "2003" real,
  "2007" real,
  "2011" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest 2003 value with a 2011 less than 107 and a 1995 value less than 17?`:
```sql
                SELECT MAX("2003") FROM "elections_to_the_legislative_assembly_of" WHERE "2011"<107 AND "1995"<17;
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?`:
```sql
                SELECT "tournament" FROM "summary" WHERE "events">11 AND "top_5"=0 AND "top_25"=2;
```
## Task
Generate a SQL query to answer the following question:
`What is the most top-10 of the team with 8 cuts made and less than 11 events?`

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

CREATE TABLE "summary" (
  "tournament" text,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "top_25" real,
  "events" real,
  "cuts_made" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most top-10 of the team with 8 cuts made and less than 11 events?`:
```sql
                SELECT MAX("top_10") FROM "summary" WHERE "cuts_made"=8 AND "events"<11;
```
## Task
Generate a SQL query to answer the following question:
`What is the American Labor ticket when Henry Epstein is the liberal ticket?`

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

CREATE TABLE "1946_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "liberal_ticket" text,
  "communist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the American Labor ticket when Henry Epstein is the liberal ticket?`:
```sql
                SELECT "american_labor_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='henry epstein';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Communist ticket with an Office of judge of the court of appeals?`

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

CREATE TABLE "1946_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "liberal_ticket" text,
  "communist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Communist ticket with an Office of judge of the court of appeals?`:
```sql
                SELECT "communist_ticket" FROM "1946_state_election_results" WHERE "office"='judge of the court of appeals';
```
## Task
Generate a SQL query to answer the following question:
`What is the Office when spencer c. young is on the liberal ticket??`

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

CREATE TABLE "1946_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "liberal_ticket" text,
  "communist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Office when spencer c. young is on the liberal ticket??`:
```sql
                SELECT "office" FROM "1946_state_election_results" WHERE "liberal_ticket"='spencer c. young';
```
## Task
Generate a SQL query to answer the following question:
`What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?`

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

CREATE TABLE "1946_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "liberal_ticket" text,
  "communist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name on the Democratic ticket when the Liberal ticket is erastus corning 2nd?`:
```sql
                SELECT "democratic_ticket" FROM "1946_state_election_results" WHERE "liberal_ticket"='erastus corning 2nd';
```
## Task
Generate a SQL query to answer the following question:
`What name is on the Republican ticket when the  American Labor ticket was spencer c. young?`

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

CREATE TABLE "1946_state_election_results" (
  "office" text,
  "republican_ticket" text,
  "democratic_ticket" text,
  "american_labor_ticket" text,
  "liberal_ticket" text,
  "communist_ticket" text
);
### SQL
Given the database schema, here is the SQL query that answers `What name is on the Republican ticket when the  American Labor ticket was spencer c. young?`:
```sql
                SELECT "republican_ticket" FROM "1946_state_election_results" WHERE "american_labor_ticket"='spencer c. young';
```
## Task
Generate a SQL query to answer the following question:
`What is the entered number for the person with a time of 29:28?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" text,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the entered number for the person with a time of 29:28?`:
```sql
                SELECT "entered" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='29:28';
```
## Task
Generate a SQL query to answer the following question:
`What is the number eliminated for the person with a time of 12:38?`

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

CREATE TABLE "elimination_chamber_entrances_and_elimin" (
  "eliminated" text,
  "wrestler" text,
  "entered" real,
  "eliminated_by" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number eliminated for the person with a time of 12:38?`:
```sql
                SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "time"='12:38';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest Attendance with a Result that is w 24-21?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest Attendance with a Result that is w 24-21?`:
```sql
                SELECT MAX("attendance") FROM "schedule" WHERE "result"='w 24-21';
```
## Task
Generate a SQL query to answer the following question:
`What Date has a time of (seconds) 42.172?`

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

CREATE TABLE "track_records" (
  "sport" text,
  "record" text,
  "nation_athlete_s" text,
  "date" text,
  "time_seconds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What Date has a time of (seconds) 42.172?`:
```sql
                SELECT "date" FROM "track_records" WHERE "time_seconds"=42.172;
```
## Task
Generate a SQL query to answer the following question:
`What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?`

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

CREATE TABLE "track_records" (
  "sport" text,
  "record" text,
  "nation_athlete_s" text,
  "date" text,
  "time_seconds" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Record for 23 january 2010, with a time smaller than 42.679 seconds?`:
```sql
                SELECT "record" FROM "track_records" WHERE "date"='23 january 2010' AND "time_seconds"<42.679;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of Points that were in a Year that was 2005?`

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

CREATE TABLE "college_career" (
  "year" text,
  "gp_gs" text,
  "shots" real,
  "goals" real,
  "assists" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of Points that were in a Year that was 2005?`:
```sql
                SELECT COUNT("points") FROM "college_career" WHERE "year"='2005';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Shots with a Point that is larger than 32?`

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

CREATE TABLE "college_career" (
  "year" text,
  "gp_gs" text,
  "shots" real,
  "goals" real,
  "assists" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Shots with a Point that is larger than 32?`:
```sql
                SELECT MIN("shots") FROM "college_career" WHERE "points">32;
```
## Task
Generate a SQL query to answer the following question:
`Which category had a year of 1991?`

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

CREATE TABLE "singles" (
  "year" real,
  "category" text,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which category had a year of 1991?`:
```sql
                SELECT "category" FROM "singles" WHERE "year"=1991;
```
## Task
Generate a SQL query to answer the following question:
`What is the score having a runner-up of Magdalena Maleeva?`

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

CREATE TABLE "singles" (
  "year" real,
  "category" text,
  "champion" text,
  "runner_up" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score having a runner-up of Magdalena Maleeva?`:
```sql
                SELECT "score" FROM "singles" WHERE "runner_up"='magdalena maleeva';
```
## Task
Generate a SQL query to answer the following question:
`What year was John m. Belk Arena built?`

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

CREATE TABLE "present" (
  "venue" text,
  "location" text,
  "capacity" text,
  "owner" text,
  "environment" text,
  "year_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was John m. Belk Arena built?`:
```sql
                SELECT "year_built" FROM "present" WHERE "venue"='john m. belk arena';
```
## Task
Generate a SQL query to answer the following question:
`What type of environment is the venue that was built in 2003?`

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

CREATE TABLE "present" (
  "venue" text,
  "location" text,
  "capacity" text,
  "owner" text,
  "environment" text,
  "year_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What type of environment is the venue that was built in 2003?`:
```sql
                SELECT "environment" FROM "present" WHERE "year_built"='2003';
```
## Task
Generate a SQL query to answer the following question:
`What year was transamerica field built in?`

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

CREATE TABLE "present" (
  "venue" text,
  "location" text,
  "capacity" text,
  "owner" text,
  "environment" text,
  "year_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was transamerica field built in?`:
```sql
                SELECT "year_built" FROM "present" WHERE "venue"='transamerica field';
```
## Task
Generate a SQL query to answer the following question:
`What is the location of the venue owned by johnson c. smith university?`

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

CREATE TABLE "present" (
  "venue" text,
  "location" text,
  "capacity" text,
  "owner" text,
  "environment" text,
  "year_built" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the location of the venue owned by johnson c. smith university?`:
```sql
                SELECT "location" FROM "present" WHERE "owner"='johnson c. smith university';
```
## Task
Generate a SQL query to answer the following question:
`What is the venue when the score was 8-2?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the venue when the score was 8-2?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "score"='8-2';
```
## Task
Generate a SQL query to answer the following question:
`What is the Score for the 1999 fifa confederations cup?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Score for the 1999 fifa confederations cup?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='1999 fifa confederations cup';
```
## Task
Generate a SQL query to answer the following question:
`What is the result on 30 june 1995?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result on 30 june 1995?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='30 june 1995';
```