cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`what team played on may 20 on the home side`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team played on may 20 on the home side`:
```sql
                SELECT "home_team" FROM "nba_finals" WHERE "date"='may 20';
```
## Task
Generate a SQL query to answer the following question:
`what team played in game 2`

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

CREATE TABLE "nba_finals" (
  "game" text,
  "date" text,
  "home_team" text,
  "result" text,
  "road_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what team played in game 2`:
```sql
                SELECT "road_team" FROM "nba_finals" WHERE "game"='game 2';
```
## Task
Generate a SQL query to answer the following question:
`Which Raison Blue has the highest nicotine?`

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

CREATE TABLE "lineup" (
  "name" text,
  "size" text,
  "price" text,
  "quantity" real,
  "released" text,
  "nicotine" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Raison Blue has the highest nicotine?`:
```sql
                SELECT MAX("nicotine") FROM "lineup" WHERE "name"='raison blue';
```
## Task
Generate a SQL query to answer the following question:
`For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?`

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

CREATE TABLE "lineup" (
  "name" text,
  "size" text,
  "price" text,
  "quantity" real,
  "released" text,
  "nicotine" real
);
### SQL
Given the database schema, here is the SQL query that answers `For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?`:
```sql
                SELECT MIN("quantity") FROM "lineup" WHERE "name"='raison blue' AND "nicotine">0.30000000000000004;
```
## Task
Generate a SQL query to answer the following question:
`What was the result for the fil Paljas?`

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

CREATE TABLE "submissions" (
  "year_ceremony" text,
  "film_title" text,
  "language_s" text,
  "director" text,
  "result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result for the fil Paljas?`:
```sql
                SELECT "result" FROM "submissions" WHERE "film_title"='paljas';
```
## Task
Generate a SQL query to answer the following question:
`In what year was the rank less than 6 for Damac Heights?`

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

CREATE TABLE "under_construction" (
  "rank" real,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the rank less than 6 for Damac Heights?`:
```sql
                SELECT "year" FROM "under_construction" WHERE "rank"<6 AND "name"='damac heights';
```
## Task
Generate a SQL query to answer the following question:
`What is the height for rank greater than 10 in Tameer Tower?`

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

CREATE TABLE "under_construction" (
  "rank" real,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the height for rank greater than 10 in Tameer Tower?`:
```sql
                SELECT "height_m_ft" FROM "under_construction" WHERE "rank">10 AND "name"='tameer tower';
```
## Task
Generate a SQL query to answer the following question:
`What was the earliest year with rank 20 and less than 60 floors?`

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

CREATE TABLE "under_construction" (
  "rank" real,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the earliest year with rank 20 and less than 60 floors?`:
```sql
                SELECT MIN("year") FROM "under_construction" WHERE "rank"=20 AND "floors"<60;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest floors with rank greater than 1 in Conrad Dubai?`

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

CREATE TABLE "under_construction" (
  "rank" real,
  "name" text,
  "height_m_ft" text,
  "floors" real,
  "year" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest floors with rank greater than 1 in Conrad Dubai?`:
```sql
                SELECT MAX("floors") FROM "under_construction" WHERE "rank">1 AND "name"='conrad dubai';
```
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Driver of satrio hermanto?`

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

CREATE TABLE "main_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Driver of satrio hermanto?`:
```sql
                SELECT SUM("laps") FROM "main_race" WHERE "driver"='satrio hermanto';
```
## Task
Generate a SQL query to answer the following question:
`Which Time has a Grid of 19?`

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

CREATE TABLE "main_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Time has a Grid of 19?`:
```sql
                SELECT "time" FROM "main_race" WHERE "grid"=19;
```
## Task
Generate a SQL query to answer the following question:
`Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?`

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

CREATE TABLE "main_race" (
  "team" text,
  "driver" text,
  "laps" real,
  "time" text,
  "grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?`:
```sql
                SELECT MIN("grid") FROM "main_race" WHERE "team"='germany' AND "laps"<45;
```
## Task
Generate a SQL query to answer the following question:
`WHich team draft the player who went to college in Washington?`

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

CREATE TABLE "nfl_draft" (
  "round_num_overall" text,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `WHich team draft the player who went to college in Washington?`:
```sql
                SELECT "nfl_team" FROM "nfl_draft" WHERE "college"='washington';
```
## Task
Generate a SQL query to answer the following question:
`What position did the palyer drafted out of Washington play?`

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

CREATE TABLE "nfl_draft" (
  "round_num_overall" text,
  "nfl_team" text,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position did the palyer drafted out of Washington play?`:
```sql
                SELECT "position" FROM "nfl_draft" WHERE "college"='washington';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of Gold medals when there are 5 bronze medals?`

### 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 `What is the average number of Gold medals when there are 5 bronze medals?`:
```sql
                SELECT AVG("gold") FROM "medal_table" WHERE "bronze"=5;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest amount of bronze medals when the rank was larger than 9?`

### 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 `What is the highest amount of bronze medals when the rank was larger than 9?`:
```sql
                SELECT MAX("bronze") FROM "medal_table" WHERE "rank">9;
```
## Task
Generate a SQL query to answer the following question:
`What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?`

### 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 `What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?`:
```sql
                SELECT MIN("bronze") FROM "medal_table" WHERE "silver">0 AND "rank"<4 AND "nation"='jamaica' AND "total"<22;
```
## Task
Generate a SQL query to answer the following question:
`Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "5_hoops" real,
  "3_balls_2_ribbons" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?`:
```sql
                SELECT MAX("3_balls_2_ribbons") FROM "groups_all_around" WHERE "nation"='bulgaria' AND "place">1;
```
## Task
Generate a SQL query to answer the following question:
`5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "5_hoops" real,
  "3_balls_2_ribbons" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?`:
```sql
                SELECT SUM("5_hoops") FROM "groups_all_around" WHERE "place">7 AND "total">38.525;
```
## Task
Generate a SQL query to answer the following question:
`5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "5_hoops" real,
  "3_balls_2_ribbons" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `5 Hoops larger than 19.325, and a Total of 39.4, and a Place larger than 2 had what total number of 3 balls and 2 ribbons?`:
```sql
                SELECT COUNT("3_balls_2_ribbons") FROM "groups_all_around" WHERE "5_hoops">19.325 AND "total"=39.4 AND "place">2;
```
## Task
Generate a SQL query to answer the following question:
`Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?`

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

CREATE TABLE "groups_all_around" (
  "place" real,
  "nation" text,
  "5_hoops" real,
  "3_balls_2_ribbons" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Total of 38.55, and a 3 Balls, 2 Ribbons smaller than 19.4 had what lowest place?`:
```sql
                SELECT MIN("place") FROM "groups_all_around" WHERE "total"=38.55 AND "3_balls_2_ribbons"<19.4;
```
## Task
Generate a SQL query to answer the following question:
`what voice acter played tien`

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

CREATE TABLE "cast" (
  "character_name" text,
  "voice_actor_japanese" text,
  "voice_actor_english_1997_saban" text,
  "voice_actor_english_1998_pioneer" text,
  "voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what voice acter played tien`:
```sql
                SELECT "voice_actor_japanese" FROM "cast" WHERE "character_name"='tien';
```
## Task
Generate a SQL query to answer the following question:
`what character did Laara sadiq play`

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

CREATE TABLE "cast" (
  "character_name" text,
  "voice_actor_japanese" text,
  "voice_actor_english_1997_saban" text,
  "voice_actor_english_1998_pioneer" text,
  "voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did Laara sadiq play`:
```sql
                SELECT "character_name" FROM "cast" WHERE "voice_actor_english_1998_pioneer"='laara sadiq';
```
## Task
Generate a SQL query to answer the following question:
`what character did Masaharu satou play`

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

CREATE TABLE "cast" (
  "character_name" text,
  "voice_actor_japanese" text,
  "voice_actor_english_1997_saban" text,
  "voice_actor_english_1998_pioneer" text,
  "voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did Masaharu satou play`:
```sql
                SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='masaharu satou';
```
## Task
Generate a SQL query to answer the following question:
`what character did dave ward play`

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

CREATE TABLE "cast" (
  "character_name" text,
  "voice_actor_japanese" text,
  "voice_actor_english_1997_saban" text,
  "voice_actor_english_1998_pioneer" text,
  "voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did dave ward play`:
```sql
                SELECT "voice_actor_english_1998_pioneer" FROM "cast" WHERE "voice_actor_english_1997_saban"='dave ward';
```
## Task
Generate a SQL query to answer the following question:
`what character did naoko watanabe play`

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

CREATE TABLE "cast" (
  "character_name" text,
  "voice_actor_japanese" text,
  "voice_actor_english_1997_saban" text,
  "voice_actor_english_1998_pioneer" text,
  "voice_actor_english_2006_fu_nimation" text
);
### SQL
Given the database schema, here is the SQL query that answers `what character did naoko watanabe play`:
```sql
                SELECT "character_name" FROM "cast" WHERE "voice_actor_japanese"='naoko watanabe';
```
## Task
Generate a SQL query to answer the following question:
`At what Location was Miss World 2009?`

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

CREATE TABLE "titleholders" (
  "year" real,
  "country_territory" text,
  "miss_world" text,
  "national_title" text,
  "location" text
);
### SQL
Given the database schema, here is the SQL query that answers `At what Location was Miss World 2009?`:
```sql
                SELECT "location" FROM "titleholders" WHERE "year"=2009;
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the 1996 Emarate cup on March 25, 1996?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the 1996 Emarate cup on March 25, 1996?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "competition"='1996 emarate cup' AND "date"='march 25, 1996';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was on August 11, 1996?`

### 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 was on August 11, 1996?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "date"='august 11, 1996';
```
## Task
Generate a SQL query to answer the following question:
`Which competition was in Dubai?`

### 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 was in Dubai?`:
```sql
                SELECT "competition" FROM "international_goals" WHERE "venue"='dubai';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the match in Bangkok?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the match in Bangkok?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "venue"='bangkok';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the match with a result of 4-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 `What is the date of the match with a result of 4-0?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "result"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the match with a 4-0 result?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the match with a 4-0 result?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "result"='4-0';
```
## Task
Generate a SQL query to answer the following question:
`Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?`:
```sql
                SELECT "name" FROM "atlanta_falcons_draft_history" WHERE "overall">164 AND "pick_num">2 AND "position"='running back' AND "round"=16;
```
## Task
Generate a SQL query to answer the following question:
`Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?`:
```sql
                SELECT "college" FROM "atlanta_falcons_draft_history" WHERE "round">4 AND "overall"<237 AND "name"='ted cottrell';
```
## Task
Generate a SQL query to answer the following question:
`What is the smallest overall for Oregon State?`

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

CREATE TABLE "atlanta_falcons_draft_history" (
  "round" real,
  "pick_num" real,
  "overall" real,
  "name" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the smallest overall for Oregon State?`:
```sql
                SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "college"='oregon state';
```
## Task
Generate a SQL query to answer the following question:
`What is the class of the qb, Josh Riddell?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "position" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the class of the qb, Josh Riddell?`:
```sql
                SELECT "class" FROM "roster" WHERE "position"='qb' AND "name"='josh riddell';
```
## Task
Generate a SQL query to answer the following question:
`What position does Jamar Chaney play?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "position" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does Jamar Chaney play?`:
```sql
                SELECT "position" FROM "roster" WHERE "name"='jamar chaney';
```
## Task
Generate a SQL query to answer the following question:
`What hometown is Kyle love from?`

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

CREATE TABLE "roster" (
  "name" text,
  "height" text,
  "weight" text,
  "class" text,
  "position" text,
  "hometown" text
);
### SQL
Given the database schema, here is the SQL query that answers `What hometown is Kyle love from?`:
```sql
                SELECT "hometown" FROM "roster" WHERE "name"='kyle love';
```
## Task
Generate a SQL query to answer the following question:
`Which Attendance has a Home of philadelphia, and Points smaller than 23?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Attendance has a Home of philadelphia, and Points smaller than 23?`:
```sql
                SELECT SUM("attendance") FROM "game_log" WHERE "home"='philadelphia' AND "points"<23;
```
## Task
Generate a SQL query to answer the following question:
`Which Visitor has a Record of 9–12–5?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Visitor has a Record of 9–12–5?`:
```sql
                SELECT "visitor" FROM "game_log" WHERE "record"='9–12–5';
```
## Task
Generate a SQL query to answer the following question:
`Which Date has a Visitor of boston?`

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

CREATE TABLE "game_log" (
  "date" text,
  "visitor" text,
  "score" text,
  "home" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Visitor of boston?`:
```sql
                SELECT "date" FROM "game_log" WHERE "visitor"='boston';
```
## Task
Generate a SQL query to answer the following question:
`What is the date for the grass surface final against Nathan Healey?`

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

CREATE TABLE "futures_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date for the grass surface final against Nathan Healey?`:
```sql
                SELECT "date" FROM "futures_titles" WHERE "surface"='grass' AND "opponent_in_the_final"='nathan healey';
```
## Task
Generate a SQL query to answer the following question:
`What was the score of the final against Dane Propoggia?`

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

CREATE TABLE "futures_titles" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score of the final against Dane Propoggia?`:
```sql
                SELECT "score" FROM "futures_titles" WHERE "opponent_in_the_final"='dane propoggia';
```
## Task
Generate a SQL query to answer the following question:
`What was the total score when the E score was larger than 9.6 and the A score was 6?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total score when the E score was larger than 9.6 and the A score was 6?`:
```sql
                SELECT "total" FROM "groups_10_clubs" WHERE "e_score">9.6 AND "a_score"=6;
```
## Task
Generate a SQL query to answer the following question:
`What was the average E score when the T score was less than 4?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average E score when the T score was less than 4?`:
```sql
                SELECT AVG("e_score") FROM "groups_10_clubs" WHERE "t_score"<4;
```
## Task
Generate a SQL query to answer the following question:
`What was the average T score when the E score was larger than 9.6 and the team was from Spain?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the average T score when the E score was larger than 9.6 and the team was from Spain?`:
```sql
                SELECT AVG("t_score") FROM "groups_10_clubs" WHERE "nation"='spain' AND "e_score">9.6;
```
## Task
Generate a SQL query to answer the following question:
`What was the total number of A scores for Japan when the T score was more than 4?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total number of A scores for Japan when the T score was more than 4?`:
```sql
                SELECT COUNT("a_score") FROM "groups_10_clubs" WHERE "nation"='japan' AND "t_score">4;
```
## Task
Generate a SQL query to answer the following question:
`What was the sum of the E scores when the total score was 19.466?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the sum of the E scores when the total score was 19.466?`:
```sql
                SELECT SUM("e_score") FROM "groups_10_clubs" WHERE "total"=19.466;
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of E scores when the total score was 19.7 and the A score was more than 6?`

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

CREATE TABLE "groups_10_clubs" (
  "nation" text,
  "t_score" real,
  "a_score" real,
  "e_score" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of E scores when the total score was 19.7 and the A score was more than 6?`:
```sql
                SELECT COUNT("e_score") FROM "groups_10_clubs" WHERE "total"=19.7 AND "a_score">6;
```
## Task
Generate a SQL query to answer the following question:
`What is the highest number of draws with 14 points and less than 7 games?`

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

CREATE TABLE "world_championship_group_c_netherlands" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of draws with 14 points and less than 7 games?`:
```sql
                SELECT MAX("drawn") FROM "world_championship_group_c_netherlands" WHERE "points"=14 AND "games"<7;
```
## Task
Generate a SQL query to answer the following question:
`What was the attendance at the game with a record of 4-5?`

### 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,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance at the game with a record of 4-5?`:
```sql
                SELECT "attendance" FROM "schedule" WHERE "record"='4-5';
```
## Task
Generate a SQL query to answer the following question:
`What was the date of the week 16 game?`

### 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,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date of the week 16 game?`:
```sql
                SELECT "date" FROM "schedule" WHERE "week"=16;
```
## Task
Generate a SQL query to answer the following question:
`What was the record at the game with a result of W 13-12 after week 4?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record at the game with a result of W 13-12 after week 4?`:
```sql
                SELECT "record" FROM "schedule" WHERE "week">4 AND "result"='w 13-12';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game attended by 62,019 before week 17?`

### 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,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game attended by 62,019 before week 17?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "week"<17 AND "attendance"='62,019';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface for january 8, 2001`

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

CREATE TABLE "atp_doubles_finals_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for january 8, 2001`:
```sql
                SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "date"='january 8, 2001';
```
## Task
Generate a SQL query to answer the following question:
`Name the outcome for jordan kerr july 19, 2004`

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

CREATE TABLE "atp_doubles_finals_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the outcome for jordan kerr july 19, 2004`:
```sql
                SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='jordan kerr' AND "date"='july 19, 2004';
```
## Task
Generate a SQL query to answer the following question:
`Name the score for opponents of nathan healey igor kunitsyn`

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

CREATE TABLE "atp_doubles_finals_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the score for opponents of nathan healey igor kunitsyn`:
```sql
                SELECT "score" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='nathan healey igor kunitsyn';
```
## Task
Generate a SQL query to answer the following question:
`Name the outcome for opponents of jonas björkman john mcenroe`

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

CREATE TABLE "atp_doubles_finals_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the outcome for opponents of jonas björkman john mcenroe`:
```sql
                SELECT "outcome" FROM "atp_doubles_finals_13_6_7" WHERE "opponents_in_the_final"='jonas björkman john mcenroe';
```
## Task
Generate a SQL query to answer the following question:
`Name the surface for paul goldstein and date of october 2, 2006`

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

CREATE TABLE "atp_doubles_finals_13_6_7" (
  "outcome" text,
  "date" text,
  "tournament" text,
  "surface" text,
  "partnering" text,
  "opponents_in_the_final" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface for paul goldstein and date of october 2, 2006`:
```sql
                SELECT "surface" FROM "atp_doubles_finals_13_6_7" WHERE "partnering"='paul goldstein' AND "date"='october 2, 2006';
```
## Task
Generate a SQL query to answer the following question:
`Which Games have a Drawn smaller than 1, and a Lost smaller than 1?`

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

CREATE TABLE "world_championship_group_c_spain" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Games have a Drawn smaller than 1, and a Lost smaller than 1?`:
```sql
                SELECT "games" FROM "world_championship_group_c_spain" WHERE "drawn"<1 AND "lost"<1;
```
## Task
Generate a SQL query to answer the following question:
`Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?`

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

CREATE TABLE "world_championship_group_c_spain" (
  "games" real,
  "drawn" real,
  "lost" real,
  "points_difference" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Drawn is the lowest one that has a Lost of 5, and Points larger than 4?`:
```sql
                SELECT MIN("drawn") FROM "world_championship_group_c_spain" WHERE "lost"=5 AND "points">4;
```
## Task
Generate a SQL query to answer the following question:
`Which Government has 57 seats?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "government" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Government has 57 seats?`:
```sql
                SELECT "government" FROM "general_election_results" WHERE "seats"=57;
```
## Task
Generate a SQL query to answer the following question:
`How many seats does the 6th Dail have?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "government" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seats does the 6th Dail have?`:
```sql
                SELECT COUNT("seats") FROM "general_election_results" WHERE "d_il"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What is the number of the dail with 61 seats?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "government" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of the dail with 61 seats?`:
```sql
                SELECT "d_il" FROM "general_election_results" WHERE "seats"=61;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of seats from the election with 27.0% of votes?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "government" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of seats from the election with 27.0% of votes?`:
```sql
                SELECT MIN("seats") FROM "general_election_results" WHERE "share_of_votes"='27.0%';
```
## Task
Generate a SQL query to answer the following question:
`What is the 6th dail share of votes?`

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

CREATE TABLE "general_election_results" (
  "election" text,
  "d_il" text,
  "share_of_votes" text,
  "seats" real,
  "government" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the 6th dail share of votes?`:
```sql
                SELECT "share_of_votes" FROM "general_election_results" WHERE "d_il"='6th';
```
## Task
Generate a SQL query to answer the following question:
`What was the highest week when the record was 1-3?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest week when the record was 1-3?`:
```sql
                SELECT MAX("week") FROM "schedule" WHERE "record"='1-3';
```
## Task
Generate a SQL query to answer the following question:
`Who was the opponent at the game attended by 62,657?`

### 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,
  "game_site" text,
  "record" text,
  "attendance" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent at the game attended by 62,657?`:
```sql
                SELECT "opponent" FROM "schedule" WHERE "attendance"='62,657';
```
## Task
Generate a SQL query to answer the following question:
`What is the year built for the Fay No. 4?`

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

CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year built for the Fay No. 4?`:
```sql
                SELECT MAX("year_built") FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "name"='fay no. 4';
```
## Task
Generate a SQL query to answer the following question:
`Where the length is 91', what is the year built?`

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

CREATE TABLE "inland_steam_and_river_boats_of_coos_bay" (
  "name" text,
  "type" text,
  "year_built" real,
  "where_built" text,
  "length" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where the length is 91', what is the year built?`:
```sql
                SELECT "year_built" FROM "inland_steam_and_river_boats_of_coos_bay" WHERE "length"='91''';
```
## Task
Generate a SQL query to answer the following question:
`What is the address for the Scorpions' mascot?`

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

CREATE TABLE "elementary_schools_grades_k_6" (
  "elementary_schools" text,
  "mascot" text,
  "address" text,
  "principal_2013_2014" text,
  "assistant_principal_2013_2014" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the address for the Scorpions' mascot?`:
```sql
                SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='scorpions';
```
## Task
Generate a SQL query to answer the following question:
`What is the address for the assistant principal named Kelly Papke?`

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

CREATE TABLE "elementary_schools_grades_k_6" (
  "elementary_schools" text,
  "mascot" text,
  "address" text,
  "principal_2013_2014" text,
  "assistant_principal_2013_2014" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the address for the assistant principal named Kelly Papke?`:
```sql
                SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "assistant_principal_2013_2014"='kelly papke';
```
## Task
Generate a SQL query to answer the following question:
`What was the mascot for the 2013-2014 principal named Frank Hendricsen?`

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

CREATE TABLE "elementary_schools_grades_k_6" (
  "elementary_schools" text,
  "mascot" text,
  "address" text,
  "principal_2013_2014" text,
  "assistant_principal_2013_2014" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the mascot for the 2013-2014 principal named Frank Hendricsen?`:
```sql
                SELECT "mascot" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='frank hendricsen';
```
## Task
Generate a SQL query to answer the following question:
`Who were the assistant and main principals of Kat Hughes?`

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

CREATE TABLE "elementary_schools_grades_k_6" (
  "elementary_schools" text,
  "mascot" text,
  "address" text,
  "principal_2013_2014" text,
  "assistant_principal_2013_2014" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the assistant and main principals of Kat Hughes?`:
```sql
                SELECT "assistant_principal_2013_2014" FROM "elementary_schools_grades_k_6" WHERE "principal_2013_2014"='kat hughes';
```
## Task
Generate a SQL query to answer the following question:
`What is the address for the school that has the coyotes mascot?`

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

CREATE TABLE "elementary_schools_grades_k_6" (
  "elementary_schools" text,
  "mascot" text,
  "address" text,
  "principal_2013_2014" text,
  "assistant_principal_2013_2014" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the address for the school that has the coyotes mascot?`:
```sql
                SELECT "address" FROM "elementary_schools_grades_k_6" WHERE "mascot"='coyotes';
```
## Task
Generate a SQL query to answer the following question:
`What is the result of the game played at Jinan?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result of the game played at Jinan?`:
```sql
                SELECT "result" FROM "international_goals" WHERE "venue"='jinan';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of the game on November 10, 2006?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of the game on November 10, 2006?`:
```sql
                SELECT "score" FROM "international_goals" WHERE "date"='november 10, 2006';
```
## Task
Generate a SQL query to answer the following question:
`What is the date of the game held at Lahore?`

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

CREATE TABLE "international_goals" (
  "date" text,
  "venue" text,
  "score" text,
  "result" text,
  "competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date of the game held at Lahore?`:
```sql
                SELECT "date" FROM "international_goals" WHERE "venue"='lahore';
```
## Task
Generate a SQL query to answer the following question:
`What were the total number of entries in 2001 that had a front row smaller than 13?`

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

CREATE TABLE "most_starts_from_front_row_in_a_season" (
  "driver" text,
  "season" text,
  "entries" real,
  "front_row_starts" real,
  "percentage" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the total number of entries in 2001 that had a front row smaller than 13?`:
```sql
                SELECT COUNT("entries") FROM "most_starts_from_front_row_in_a_season" WHERE "season"='2001' AND "front_row_starts"<13;
```