cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`What is the match total for a score over 299 and under 412 innings?`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "innings" real,
  "not_out" real,
  "high_score" text,
  "runs" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the match total for a score over 299 and under 412 innings?`:
```sql
                SELECT SUM("matches") FROM "best_average_in_a_career" WHERE "high_score"='299' AND "innings"<412;
```
## Task
Generate a SQL query to answer the following question:
`What is the high run total associated with a high score of 385 and under 407 innings?`

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

CREATE TABLE "best_average_in_a_career" (
  "matches" real,
  "innings" real,
  "not_out" real,
  "high_score" text,
  "runs" real,
  "average" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the high run total associated with a high score of 385 and under 407 innings?`:
```sql
                SELECT MAX("runs") FROM "best_average_in_a_career" WHERE "high_score"='385' AND "innings"<407;
```
## Task
Generate a SQL query to answer the following question:
`Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which 2nd leg has a 1st leg of 1-1 and is Team 1 djoliba ac?`:
```sql
                SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='1-1' AND "team_1"='djoliba ac';
```
## Task
Generate a SQL query to answer the following question:
`What Team 1 has union douala as Team 2?`

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

CREATE TABLE "second_round" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Team 1 has union douala as Team 2?`:
```sql
                SELECT "team_1" FROM "second_round" WHERE "team_2"='union douala';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game that had a loss of Cerutti (0-1)?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game that had a loss of Cerutti (0-1)?`:
```sql
                SELECT "score" FROM "game_log" WHERE "loss"='cerutti (0-1)';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game that had a record of 93-54?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game that had a record of 93-54?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='93-54';
```
## Task
Generate a SQL query to answer the following question:
`What was the score to par for 156 strokes?`

### 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 score to par for 156 strokes?`:
```sql
                SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total">156;
```
## Task
Generate a SQL query to answer the following question:
`How many strokes for arnold palmer with a to par of greater than 9?`

### 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 `How many strokes for arnold palmer with a to par of greater than 9?`:
```sql
                SELECT AVG("total") FROM "missed_the_cut" WHERE "to_par">9 AND "player"='arnold palmer';
```
## Task
Generate a SQL query to answer the following question:
`What was the score to par in 1960?`

### 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 score to par in 1960?`:
```sql
                SELECT "to_par" FROM "missed_the_cut" WHERE "year_s_won"='1960';
```
## Task
Generate a SQL query to answer the following question:
`What is the earliest first game for a rugby team that has 7 lost games and 0 draws?`

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

CREATE TABLE "rugby_germany_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the earliest first game for a rugby team that has 7 lost games and 0 draws?`:
```sql
                SELECT MIN("first_game") FROM "rugby_germany_internationals_1989" WHERE "lost"=7 AND "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`How many games were played by a team that won 0.00% of their games and 0 draws?`

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

CREATE TABLE "rugby_germany_internationals_1989" (
  "first_game" real,
  "played" real,
  "drawn" real,
  "lost" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were played by a team that won 0.00% of their games and 0 draws?`:
```sql
                SELECT SUM("played") FROM "rugby_germany_internationals_1989" WHERE "percentage"='0.00%' AND "drawn"<0;
```
## Task
Generate a SQL query to answer the following question:
`Name the matches for the first match being 30 march 1997`

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

