cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Year of 2006-07 had what studio host?`

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

CREATE TABLE "2000s" (
  "year" text,
  "flagship_station" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Year of 2006-07 had what studio host?`:
```sql
                SELECT "studio_host" FROM "2000s" WHERE "year"='2006-07';
```
## Task
Generate a SQL query to answer the following question:
`Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?`

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

CREATE TABLE "2000s" (
  "year" text,
  "flagship_station" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Play-by-play of sean grande, and a Flagship Station of wrko, and a Year of 2005-06 had what studio host?`:
```sql
                SELECT "studio_host" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko' AND "year"='2005-06';
```
## Task
Generate a SQL query to answer the following question:
`Studio host of john ryder, and a Year of 2007-08 had what play by play?`

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

CREATE TABLE "2000s" (
  "year" text,
  "flagship_station" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Studio host of john ryder, and a Year of 2007-08 had what play by play?`:
```sql
                SELECT "play_by_play" FROM "2000s" WHERE "studio_host"='john ryder' AND "year"='2007-08';
```
## Task
Generate a SQL query to answer the following question:
`Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?`

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

CREATE TABLE "2000s" (
  "year" text,
  "flagship_station" text,
  "play_by_play" text,
  "color_commentator_s" text,
  "studio_host" text
);
### SQL
Given the database schema, here is the SQL query that answers `Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator?`:
```sql
                SELECT "color_commentator_s" FROM "2000s" WHERE "play_by_play"='sean grande' AND "flagship_station"='wrko';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2011 for United States?`

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

CREATE TABLE "top_five_natural_honey_producing_countri" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2011 for United States?`:
```sql
                SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "country"='united states';
```
## Task
Generate a SQL query to answer the following question:
`What was the value in 2011 when value in 2009 was 82,003?`

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

CREATE TABLE "top_five_natural_honey_producing_countri" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the value in 2011 when value in 2009 was 82,003?`:
```sql
                SELECT "2011" FROM "top_five_natural_honey_producing_countri" WHERE "2009"='82,003';
```
## Task
Generate a SQL query to answer the following question:
`What country was rank 1?`

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

CREATE TABLE "top_five_natural_honey_producing_countri" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was rank 1?`:
```sql
                SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='1';
```
## Task
Generate a SQL query to answer the following question:
`What country was rank 4?`

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

CREATE TABLE "top_five_natural_honey_producing_countri" (
  "rank" text,
  "country" text,
  "2009" text,
  "2010" text,
  "2011" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country was rank 4?`:
```sql
                SELECT "country" FROM "top_five_natural_honey_producing_countri" WHERE "rank"='4';
```
## Task
Generate a SQL query to answer the following question:
`Games started of 4 is in what hometown?`

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

CREATE TABLE "varsity_letter_winners" (
  "player" text,
  "position" text,
  "games_started" text,
  "hometown" text,
  "height" text,
  "weight" real,
  "class" text,
  "previous_experience" text
);
### SQL
Given the database schema, here is the SQL query that answers `Games started of 4 is in what hometown?`:
```sql
                SELECT "hometown" FROM "varsity_letter_winners" WHERE "games_started"='4';
```
## Task
Generate a SQL query to answer the following question:
`Weight larger than 180, and a Player of charles b. carter is what previous experience?`

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

CREATE TABLE "varsity_letter_winners" (
  "player" text,
  "position" text,
  "games_started" text,
  "hometown" text,
  "height" text,
  "weight" real,
  "class" text,
  "previous_experience" text
);
### SQL
Given the database schema, here is the SQL query that answers `Weight larger than 180, and a Player of charles b. carter is what previous experience?`:
```sql
                SELECT "previous_experience" FROM "varsity_letter_winners" WHERE "weight">180 AND "player"='charles b. carter';
```
## Task
Generate a SQL query to answer the following question:
`Height of 5' 10", and a Games started of 7 involves which hometown?`

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

CREATE TABLE "varsity_letter_winners" (
  "player" text,
  "position" text,
  "games_started" text,
  "hometown" text,
  "height" text,
  "weight" real,
  "class" text,
  "previous_experience" text
);
### SQL
Given the database schema, here is the SQL query that answers `Height of 5' 10", and a Games started of 7 involves which hometown?`:
```sql
                SELECT "hometown" FROM "varsity_letter_winners" WHERE "height"='5'' 10\"' AND "games_started"='7';
```
## Task
Generate a SQL query to answer the following question:
`Player of herbert s. graver has what position?`

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

CREATE TABLE "varsity_letter_winners" (
  "player" text,
  "position" text,
  "games_started" text,
  "hometown" text,
  "height" text,
  "weight" real,
  "class" text,
  "previous_experience" text
);
### SQL
Given the database schema, here is the SQL query that answers `Player of herbert s. graver has what position?`:
```sql
                SELECT "position" FROM "varsity_letter_winners" WHERE "player"='herbert s. graver';
```
## Task
Generate a SQL query to answer the following question:
`Position of fullback has what highest weight?`

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

CREATE TABLE "varsity_letter_winners" (
  "player" text,
  "position" text,
  "games_started" text,
  "hometown" text,
  "height" text,
  "weight" real,
  "class" text,
  "previous_experience" text
);
### SQL
Given the database schema, here is the SQL query that answers `Position of fullback has what highest weight?`:
```sql
                SELECT MAX("weight") FROM "varsity_letter_winners" WHERE "position"='fullback';
```
## Task
Generate a SQL query to answer the following question:
`what is the callsign whtat uses 7bu?`

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

CREATE TABLE "defunct_callsigns" (
  "callsign" text,
  "area_served" text,
  "frequency" text,
  "band" text,
  "on_air_id" text,
  "purpose" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the callsign whtat uses 7bu?`:
```sql
                SELECT "callsign" FROM "defunct_callsigns" WHERE "on_air_id"='7bu';
```
## Task
Generate a SQL query to answer the following question:
`What is the highest rank for ben crenshaw after winning more than 14 times?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest rank for ben crenshaw after winning more than 14 times?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "player"='ben crenshaw' AND "wins">14;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of wins for ben crenshaw?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of wins for ben crenshaw?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "player"='ben crenshaw';
```
## Task
Generate a SQL query to answer the following question:
`What player has 14 wins?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What player has 14 wins?`:
```sql
                SELECT "player" FROM "leaders" WHERE "wins"=14;
```
## Task
Generate a SQL query to answer the following question:
`What is the 1995 value with of the 1993 ATP Masters Series?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1995 value with of the 1993 ATP Masters Series?`:
```sql
                SELECT "1995" FROM "doubles_performance_timeline" WHERE "1993"='atp masters series';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1993 value of the 1997 Grand Slams?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1993 value of the 1997 Grand Slams?`:
```sql
                SELECT "1993" FROM "doubles_performance_timeline" WHERE "1997"='grand slams';
```
## Task
Generate a SQL query to answer the following question:
`What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?`

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

CREATE TABLE "doubles_performance_timeline" (
  "tournament" text,
  "1990" text,
  "1991" text,
  "1992" text,
  "1993" text,
  "1994" text,
  "1995" text,
  "1996" text,
  "1997" text,
  "1998" text,
  "career_sr" text,
  "career_win_loss" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 1998 value with A in 1995, A in 1993, and 1r in 1996?`:
```sql
                SELECT "1998" FROM "doubles_performance_timeline" WHERE "1995"='a' AND "1993"='a' AND "1996"='1r';
```
## Task
Generate a SQL query to answer the following question:
`How many games does team Czechoslovakia have that had a drawn greater than 0?`

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

CREATE TABLE "first_round" (
  "team" text,
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many games does team Czechoslovakia have that had a drawn greater than 0?`:
```sql
                SELECT MAX("games") FROM "first_round" WHERE "team"='czechoslovakia' AND "drawn">0;
```
## Task
Generate a SQL query to answer the following question:
`Which Prime Minister's served a term of 344 days?`

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

CREATE TABLE "list_of_ministers_for_employment" (
  "order" text,
  "minister" text,
  "party" text,
  "prime_minister" text,
  "term_start" text,
  "term_end" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Prime Minister's served a term of 344 days?`:
```sql
                SELECT "prime_minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='344 days';
```
## Task
Generate a SQL query to answer the following question:
`Who was the Minister that served for 307 days?`

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

CREATE TABLE "list_of_ministers_for_employment" (
  "order" text,
  "minister" text,
  "party" text,
  "prime_minister" text,
  "term_start" text,
  "term_end" text,
  "term_in_office" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Minister that served for 307 days?`:
```sql
                SELECT "minister" FROM "list_of_ministers_for_employment" WHERE "term_in_office"='307 days';
```
## Task
Generate a SQL query to answer the following question:
`what ceremony did big titty milfs work in`

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

CREATE TABLE "awards_and_nominations" (
  "year" real,
  "ceremony" text,
  "result" text,
  "award" text,
  "work" text
);
### SQL
Given the database schema, here is the SQL query that answers `what ceremony did big titty milfs work in`:
```sql
                SELECT "ceremony" FROM "awards_and_nominations" WHERE "work"='big titty milfs';
```
## Task
Generate a SQL query to answer the following question:
`What was the end result for 28 February 2001?`

### 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 was the end result for 28 February 2001?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "date"='28 february 2001';
```
## Task
Generate a SQL query to answer the following question:
`How many yards did Davin Meggett have with more than 9 Rec.?`

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

CREATE TABLE "receiving" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many yards did Davin Meggett have with more than 9 Rec.?`:
```sql
                SELECT SUM("yards") FROM "receiving" WHERE "player"='davin meggett' AND "rec">9;
```
## Task
Generate a SQL query to answer the following question:
`What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?`

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

CREATE TABLE "receiving" (
  "player" text,
  "rec" real,
  "yards" real,
  "avg" real,
  "long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is Darrius Heyward-Bey's average with more than 20 yards and less than 80 long?`:
```sql
                SELECT COUNT("avg") FROM "receiving" WHERE "yards">20 AND "player"='darrius heyward-bey' AND "long"<80;
```
## Task
Generate a SQL query to answer the following question:
`How many points are associated with a Time/Retired of +10.131 secs?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are associated with a Time/Retired of +10.131 secs?`:
```sql
                SELECT COUNT("points") FROM "race" WHERE "time_retired"='+10.131 secs';
```
## Task
Generate a SQL query to answer the following question:
`What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the grid associated witha Time/Retired of +8.180 secs, and under 47 laps?`:
```sql
                SELECT SUM("grid") FROM "race" WHERE "time_retired"='+8.180 secs' AND "laps"<47;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest drawn for points over 545?`

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

CREATE TABLE "top_league_table" (
  "season" text,
  "order" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "penalties" real,
  "points_for" real,
  "points_against" real,
  "points_diff" real,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest drawn for points over 545?`:
```sql
                SELECT MAX("drawn") FROM "top_league_table" WHERE "points_for">545;
```
## Task
Generate a SQL query to answer the following question:
`What's the average loss when the points were 545?`

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

CREATE TABLE "top_league_table" (
  "season" text,
  "order" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "penalties" real,
  "points_for" real,
  "points_against" real,
  "points_diff" real,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the average loss when the points were 545?`:
```sql
                SELECT AVG("lost") FROM "top_league_table" WHERE "points_for"=545;
```
## Task
Generate a SQL query to answer the following question:
`How many games were lost when the order was 2nd and the play was more than 13`

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

CREATE TABLE "top_league_table" (
  "season" text,
  "order" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "penalties" real,
  "points_for" real,
  "points_against" real,
  "points_diff" real,
  "coach" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games were lost when the order was 2nd and the play was more than 13`:
```sql
                SELECT COUNT("lost") FROM "top_league_table" WHERE "order"='2nd' AND "played">13;
```
## Task
Generate a SQL query to answer the following question:
`Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least rank with bronze of 2, gold more than 0 and nation of ynys môn/anglesey with total more than 8`:
```sql
                SELECT MIN("rank") FROM "medal_table" WHERE "bronze"=2 AND "gold">0 AND "nation"='ynys môn/anglesey' AND "total">8;
```
## Task
Generate a SQL query to answer the following question:
`Name the least total with rank less than 7, gold more than 16 and bronze less than 29`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least total with rank less than 7, gold more than 16 and bronze less than 29`:
```sql
                SELECT MIN("total") FROM "medal_table" WHERE "rank"<7 AND "gold">16 AND "bronze"<29;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of total with silver of 6, bronze more than 5 and gold less than 4`

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

CREATE TABLE "medal_table" (
  "rank" real,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of total with silver of 6, bronze more than 5 and gold less than 4`:
```sql
                SELECT COUNT("total") FROM "medal_table" WHERE "silver"=6 AND "bronze">5 AND "gold"<4;
```
## Task
Generate a SQL query to answer the following question:
`What score has a game greater than 11 on October 30?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What score has a game greater than 11 on October 30?`:
```sql
                SELECT "score" FROM "schedule_and_results" WHERE "game">11 AND "october"=30;
```
## Task
Generate a SQL query to answer the following question:
`What October has 0-2-2 as the record?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What October has 0-2-2 as the record?`:
```sql
                SELECT "october" FROM "schedule_and_results" WHERE "record"='0-2-2';
```
## Task
Generate a SQL query to answer the following question:
`What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8?`

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

CREATE TABLE "schedule_and_results" (
  "game" real,
  "october" real,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What average game has @ florida panthers as the opponent, 0-1-2 as the record, with an october greater than 8?`:
```sql
                SELECT AVG("game") FROM "schedule_and_results" WHERE "opponent"='@ florida panthers' AND "record"='0-1-2' AND "october">8;
```
## Task
Generate a SQL query to answer the following question:
`Which Lost has Games of 64, and Champs smaller than 0?`

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

CREATE TABLE "european_nations_cup_all_time_table_2000" (
  "champs" real,
  "games" real,
  "draw" real,
  "lost" real,
  "win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lost has Games of 64, and Champs smaller than 0?`:
```sql
                SELECT AVG("lost") FROM "european_nations_cup_all_time_table_2000" WHERE "games"=64 AND "champs"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Draw is the lowest one that has Champs smaller than 0?`

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

CREATE TABLE "european_nations_cup_all_time_table_2000" (
  "champs" real,
  "games" real,
  "draw" real,
  "lost" real,
  "win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Draw is the lowest one that has Champs smaller than 0?`:
```sql
                SELECT MIN("draw") FROM "european_nations_cup_all_time_table_2000" WHERE "champs"<0;
```
## Task
Generate a SQL query to answer the following question:
`Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3?`

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

CREATE TABLE "european_nations_cup_all_time_table_2000" (
  "champs" real,
  "games" real,
  "draw" real,
  "lost" real,
  "win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Win/Lose Percentage has Champs larger than 0, and a Draw larger than 3?`:
```sql
                SELECT "win_lose_percentage" FROM "european_nations_cup_all_time_table_2000" WHERE "champs">0 AND "draw">3;
```
## Task
Generate a SQL query to answer the following question:
`Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?`

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

CREATE TABLE "european_nations_cup_all_time_table_2000" (
  "champs" real,
  "games" real,
  "draw" real,
  "lost" real,
  "win_lose_percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Champs is the average one that has a Draw larger than 2, and Games smaller than 60?`:
```sql
                SELECT AVG("champs") FROM "european_nations_cup_all_time_table_2000" WHERE "draw">2 AND "games"<60;
```
## Task
Generate a SQL query to answer the following question:
`What is the launch date for the Ushio dd-54?`

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

CREATE TABLE "type_ii" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the launch date for the Ushio dd-54?`:
```sql
                SELECT "launched" FROM "type_ii" WHERE "name"='ushio dd-54';
```
## Task
Generate a SQL query to answer the following question:
`Which name has a Kanji of 朧?`

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

CREATE TABLE "type_ii" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has a Kanji of 朧?`:
```sql
                SELECT "name" FROM "type_ii" WHERE "kanji"='朧';
```
## Task
Generate a SQL query to answer the following question:
`What is the Kanji for the Ayanami dd-45?`

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

CREATE TABLE "type_ii" (
  "kanji" text,
  "name" text,
  "builder" text,
  "laid_down" text,
  "launched" text,
  "completed" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kanji for the Ayanami dd-45?`:
```sql
                SELECT "kanji" FROM "type_ii" WHERE "name"='ayanami dd-45';
```
## Task
Generate a SQL query to answer the following question:
`size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?`

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

CREATE TABLE "interval_size" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text
);
### SQL
Given the database schema, here is the SQL query that answers `size (steps) that has a size (cents) of 58.54, and a just ratio of 28:27, and a just (cents) larger than 62.96 is what total number?`:
```sql
                SELECT COUNT("size_steps") FROM "interval_size" WHERE "size_cents"=58.54 AND "just_ratio"='28:27' AND "just_cents">62.96;
```
## Task
Generate a SQL query to answer the following question:
`size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?`

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

CREATE TABLE "interval_size" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text
);
### SQL
Given the database schema, here is the SQL query that answers `size (steps) of 15, and a just (cents) larger than 435.08 is what highest size (cents)?`:
```sql
                SELECT MAX("size_cents") FROM "interval_size" WHERE "size_steps"=15 AND "just_cents">435.08;
```
## Task
Generate a SQL query to answer the following question:
`ratio of 16:13 has how many highest size (steps)?`

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

CREATE TABLE "interval_size" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text
);
### SQL
Given the database schema, here is the SQL query that answers `ratio of 16:13 has how many highest size (steps)?`:
```sql
                SELECT MAX("size_steps") FROM "interval_size" WHERE "just_ratio"='16:13';
```
## Task
Generate a SQL query to answer the following question:
`ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?`

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

CREATE TABLE "interval_size" (
  "interval_name" text,
  "size_steps" real,
  "size_cents" real,
  "just_ratio" text,
  "just_cents" real,
  "error" text
);
### SQL
Given the database schema, here is the SQL query that answers `ratio of 15:14, and a just (cents) larger than 119.44 is what average size (cents)?`:
```sql
                SELECT AVG("size_cents") FROM "interval_size" WHERE "just_ratio"='15:14' AND "just_cents">119.44;
```
## Task
Generate a SQL query to answer the following question:
`Who was the home team for the match at Stadion pod Vrmcem?`

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

CREATE TABLE "schedule" (
  "venue" text,
  "home" text,
  "guest" text,
  "score_first_match" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the home team for the match at Stadion pod Vrmcem?`:
```sql
                SELECT "home" FROM "schedule" WHERE "venue"='stadion pod vrmcem';
```
## Task
Generate a SQL query to answer the following question:
`Who were the guest team wehn the match score was 3:0 (0:2)?`

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

CREATE TABLE "schedule" (
  "venue" text,
  "home" text,
  "guest" text,
  "score_first_match" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the guest team wehn the match score was 3:0 (0:2)?`:
```sql
                SELECT "guest" FROM "schedule" WHERE "score_first_match"='3:0 (0:2)';
```
## Task
Generate a SQL query to answer the following question:
`What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Picture Coding Types have Chroma Format of 4:2:2 or 4:2:0 and the Name of 4:2:2 profile?`:
```sql
                SELECT "picture_coding_types" FROM "mpeg_2_profiles" WHERE "chroma_format"='4:2:2 or 4:2:0' AND "name"='4:2:2 profile';
```
## Task
Generate a SQL query to answer the following question:
`Name the Intra DC Precision that has the Name main profile?`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the Intra DC Precision that has the Name main profile?`:
```sql
                SELECT "intra_dc_precision" FROM "mpeg_2_profiles" WHERE "name"='main profile';
```
## Task
Generate a SQL query to answer the following question:
`What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile?`

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

CREATE TABLE "mpeg_2_profiles" (
  "abbr" text,
  "name" text,
  "picture_coding_types" text,
  "chroma_format" text,
  "aspect_ratios" text,
  "scalable_modes" text,
  "intra_dc_precision" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Chroma Format that has both Picture Coding Types of i, p, b, and the Name of main profile?`:
```sql
                SELECT "chroma_format" FROM "mpeg_2_profiles" WHERE "picture_coding_types"='i, p, b' AND "name"='main profile';
```
## Task
Generate a SQL query to answer the following question:
`What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?`

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

CREATE TABLE "players_of_the_week" (
  "week" text,
  "division" text,
  "team" text,
  "player" text,
  "school" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?`:
```sql
                SELECT "player" FROM "players_of_the_week" WHERE "division"='west' AND "team"='special teams' AND "school"='toledo western michigan';
```
## Task
Generate a SQL query to answer the following question:
`What are the lowest wins for Australia?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the lowest wins for Australia?`:
```sql
                SELECT MIN("wins") FROM "leaders" WHERE "country"='australia';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest rank for greg norman with Earnings less than $10,484,065?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest rank for greg norman with Earnings less than $10,484,065?`:
```sql
                SELECT MAX("rank") FROM "leaders" WHERE "player"='greg norman' AND "earnings"<'10,484,065';
```
## Task
Generate a SQL query to answer the following question:
`how many wins did players earning less than $10,484,065 have?`

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

CREATE TABLE "leaders" (
  "rank" real,
  "player" text,
  "country" text,
  "earnings" real,
  "wins" real
);
### SQL
Given the database schema, here is the SQL query that answers `how many wins did players earning less than $10,484,065 have?`:
```sql
                SELECT SUM("wins") FROM "leaders" WHERE "earnings"<'10,484,065';
```
## Task
Generate a SQL query to answer the following question:
`What is the name of the metropolitan that has a population larger than 35,082 and formed after 1897?`

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

CREATE TABLE "metropolitan_lg_as" (
  "name" text,
  "council_seat" text,
  "formed" real,
  "population_2010" real,
  "area" text,
  "website" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the metropolitan that has a population larger than 35,082 and formed after 1897?`:
```sql
                SELECT "name" FROM "metropolitan_lg_as" WHERE "population_2010">'35,082' AND "formed">1897;
```
## Task
Generate a SQL query to answer the following question:
`How many winners did Minas, which has 0 third places, have?`

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

CREATE TABLE "by_club" (
  "team" text,
  "winners" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners did Minas, which has 0 third places, have?`:
```sql
                SELECT "winners" FROM "by_club" WHERE "third_place"='0' AND "team"='minas';
```
## Task
Generate a SQL query to answer the following question:
`How many winners did Halcones uv xalapa have?`

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

CREATE TABLE "by_club" (
  "team" text,
  "winners" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many winners did Halcones uv xalapa have?`:
```sql
                SELECT "winners" FROM "by_club" WHERE "team"='halcones uv xalapa';
```
## Task
Generate a SQL query to answer the following question:
`How many runners-up did Espartanos de Margarita have?`

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

CREATE TABLE "by_club" (
  "team" text,
  "winners" text,
  "runners_up" text,
  "third_place" text,
  "fourth_place" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many runners-up did Espartanos de Margarita have?`:
```sql
                SELECT "runners_up" FROM "by_club" WHERE "team"='espartanos de margarita';
```
## Task
Generate a SQL query to answer the following question:
`Which Opponent has Attendances of 60,594?`

### 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,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Opponent has Attendances of 60,594?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='60,594';
```
## Task
Generate a SQL query to answer the following question:
`When has a Result of l 27-7 and an Opponent of at minnesota vikings?`

### 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,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has a Result of l 27-7 and an Opponent of at minnesota vikings?`:
```sql
                SELECT "date" FROM "schedule" WHERE "result"='l 27-7' AND "opponent"='at minnesota vikings';
```
## Task
Generate a SQL query to answer the following question:
`When has  a Week of 9?`

### 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,
  "venue" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `When has  a Week of 9?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=9;
```
## Task
Generate a SQL query to answer the following question:
`What date did the Steelers play against the New York Jets?`

### 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,
  "time_et" text,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date did the Steelers play against the New York Jets?`:
```sql
                SELECT "date" FROM "schedule" WHERE "opponent"='new york jets';
```
## Task
Generate a SQL query to answer the following question:
`What time did the game start during week 1?`

### 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,
  "time_et" text,
  "result" text,
  "record" text,
  "game_site" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time did the game start during week 1?`:
```sql
                SELECT "time_et" FROM "schedule" WHERE "week"=1;
```
## Task
Generate a SQL query to answer the following question:
`How many laps for mi-jack conquest racing when they went off course?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps for mi-jack conquest racing when they went off course?`:
```sql
                SELECT SUM("laps") FROM "race" WHERE "team"='mi-jack conquest racing' AND "time_retired"='off course';
```
## Task
Generate a SQL query to answer the following question:
`How many laps are associated with a grid greater than 8, under 11 points, and will power?`

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

CREATE TABLE "race" (
  "driver" text,
  "team" text,
  "laps" real,
  "time_retired" text,
  "grid" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps are associated with a grid greater than 8, under 11 points, and will power?`:
```sql
                SELECT COUNT("laps") FROM "race" WHERE "grid">8 AND "points"<11 AND "driver"='will power';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "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 Women's doubles the year that there was no competition in both the Men's doubles and the Men's singles?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='no competition';
```
## Task
Generate a SQL query to answer the following question:
`What year was there no competition in Women's singles?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "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 year was there no competition in Women's singles?`:
```sql
                SELECT "year" FROM "past_winners" WHERE "women_s_singles"='no competition';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles in 2001?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "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 Women's doubles in 2001?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "year"='2001';
```
## Task
Generate a SQL query to answer the following question:
`Who won the Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles?`

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

CREATE TABLE "past_winners" (
  "year" text,
  "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 Women's doubles the year that there was no competition in the Men's doubles and Arthur Chatschatourow won the Men's singles?`:
```sql
                SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='no competition' AND "men_s_singles"='arthur chatschatourow';
```
## Task
Generate a SQL query to answer the following question:
`Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14`

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

CREATE TABLE "medals_summary" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the average Bronze when silver is more than 3, gold is more than 1 and the total is 14`:
```sql
                SELECT AVG("bronze") FROM "medals_summary" WHERE "gold">1 AND "total"=14 AND "silver">3;
```
## Task
Generate a SQL query to answer the following question:
`Name the total number of total for rank of 7 and bronze less than 1`

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

CREATE TABLE "medals_summary" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number of total for rank of 7 and bronze less than 1`:
```sql
                SELECT COUNT("total") FROM "medals_summary" WHERE "rank"='7' AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`Name the most silver with bronze more than 1 and gold more than 1 with total less than 7`

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

CREATE TABLE "medals_summary" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most silver with bronze more than 1 and gold more than 1 with total less than 7`:
```sql
                SELECT MAX("silver") FROM "medals_summary" WHERE "bronze">1 AND "total"<7 AND "gold">1;
```
## Task
Generate a SQL query to answer the following question:
`Name the sum of total for gold less than 1 and bronze of 3`

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

CREATE TABLE "medals_summary" (
  "rank" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the sum of total for gold less than 1 and bronze of 3`:
```sql
                SELECT SUM("total") FROM "medals_summary" WHERE "gold"<1 AND "bronze"=3;
```