cfahlgren1/wiki_sql_pg_converted huggingface dataset:
## Task
Generate a SQL query to answer the following question:
`Which player had a score of 72-69=141?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player had a score of 72-69=141?`:
```sql
                SELECT "player" FROM "second_round" WHERE "score"='72-69=141';
```
## Task
Generate a SQL query to answer the following question:
`What is the score of T7 place?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score of T7 place?`:
```sql
                SELECT "score" FROM "second_round" WHERE "place"='t7';
```
## Task
Generate a SQL query to answer the following question:
`What place is Ben Hogan?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place is Ben Hogan?`:
```sql
                SELECT "place" FROM "second_round" WHERE "player"='ben hogan';
```
## Task
Generate a SQL query to answer the following question:
`What place has a to par of E?`

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

CREATE TABLE "second_round" (
  "place" text,
  "player" text,
  "country" text,
  "score" text,
  "to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What place has a to par of E?`:
```sql
                SELECT "place" FROM "second_round" WHERE "to_par"='e';
```
## Task
Generate a SQL query to answer the following question:
`What pick was J.D. Hill?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick was J.D. Hill?`:
```sql
                SELECT MIN("pick") FROM "nfl_draft" WHERE "player"='j.d. hill';
```
## Task
Generate a SQL query to answer the following question:
`What pick was used to select a Defensive End in round 8?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick" real,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What pick was used to select a Defensive End in round 8?`:
```sql
                SELECT SUM("pick") FROM "nfl_draft" WHERE "position"='defensive end' AND "round"=8;
```
## Task
Generate a SQL query to answer the following question:
`which winner has a jockery containing jerry bailey and the owner of overbrook farm?`

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

CREATE TABLE "kentucky_derby_winners" (
  "year" text,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `which winner has a jockery containing jerry bailey and the owner of overbrook farm?`:
```sql
                SELECT "winner" FROM "kentucky_derby_winners" WHERE "jockey"='jerry bailey' AND "owner"='overbrook farm';
```
## Task
Generate a SQL query to answer the following question:
`What time contains the owner of maine chance farm?`

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

CREATE TABLE "kentucky_derby_winners" (
  "year" text,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What time contains the owner of maine chance farm?`:
```sql
                SELECT "time" FROM "kentucky_derby_winners" WHERE "owner"='maine chance farm';
```
## Task
Generate a SQL query to answer the following question:
`Which time contains the jockery of isaac murphy as well as the winner of kingman?`

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

CREATE TABLE "kentucky_derby_winners" (
  "year" text,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which time contains the jockery of isaac murphy as well as the winner of kingman?`:
```sql
                SELECT "time" FROM "kentucky_derby_winners" WHERE "jockey"='isaac murphy' AND "winner"='kingman';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has the time of 2:02.20 and the year of 1957?`

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

CREATE TABLE "kentucky_derby_winners" (
  "year" text,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has the time of 2:02.20 and the year of 1957?`:
```sql
                SELECT "owner" FROM "kentucky_derby_winners" WHERE "time"='2:02.20' AND "year"='1957';
```
## Task
Generate a SQL query to answer the following question:
`Which owner has the time 2:03.00 and the year of 1991 kd?`

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

CREATE TABLE "kentucky_derby_winners" (
  "year" text,
  "winner" text,
  "jockey" text,
  "trainer" text,
  "owner" text,
  "time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which owner has the time 2:03.00 and the year of 1991 kd?`:
```sql
                SELECT "owner" FROM "kentucky_derby_winners" WHERE "time"='2:03.00' AND "year"='1991 kd';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the number played with more than 5 losses, more than 1 draw, and a position under 8?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the number played with more than 5 losses, more than 1 draw, and a position under 8?`:
```sql
                SELECT SUM("played") FROM "main_round" WHERE "lost">5 AND "position"<8 AND "drawn">1;
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of points with less than 1 draw and more than 11 losses for Ev Aich?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of points with less than 1 draw and more than 11 losses for Ev Aich?`:
```sql
                SELECT AVG("points") FROM "main_round" WHERE "drawn"<1 AND "name"='ev aich' AND "lost">11;
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of points for a position over 5 with more than 2 draws?`

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

CREATE TABLE "main_round" (
  "position" real,
  "name" text,
  "played" real,
  "drawn" real,
  "lost" real,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of points for a position over 5 with more than 2 draws?`:
```sql
                SELECT SUM("points") FROM "main_round" WHERE "drawn">2 AND "position">5;
```
## Task
Generate a SQL query to answer the following question:
`Which nation won no bronze medals and a 1 medal total?`

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

CREATE TABLE "medal_table" (
  "rank" text,
  "nation" text,
  "gold" real,
  "silver" real,
  "bronze" real,
  "total" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which nation won no bronze medals and a 1 medal total?`:
```sql
                SELECT "nation" FROM "medal_table" WHERE "total"=1 AND "bronze"<1;
```
## Task
Generate a SQL query to answer the following question:
`What was the result of the game in week 4?`

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

CREATE TABLE "schedule" (
  "week" real,
  "date" text,
  "opponent" text,
  "result" text,
  "attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the game in week 4?`:
```sql
                SELECT "result" FROM "schedule" WHERE "week"=4;
```
## Task
Generate a SQL query to answer the following question:
`What party has more than 241,310 inhabitants after 2012?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "inhabitants" real,
  "mayor" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `What party has more than 241,310 inhabitants after 2012?`:
```sql
                SELECT "party" FROM "municipalities" WHERE "election">2012 AND "inhabitants">'241,310';
```
## Task
Generate a SQL query to answer the following question:
`Highest inhabitants from gela?`

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

CREATE TABLE "municipalities" (
  "municipality" text,
  "inhabitants" real,
  "mayor" text,
  "party" text,
  "election" real
);
### SQL
Given the database schema, here is the SQL query that answers `Highest inhabitants from gela?`:
```sql
                SELECT MAX("inhabitants") FROM "municipalities" WHERE "municipality"='gela';
```
## Task
Generate a SQL query to answer the following question:
`What is the average number of casualties for the convoy with a number of U-844?`

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

CREATE TABLE "tables" (
  "date" text,
  "number" text,
  "type" text,
  "captain" text,
  "casualties" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of casualties for the convoy with a number of U-844?`:
```sql
                SELECT AVG("casualties") FROM "tables" WHERE "number"='u-844';
```
## Task
Generate a SQL query to answer the following question:
`On what Surface was the match against Ilija Bozoljac played?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Surface was the match against Ilija Bozoljac played?`:
```sql
                SELECT "surface" FROM "runners_up" WHERE "opponent"='ilija bozoljac';
```
## Task
Generate a SQL query to answer the following question:
`What Tournament was against Daniel Elsner?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What Tournament was against Daniel Elsner?`:
```sql
                SELECT "tournament" FROM "runners_up" WHERE "opponent"='daniel elsner';
```
## Task
Generate a SQL query to answer the following question:
`What is the Date of the Tournament with a Score of 3–6, 7–6(6), 5–7?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Date of the Tournament with a Score of 3–6, 7–6(6), 5–7?`:
```sql
                SELECT "date" FROM "runners_up" WHERE "score"='3–6, 7–6(6), 5–7';
```
## Task
Generate a SQL query to answer the following question:
`What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6?`

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

CREATE TABLE "runners_up" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Opponent of the Banja Luka Tournament with a Score of 4–6, 4–6?`:
```sql
                SELECT "opponent" FROM "runners_up" WHERE "score"='4–6, 4–6' AND "tournament"='banja luka';
```
## Task
Generate a SQL query to answer the following question:
`On what date was the record set with a time of 1:07.18?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "time" text,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was the record set with a time of 1:07.18?`:
```sql
                SELECT "date" FROM "men_s_records" WHERE "time"='1:07.18';
```
## Task
Generate a SQL query to answer the following question:
`On what date was a record set in the team pursuit (8 laps) event?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "time" text,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date was a record set in the team pursuit (8 laps) event?`:
```sql
                SELECT "date" FROM "men_s_records" WHERE "event"='team pursuit (8 laps)';
```
## Task
Generate a SQL query to answer the following question:
`What nation did the speed skater that set a record in the 1000 metres event represent?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "time" text,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nation did the speed skater that set a record in the 1000 metres event represent?`:
```sql
                SELECT "nation" FROM "men_s_records" WHERE "event"='1000 metres';
```
## Task
Generate a SQL query to answer the following question:
`What was the record setting time in the team pursuit (8 laps) event?`

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

CREATE TABLE "men_s_records" (
  "event" text,
  "time" text,
  "name" text,
  "nation" text,
  "games" text,
  "date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record setting time in the team pursuit (8 laps) event?`:
```sql
                SELECT "time" FROM "men_s_records" WHERE "event"='team pursuit (8 laps)';
```
## Task
Generate a SQL query to answer the following question:
`What is the total for the draw with 0 points, and less than 14 lost?`

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

CREATE TABLE "second_league" (
  "team" text,
  "match" real,
  "points" real,
  "draw" real,
  "lost" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total for the draw with 0 points, and less than 14 lost?`:
```sql
                SELECT SUM("draw") FROM "second_league" WHERE "points"=0 AND "lost"<14;
```
## Task
Generate a SQL query to answer the following question:
`What date has @ new orleans as the team?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What date has @ new orleans as the team?`:
```sql
                SELECT "date" FROM "game_log" WHERE "team"='@ new orleans';
```
## Task
Generate a SQL query to answer the following question:
`What is the sum of the game with the boston bruins as the opponent?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the sum of the game with the boston bruins as the opponent?`:
```sql
                SELECT SUM("game") FROM "game_log" WHERE "opponent"='boston bruins';
```
## Task
Generate a SQL query to answer the following question:
`What is the total number of games at Toronto with less than 31 points?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the total number of games at Toronto with less than 31 points?`:
```sql
                SELECT COUNT("game") FROM "game_log" WHERE "location"='toronto' AND "points"<31;
```
## Task
Generate a SQL query to answer the following question:
`What is the record of the game with a game number greater than 36 on January 20 at scotiabank place with an attendance greater than 19,029?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "opponent" text,
  "score" text,
  "location" text,
  "attendance" real,
  "record" text,
  "points" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record of the game with a game number greater than 36 on January 20 at scotiabank place with an attendance greater than 19,029?`:
```sql
                SELECT "record" FROM "game_log" WHERE "game">36 AND "location"='scotiabank place' AND "attendance">'19,029' AND "date"='january 20';
```
## Task
Generate a SQL query to answer the following question:
`What is the nationality of the PG position from VCU?`

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

CREATE TABLE "h" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the nationality of the PG position from VCU?`:
```sql
                SELECT "nationality" FROM "h" WHERE "position"='pg' AND "from"='vcu';
```
## Task
Generate a SQL query to answer the following question:
`What years did jersey number 55 play?`

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

CREATE TABLE "h" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What years did jersey number 55 play?`:
```sql
                SELECT "years" FROM "h" WHERE "jersey_number_s"='55';
```
## Task
Generate a SQL query to answer the following question:
`What are the Jersey numbers for Notre Dame?`

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

CREATE TABLE "h" (
  "player" text,
  "nationality" text,
  "jersey_number_s" text,
  "position" text,
  "years" text,
  "from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the Jersey numbers for Notre Dame?`:
```sql
                SELECT "jersey_number_s" FROM "h" WHERE "from"='notre dame';
```
## Task
Generate a SQL query to answer the following question:
`Before 2007, what was the avg start that had a pole of 0 and in 65th position?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Before 2007, what was the avg start that had a pole of 0 and in 65th position?`:
```sql
                SELECT AVG("starts") FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "position"='65th' AND "year"<2007;
```
## Task
Generate a SQL query to answer the following question:
`How many starts had an avg start of less than 37 and won $1,636,827?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many starts had an avg start of less than 37 and won $1,636,827?`:
```sql
                SELECT SUM("starts") FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,636,827' AND "avg_start"<37;
```
## Task
Generate a SQL query to answer the following question:
`in 1990, how many wins had an avg finish of 35 and a start less than 1?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `in 1990, how many wins had an avg finish of 35 and a start less than 1?`:
```sql
                SELECT MAX("wins") FROM "nascar_sprint_cup_series" WHERE "avg_finish"=35 AND "year"=1990 AND "starts"<1;
```
## Task
Generate a SQL query to answer the following question:
`What year had a pole smaller than 0 and in 77th position?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year had a pole smaller than 0 and in 77th position?`:
```sql
                SELECT MAX("year") FROM "nascar_sprint_cup_series" WHERE "position"='77th' AND "poles"<0;
```
## Task
Generate a SQL query to answer the following question:
`in 2007, what is the avg finish that had a start less than 1?`

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

CREATE TABLE "nascar_sprint_cup_series" (
  "year" real,
  "starts" real,
  "wins" real,
  "top_5" real,
  "top_10" real,
  "poles" real,
  "avg_start" real,
  "avg_finish" real,
  "winnings" text,
  "position" text
);
### SQL
Given the database schema, here is the SQL query that answers `in 2007, what is the avg finish that had a start less than 1?`:
```sql
                SELECT SUM("avg_finish") FROM "nascar_sprint_cup_series" WHERE "year"=2007 AND "starts"<1;
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Game is greater than 4?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Game is greater than 4?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "game">4;
```
## Task
Generate a SQL query to answer the following question:
`What is High Points, when Game is "3"?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Points, when Game is "3"?`:
```sql
                SELECT "high_points" FROM "playoffs" WHERE "game"=3;
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when Location Attendance is "Madison Square Garden Unknown", and when High Rebounds is "Sidney Green (10)"?`:
```sql
                SELECT "score" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "high_rebounds"='sidney green (10)';
```
## Task
Generate a SQL query to answer the following question:
`What is High Rebounds, when Location Attendance is "Madison Square Garden Unknown", and when Date is "May 18"?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Rebounds, when Location Attendance is "Madison Square Garden Unknown", and when Date is "May 18"?`:
```sql
                SELECT "high_rebounds" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "date"='may 18';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?`

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

CREATE TABLE "playoffs" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "series" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when Location Attendance is "Madison Square Garden Unknown", and when High Points is "Alonzo Mourning (24)"?`:
```sql
                SELECT "team" FROM "playoffs" WHERE "location_attendance"='madison square garden unknown' AND "high_points"='alonzo mourning (24)';
```
## Task
Generate a SQL query to answer the following question:
`What is High Points, when High Rebounds is "Ron Artest (9)"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is High Points, when High Rebounds is "Ron Artest (9)"?`:
```sql
                SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='ron artest (9)';
```
## Task
Generate a SQL query to answer the following question:
`What is Date, when High Rebounds is "Yao Ming (10)"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Date, when High Rebounds is "Yao Ming (10)"?`:
```sql
                SELECT "date" FROM "game_log" WHERE "high_rebounds"='yao ming (10)';
```
## Task
Generate a SQL query to answer the following question:
`What is Score, when High Points is "Luis Scola (18)", and when High Rebounds is "Luis Scola (11)"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Score, when High Points is "Luis Scola (18)", and when High Rebounds is "Luis Scola (11)"?`:
```sql
                SELECT "score" FROM "game_log" WHERE "high_points"='luis scola (18)' AND "high_rebounds"='luis scola (11)';
```
## Task
Generate a SQL query to answer the following question:
`What is Team, when High Points is "Tracy McGrady (24)"?`

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

CREATE TABLE "game_log" (
  "game" real,
  "date" text,
  "team" text,
  "score" text,
  "high_points" text,
  "high_rebounds" text,
  "high_assists" text,
  "location_attendance" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Team, when High Points is "Tracy McGrady (24)"?`:
```sql
                SELECT "team" FROM "game_log" WHERE "high_points"='tracy mcgrady (24)';
```
## Task
Generate a SQL query to answer the following question:
`What was the year of the finish with the class pos of 6th and laps smaller than 317?`

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

CREATE TABLE "24_hours_of_le_mans_results" (
  "year" real,
  "team" text,
  "co_drivers" text,
  "class" text,
  "laps" real,
  "pos" text,
  "class_pos" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the year of the finish with the class pos of 6th and laps smaller than 317?`:
```sql
                SELECT SUM("year") FROM "24_hours_of_le_mans_results" WHERE "class_pos"='6th' AND "laps"<317;
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the opponent Atlanta Hawks?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the opponent Atlanta Hawks?`:
```sql
                SELECT "record" FROM "march" WHERE "opponent"='atlanta hawks';
```
## Task
Generate a SQL query to answer the following question:
`Which opponent had a 113-124 score?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which opponent had a 113-124 score?`:
```sql
                SELECT "opponent" FROM "march" WHERE "score"='113-124';
```
## Task
Generate a SQL query to answer the following question:
`What is the final record for the Philadelphia 76ers?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the final record for the Philadelphia 76ers?`:
```sql
                SELECT "record" FROM "march" WHERE "opponent"='philadelphia 76ers';
```
## Task
Generate a SQL query to answer the following question:
`What is the record for the Detroit Pistons on March 7?`

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

CREATE TABLE "march" (
  "date" text,
  "h_a_n" text,
  "opponent" text,
  "score" text,
  "record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record for the Detroit Pistons on March 7?`:
```sql
                SELECT "record" FROM "march" WHERE "opponent"='detroit pistons' AND "date"='march 7';
```
## Task
Generate a SQL query to answer the following question:
`What is the WR player?`

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

CREATE TABLE "cfl_draft" (
  "round" real,
  "pick" text,
  "player" text,
  "position" text,
  "school_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the WR player?`:
```sql
                SELECT "player" FROM "cfl_draft" WHERE "position"='wr';
```
## Task
Generate a SQL query to answer the following question:
`What is the Length (m) of the Koppenberg course?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Length (m) of the Koppenberg course?`:
```sql
                SELECT "length_m" FROM "course" WHERE "name"='koppenberg';
```
## Task
Generate a SQL query to answer the following question:
`What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Kilometer of the Berendries asphalt course with an Average climb less than 7 and Length (m) longer than 645?`:
```sql
                SELECT AVG("kilometer") FROM "course" WHERE "pavement"='asphalt' AND "length_m">645 AND "name"='berendries' AND "average_climb_pct"<7;
```
## Task
Generate a SQL query to answer the following question:
`What is the Number of the Koppenberg course with less than 195 Kilometers?`

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

CREATE TABLE "course" (
  "number" real,
  "name" text,
  "kilometer" real,
  "pavement" text,
  "length_m" real,
  "average_climb_pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Number of the Koppenberg course with less than 195 Kilometers?`:
```sql
                SELECT COUNT("number") FROM "course" WHERE "name"='koppenberg' AND "kilometer"<195;
```
## Task
Generate a SQL query to answer the following question:
`Which part three is class 4?`

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

CREATE TABLE "gothic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which part three is class 4?`:
```sql
                SELECT "part_3" FROM "gothic" WHERE "class"='4';
```
## Task
Generate a SQL query to answer the following question:
`Which part one is class 7d?`

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

CREATE TABLE "gothic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which part one is class 7d?`:
```sql
                SELECT "part_1" FROM "gothic" WHERE "class"='7d';
```
## Task
Generate a SQL query to answer the following question:
`Which part 3 has class 7b?`

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

CREATE TABLE "gothic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which part 3 has class 7b?`:
```sql
                SELECT "part_3" FROM "gothic" WHERE "class"='7b';
```
## Task
Generate a SQL query to answer the following question:
`Which class has a part 2 of halp warþ?`

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

CREATE TABLE "gothic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which class has a part 2 of halp warþ?`:
```sql
                SELECT "class" FROM "gothic" WHERE "part_2"='halp warþ';
```
## Task
Generate a SQL query to answer the following question:
`Which part 2 has a verb that means to leap?`

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

CREATE TABLE "gothic" (
  "class" text,
  "part_1" text,
  "part_2" text,
  "part_3" text,
  "part_4" text,
  "verb_meaning" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which part 2 has a verb that means to leap?`:
```sql
                SELECT "part_2" FROM "gothic" WHERE "verb_meaning"='to leap';
```
## Task
Generate a SQL query to answer the following question:
`Who are the semifinalists when the tournament is in Cincinnati?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who are the semifinalists when the tournament is in Cincinnati?`:
```sql
                SELECT "semifinalists" FROM "singles" WHERE "tournament"='cincinnati';
```
## Task
Generate a SQL query to answer the following question:
`What is the finalist in the week of March 12?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the finalist in the week of March 12?`:
```sql
                SELECT "finalist" FROM "singles" WHERE "week"='march 12';
```
## Task
Generate a SQL query to answer the following question:
`What is the May 7 finalist?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the May 7 finalist?`:
```sql
                SELECT "finalist" FROM "singles" WHERE "week"='may 7';
```
## Task
Generate a SQL query to answer the following question:
`For the week of August 6, who is the finalist?`

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

CREATE TABLE "singles" (
  "tournament" text,
  "surface" text,
  "week" text,
  "winner_and_score" text,
  "finalist" text,
  "semifinalists" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the week of August 6, who is the finalist?`:
```sql
                SELECT "finalist" FROM "singles" WHERE "week"='august 6';
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pick #, when College is "Jackson State"?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Pick #, when College is "Jackson State"?`:
```sql
                SELECT MIN("pick_num") FROM "nfl_draft" WHERE "college"='jackson state';
```
## Task
Generate a SQL query to answer the following question:
`What is Pick #, when Round is "10"?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Pick #, when Round is "10"?`:
```sql
                SELECT "pick_num" FROM "nfl_draft" WHERE "round"=10;
```
## Task
Generate a SQL query to answer the following question:
`What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Player, when Round is greater than 8, when Pick # is greater than 234, and when College is "Louisville"?`:
```sql
                SELECT "player" FROM "nfl_draft" WHERE "round">8 AND "pick_num">234 AND "college"='louisville';
```
## Task
Generate a SQL query to answer the following question:
`What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater than 180?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average Round, when Player is "Gurnest Brown", and when Pick # is greater than 180?`:
```sql
                SELECT AVG("round") FROM "nfl_draft" WHERE "player"='gurnest brown' AND "pick_num">180;
```
## Task
Generate a SQL query to answer the following question:
`What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?`

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

CREATE TABLE "nfl_draft" (
  "round" real,
  "pick_num" real,
  "player" text,
  "position" text,
  "college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?`:
```sql
                SELECT MIN("pick_num") FROM "nfl_draft" WHERE "college"='louisville' AND "round"<10;
```
## Task
Generate a SQL query to answer the following question:
`Which Class has a Frequency MHz larger than 91.7, and a Call sign of k272ec?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Class has a Frequency MHz larger than 91.7, and a Call sign of k272ec?`:
```sql
                SELECT "class" FROM "translators" WHERE "frequency_m_hz">91.7 AND "call_sign"='k272ec';
```
## Task
Generate a SQL query to answer the following question:
`Which Frequency MHz has a Call sign of k210dv?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Frequency MHz has a Call sign of k210dv?`:
```sql
                SELECT MAX("frequency_m_hz") FROM "translators" WHERE "call_sign"='k210dv';
```
## Task
Generate a SQL query to answer the following question:
`Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City of license has a Frequency MHz larger than 89.5, and a Call sign of k213el?`:
```sql
                SELECT "city_of_license" FROM "translators" WHERE "frequency_m_hz">89.5 AND "call_sign"='k213el';
```
## Task
Generate a SQL query to answer the following question:
`Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which ERP W has a Frequency MHz larger than 89.1, and a City of license of de queen, arkansas?`:
```sql
                SELECT "erp_w" FROM "translators" WHERE "frequency_m_hz">89.1 AND "city_of_license"='de queen, arkansas';
```
## Task
Generate a SQL query to answer the following question:
`Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5?`

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

CREATE TABLE "translators" (
  "call_sign" text,
  "frequency_m_hz" real,
  "city_of_license" text,
  "erp_w" real,
  "class" text,
  "fcc_info" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which FCC info has a City of license of burley, idaho, and a Frequency MHz of 89.5?`:
```sql
                SELECT "fcc_info" FROM "translators" WHERE "city_of_license"='burley, idaho' AND "frequency_m_hz"=89.5;
```
## Task
Generate a SQL query to answer the following question:
`For the game played on 31 July 2007 on clay what was the score?`

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

CREATE TABLE "singles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the game played on 31 July 2007 on clay what was the score?`:
```sql
                SELECT "score" FROM "singles_5" WHERE "surface"='clay' AND "date"='31 july 2007';
```
## Task
Generate a SQL query to answer the following question:
`When was Pablo Andújar the opponent?`

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

CREATE TABLE "singles_5" (
  "date" text,
  "tournament" text,
  "surface" text,
  "opponent" text,
  "score" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was Pablo Andújar the opponent?`:
```sql
                SELECT "date" FROM "singles_5" WHERE "opponent"='pablo andújar';
```