CREATE TABLE "team_wins_losses_and_draws" (
  "team" text,
  "1st_match" text,
  "matches" text,
  "lost" text,
  "pct_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the matches for the first match being 30 march 1997`:
```sql
                SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "1st_match"='30 march 1997';
```
## Task
Generate a SQL query to answer the following question:
`Name the 1st match for brisbane bears`

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

CREATE TABLE "team_wins_losses_and_draws" (
  "team" text,
  "1st_match" text,
  "matches" text,
  "lost" text,
  "pct_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the 1st match for brisbane bears`:
```sql
                SELECT "1st_match" FROM "team_wins_losses_and_draws" WHERE "team"='brisbane bears';
```
## Task
Generate a SQL query to answer the following question:
`Name the lost for matches of 1 928`

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

CREATE TABLE "team_wins_losses_and_draws" (
  "team" text,
  "1st_match" text,
  "matches" text,
  "lost" text,
  "pct_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lost for matches of 1 928`:
```sql
                SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "matches"='1 928';
```
## Task
Generate a SQL query to answer the following question:
`Name the lost for % won of 55.37`

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

CREATE TABLE "team_wins_losses_and_draws" (
  "team" text,
  "1st_match" text,
  "matches" text,
  "lost" text,
  "pct_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the lost for % won of 55.37`:
```sql
                SELECT "lost" FROM "team_wins_losses_and_draws" WHERE "pct_won"='55.37';
```
## Task
Generate a SQL query to answer the following question:
`Name the matches for gold coast`

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

CREATE TABLE "team_wins_losses_and_draws" (
  "team" text,
  "1st_match" text,
  "matches" text,
  "lost" text,
  "pct_won" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the matches for gold coast`:
```sql
                SELECT "matches" FROM "team_wins_losses_and_draws" WHERE "team"='gold coast';
```
## Task
Generate a SQL query to answer the following question:
`What is the year when cable was 4.6%?`

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

CREATE TABLE "statistics" (
  "year" text,
  "x_dsl" text,
  "cable" text,
  "ft_tx" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year when cable was 4.6%?`:
```sql
                SELECT "year" FROM "statistics" WHERE "cable"='4.6%';
```
## Task
Generate a SQL query to answer the following question:
`What is the other for 2012?`

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

CREATE TABLE "statistics" (
  "year" text,
  "x_dsl" text,
  "cable" text,
  "ft_tx" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the other for 2012?`:
```sql
                SELECT "other" FROM "statistics" WHERE "year"='2012';
```
## Task
Generate a SQL query to answer the following question:
`What is the xDSL for the other of 0.6% and FTTx of 35.4%?`

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

CREATE TABLE "statistics" (
  "year" text,
  "x_dsl" text,
  "cable" text,
  "ft_tx" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the xDSL for the other of 0.6% and FTTx of 35.4%?`:
```sql
                SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "ft_tx"='35.4%';
```
## Task
Generate a SQL query to answer the following question:
`What is the other for a 78.2% xDSL?`

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

CREATE TABLE "statistics" (
  "year" text,
  "x_dsl" text,
  "cable" text,
  "ft_tx" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the other for a 78.2% xDSL?`:
```sql
                SELECT "other" FROM "statistics" WHERE "x_dsl"='78.2%';
```
## Task
Generate a SQL query to answer the following question:
`What is the xDSL in 2010 when the other was 0.6%?`

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

CREATE TABLE "statistics" (
  "year" text,
  "x_dsl" text,
  "cable" text,
  "ft_tx" text,
  "other" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the xDSL in 2010 when the other was 0.6%?`:
```sql
                SELECT "x_dsl" FROM "statistics" WHERE "other"='0.6%' AND "year"='2010';
```
## Task
Generate a SQL query to answer the following question:
`Which date has a Result of won, and a Score of 1-0?`

### 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 `Which date has a Result of won, and a Score of 1-0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "result"='won' AND "score"='1-0';
```
## Task
Generate a SQL query to answer the following question:
`Which result has a Date of november 2, 2007?`

### 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 `Which result has a Date of november 2, 2007?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='november 2, 2007';
```
## Task
Generate a SQL query to answer the following question:
`Which Competition has a Score of 2-0?`

### 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 `Which Competition has a Score of 2-0?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "score"='2-0';
```
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Date of january 9, 2011?`

### 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 `Which Venue has a Date of january 9, 2011?`:
```sql
                SELECT "venue" FROM "international_goals" WHERE "date"='january 9, 2011';
```
## Task
Generate a SQL query to answer the following question:
`What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?`

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

CREATE TABLE "see_also" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the termination of mission date of the representative with a presentation of credentials date on July 4, 1898?`:
```sql
                SELECT "termination_of_mission" FROM "see_also" WHERE "presentation_of_credentials"='july 4, 1898';
```
## Task
Generate a SQL query to answer the following question:
`What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?`

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

CREATE TABLE "see_also" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the presentation of credentials date of raúl h. castro, who has a title of ambassador extraordinary and plenipotentiary?`:
```sql
                SELECT "presentation_of_credentials" FROM "see_also" WHERE "title"='ambassador extraordinary and plenipotentiary' AND "representative"='raúl h. castro';
```
## Task
Generate a SQL query to answer the following question:
`Who is the representative with a presentation of credentials date on February 23, 1854?`

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

CREATE TABLE "see_also" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the representative with a presentation of credentials date on February 23, 1854?`:
```sql
                SELECT "representative" FROM "see_also" WHERE "presentation_of_credentials"='february 23, 1854';
```
## Task
Generate a SQL query to answer the following question:
`What is the title of the representative appointed by James K. Polk?`

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

CREATE TABLE "see_also" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the representative appointed by James K. Polk?`:
```sql
                SELECT "title" FROM "see_also" WHERE "appointed_by"='james k. polk';
```
## Task
Generate a SQL query to answer the following question:
`What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?`

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

CREATE TABLE "see_also" (
  "representative" text,
  "title" text,
  "presentation_of_credentials" text,
  "termination_of_mission" text,
  "appointed_by" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the termination of mission date of the representative appointed by Franklin Pierce with a title of chargé d'affaires?`:
```sql
                SELECT "termination_of_mission" FROM "see_also" WHERE "appointed_by"='franklin pierce' AND "title"='chargé d''affaires';
```
## Task
Generate a SQL query to answer the following question:
`What is the Stadium held on november 29?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Stadium held on november 29?`:
```sql
                SELECT "stadium" FROM "2007_season" WHERE "date"='november 29';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Visiting team on december 20?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Visiting team on december 20?`:
```sql
                SELECT "visiting_team" FROM "2007_season" WHERE "date"='december 20';
```
## Task
Generate a SQL query to answer the following question:
`Which Stadium has a Visiting team of pittsburgh steelers?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Stadium has a Visiting team of pittsburgh steelers?`:
```sql
                SELECT "stadium" FROM "2007_season" WHERE "visiting_team"='pittsburgh steelers';
```
## Task
Generate a SQL query to answer the following question:
`Who is the Host team that has a chicago bears as a visiting team?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the Host team that has a chicago bears as a visiting team?`:
```sql
                SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='chicago bears';
```
## Task
Generate a SQL query to answer the following question:
`What is the Final score on november 22?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Final score on november 22?`:
```sql
                SELECT "final_score" FROM "2007_season" WHERE "date"='november 22';
```
## Task
Generate a SQL query to answer the following question:
`What is the Host team that has indianapolis colts as a Visiting team?`

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

CREATE TABLE "2007_season" (
  "date" text,
  "visiting_team" text,
  "final_score" text,
  "host_team" text,
  "stadium" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Host team that has indianapolis colts as a Visiting team?`:
```sql
                SELECT "host_team" FROM "2007_season" WHERE "visiting_team"='indianapolis colts';
```
## Task
Generate a SQL query to answer the following question:
`Who won when np cooper av cooke was runner up?`

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

CREATE TABLE "winners" (
  "year" real,
  "winners" text,
  "club" text,
  "time" text,
  "runners_up" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won when np cooper av cooke was runner up?`:
```sql
                SELECT "winners" FROM "winners" WHERE "runners_up"='np cooper av cooke';
```
## Task
Generate a SQL query to answer the following question:
`What was the record of the match that had a time of 1:44?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record of the match that had a time of 1:44?`:
```sql
                SELECT "record" FROM "mixed_martial_arts_record" WHERE "time"='1:44';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at GCM – D.O.G. 4?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at GCM – D.O.G. 4?`:
```sql
                SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "event"='gcm – d.o.g. 4';
```
## Task
Generate a SQL query to answer the following question:
`What was the location of the match that ended before round 2, against Hikaru Sato?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "time" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the location of the match that ended before round 2, against Hikaru Sato?`:
```sql
                SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='hikaru sato';
```
## Task
Generate a SQL query to answer the following question:
`What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?`

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

CREATE TABLE "series_10" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Company or Product name where Entrepreneurs Geoff and Colette Bell requested £75,000?`:
```sql
                SELECT "company_or_product_name" FROM "series_10" WHERE "money_requested"='75,000' AND "entrepreneur_s"='geoff and colette bell';
```
## Task
Generate a SQL query to answer the following question:
`Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?`

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

CREATE TABLE "series_10" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Investing Dragon(s) belong to Episode 9 with the Entrepreneur Ashley Sayed?`:
```sql
                SELECT "investing_dragon_s" FROM "series_10" WHERE "episode"='episode 9' AND "entrepreneur_s"='ashley sayed';
```
## Task
Generate a SQL query to answer the following question:
`What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?`

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

CREATE TABLE "series_10" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Episode did Entrepreneur(s) Luke Booth and Christopher Eves take part?`:
```sql
                SELECT "episode" FROM "series_10" WHERE "entrepreneur_s"='luke booth and christopher eves';
```
## Task
Generate a SQL query to answer the following question:
`Which Company or Product name requested £70,000 on Episode 11?`

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

CREATE TABLE "series_10" (
  "episode" text,
  "first_aired" text,
  "entrepreneur_s" text,
  "company_or_product_name" text,
  "money_requested" text,
  "investing_dragon_s" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Company or Product name requested £70,000 on Episode 11?`:
```sql
                SELECT "company_or_product_name" FROM "series_10" WHERE "episode"='episode 11' AND "money_requested"='70,000';
```
## Task
Generate a SQL query to answer the following question:
`What is the year in which Yong Yudianto won the men's singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year in which Yong Yudianto won the men's singles?`:
```sql
                SELECT MIN("year") FROM "previous_winners" WHERE "men_s_singles"='yong yudianto';
```
## Task
Generate a SQL query to answer the following question:
`Who won the men's singles in 1999?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who won the men's singles in 1999?`:
```sql
                SELECT "men_s_singles" FROM "previous_winners" WHERE "year"=1999;
```
## Task
Generate a SQL query to answer the following question:
`What is stephen arigbabu's height?`

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

CREATE TABLE "fiba_euro_basket_2007_squads" (
  "player" text,
  "height" real,
  "position" text,
  "year_born" real,
  "current_club" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is stephen arigbabu's height?`:
```sql
                SELECT MIN("height") FROM "fiba_euro_basket_2007_squads" WHERE "player"='stephen arigbabu';
```
## Task
Generate a SQL query to answer the following question:
`For all games with los angeles as visitor, what is the highest attendance of all?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For all games with los angeles as visitor, what is the highest attendance of all?`:
```sql
                SELECT MAX("attendance") FROM "february" WHERE "visitor"='los angeles';
```
## Task
Generate a SQL query to answer the following question:
`For all games with calgary as home, what is the average number of attendees?`

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

CREATE TABLE "february" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "decision" text,
  "attendance" real,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `For all games with calgary as home, what is the average number of attendees?`:
```sql
                SELECT AVG("attendance") FROM "february" WHERE "home"='calgary';
```
## Task
Generate a SQL query to answer the following question:
`Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?`

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

CREATE TABLE "nominations" (
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_5" text,
  "no_6" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is no. 5 when Lena Claudisabel is no. 1 and Lena Sylvie is no. 2?`:
```sql
                SELECT "no_5" FROM "nominations" WHERE "no_1"='lena claudisabel' AND "no_2"='lena sylvie';
```
## Task
Generate a SQL query to answer the following question:
`Who is no.3 when Claudio Sylvie is no.1?`

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

CREATE TABLE "nominations" (
  "no_1" text,
  "no_2" text,
  "no_3" text,
  "no_5" text,
  "no_6" text,
  "final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is no.3 when Claudio Sylvie is no.1?`:
```sql
                SELECT "no_3" FROM "nominations" WHERE "no_1"='claudio sylvie';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the game when the record was 18-20?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the game when the record was 18-20?`:
```sql
                SELECT "score" FROM "game_log" WHERE "record"='18-20';
```
## Task
Generate a SQL query to answer the following question:
`What Men's double held together with Women's singles of camilla martin?`

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

CREATE TABLE "past_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Men's double held together with Women's singles of camilla martin?`:
```sql
                SELECT "men_s_doubles" FROM "past_winners" WHERE "women_s_singles"='camilla martin';
```
## Task
Generate a SQL query to answer the following question:
`Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who played in the Mixed Doubles when Zhu Lin played in the Women's Singles?`:
```sql
                SELECT "mixed_doubles" FROM "previous_winners" WHERE "women_s_singles"='zhu lin';
```
## Task
Generate a SQL query to answer the following question:
`Who was on the Men's Doubles Team in 2002?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was on the Men's Doubles Team in 2002?`:
```sql
                SELECT "men_s_doubles" FROM "previous_winners" WHERE "year"=2002;
```
## Task
Generate a SQL query to answer the following question:
`Which year did Aya Ohori play in the Women's Singles?`

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

CREATE TABLE "previous_winners" (
  "year" real,
  "men_s_singles" text,
  "women_s_singles" text,
  "men_s_doubles" text,
  "women_s_doubles" text,
  "mixed_doubles" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which year did Aya Ohori play in the Women's Singles?`:
```sql
                SELECT "year" FROM "previous_winners" WHERE "women_s_singles"='aya ohori';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?`

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

CREATE TABLE "doubles_8" (
  "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 `Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final?`:
```sql
                SELECT "partner" FROM "doubles_8" WHERE "opponents_in_the_final"='flavio cipolla simone vagnozzi';
```
## Task
Generate a SQL query to answer the following question:
`Who were the Opponents in the final that played on a carpet (i) Surface?`

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

CREATE TABLE "doubles_8" (
  "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 `Who were the Opponents in the final that played on a carpet (i) Surface?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "surface"='carpet (i)';
```
## Task
Generate a SQL query to answer the following question:
`Played on Clay Surface, what was the Score of the Dortmund Tournament?`

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

CREATE TABLE "doubles_8" (
  "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 `Played on Clay Surface, what was the Score of the Dortmund Tournament?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_8" WHERE "surface"='clay' AND "tournament"='dortmund';
```
## Task
Generate a SQL query to answer the following question:
`Who is Partner Frederik Nielsen's Opponents in the final?`

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

CREATE TABLE "doubles_8" (
  "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 `Who is Partner Frederik Nielsen's Opponents in the final?`:
```sql
                SELECT "opponents_in_the_final" FROM "doubles_8" WHERE "partner"='frederik nielsen';
```
## Task
Generate a SQL query to answer the following question:
`What is Partner Tomas Behrend's Score in the final?`

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

CREATE TABLE "doubles_8" (
  "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 is Partner Tomas Behrend's Score in the final?`:
```sql
                SELECT "score_in_the_final" FROM "doubles_8" WHERE "partner"='tomas behrend';
```
## Task
Generate a SQL query to answer the following question:
`What Country does Larry Mize play for?`

### 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 Country does Larry Mize play for?`:
```sql
                SELECT "country" FROM "missed_the_cut" WHERE "player"='larry mize';
```
## Task
Generate a SQL query to answer the following question:
`What is the winning total from 1976?`

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

CREATE TABLE "missed_the_cut" (
  "player" text,
  "country" text,
  "year_s_won" text,
  "total" real,
  "to_par" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the winning total from 1976?`:
```sql
                SELECT MAX("total") FROM "missed_the_cut" WHERE "year_s_won"='1976';
```
## Task
Generate a SQL query to answer the following question:
`What year was owner Michael E. Pegram's last win?`

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

CREATE TABLE "winners_since_1995" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was owner Michael E. Pegram's last win?`:
```sql
                SELECT MAX("year") FROM "winners_since_1995" WHERE "owner"='michael e. pegram';
```
## Task
Generate a SQL query to answer the following question:
`Who is the trainer for Cherry Valley Farm?`

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

CREATE TABLE "winners_since_1995" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the trainer for Cherry Valley Farm?`:
```sql
                SELECT "trainer" FROM "winners_since_1995" WHERE "owner"='cherry valley farm';
```
## Task
Generate a SQL query to answer the following question:
`Who owned winner Blueeyesintherein after 2009?`

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

CREATE TABLE "winners_since_1995" (
  "year" real,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who owned winner Blueeyesintherein after 2009?`:
```sql
                SELECT "owner" FROM "winners_since_1995" WHERE "year">2009 AND "winner"='blueeyesintherein';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Blue Jays' opponent when their record was 33-15?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Blue Jays' opponent when their record was 33-15?`:
```sql
                SELECT "opponent" FROM "game_log" WHERE "record"='33-15';
```
## Task
Generate a SQL query to answer the following question:
`Who did the Blue Jays lose to when their record was 36-20?`

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

CREATE TABLE "game_log" (
  "date" text,
  "opponent" text,
  "score" text,
  "loss" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who did the Blue Jays lose to when their record was 36-20?`:
```sql
                SELECT "loss" FROM "game_log" WHERE "record"='36-20';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank of the qual 141.471?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank of the qual 141.471?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "qual"='141.471';
```
## Task
Generate a SQL query to answer the following question:
`What is the start of lap 55?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the start of lap 55?`:
```sql
                SELECT "start" FROM "indy_500_results" WHERE "laps"=55;
```
## Task
Generate a SQL query to answer the following question:
`What is rank of the year 1956?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is rank of the year 1956?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "year"='1956';
```
## Task
Generate a SQL query to answer the following question:
`What is the lap number for the rank of 13?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lap number for the rank of 13?`:
```sql
                SELECT "laps" FROM "indy_500_results" WHERE "rank"='13';
```
## Task
Generate a SQL query to answer the following question:
`What is the rank for 1961?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the rank for 1961?`:
```sql
                SELECT "rank" FROM "indy_500_results" WHERE "year"='1961';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the lap with a finish of 24?`

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

CREATE TABLE "indy_500_results" (
  "year" text,
  "start" text,
  "qual" text,
  "rank" text,
  "finish" text,
  "laps" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the lap with a finish of 24?`:
```sql
                SELECT SUM("laps") FROM "indy_500_results" WHERE "finish"='24';
```
## Task
Generate a SQL query to answer the following question:
`Which band plays Self Versus Self - Immersion?`

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

CREATE TABLE "discography" (
  "album_or_song" text,
  "band" text,
  "memebrship" text,
  "role" text,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which band plays Self Versus Self - Immersion?`:
```sql
                SELECT "band" FROM "discography" WHERE "album_or_song"='self versus self - immersion';
```
## Task
Generate a SQL query to answer the following question:
`What Event used submission (rear naked choke) with 9-4?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Event used submission (rear naked choke) with 9-4?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "method"='submission (rear naked choke)' AND "record"='9-4';
```
## Task
Generate a SQL query to answer the following question:
`What event was Donald Ouimet involved?`

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

CREATE TABLE "mixed_martial_arts_record" (
  "res" text,
  "record" text,
  "opponent" text,
  "method" text,
  "event" text,
  "round" real,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event was Donald Ouimet involved?`:
```sql
                SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='donald ouimet';
```
## Task
Generate a SQL query to answer the following question:
`What event did she finish 3rd in 2010?`

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

CREATE TABLE "senior" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did she finish 3rd in 2010?`:
```sql
                SELECT "event" FROM "senior" WHERE "position"='3rd' AND "year"=2010;
```
## Task
Generate a SQL query to answer the following question:
`What year did she compete in tampere, finland?`

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

CREATE TABLE "senior" (
  "year" real,
  "competition" text,
  "venue" text,
  "position" text,
  "event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year did she compete in tampere, finland?`:
```sql
                SELECT AVG("year") FROM "senior" WHERE "venue"='tampere, finland';
```
## Task
Generate a SQL query to answer the following question:
`Ben Hogan with a score larger than 66 had a place listed of what?`

### 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 `Ben Hogan with a score larger than 66 had a place listed of what?`:
```sql
                SELECT "place" FROM "first_round" WHERE "score">66 AND "player"='ben hogan';
```
## Task
Generate a SQL query to answer the following question:
`With a score of 70, this player's name is listed as what?`

### 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 `With a score of 70, this player's name is listed as what?`:
```sql
                SELECT "player" FROM "first_round" WHERE "score"=70;
```
## Task
Generate a SQL query to answer the following question:
`With a score smaller than 71 along with a place of t6, what is the To par score?`

### 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 `With a score smaller than 71 along with a place of t6, what is the To par score?`:
```sql
                SELECT "to_par" FROM "first_round" WHERE "score"<71 AND "place"='t6';
```