output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT SUM("laps") FROM "moto_gp_classification" WHERE "rider"='olivier jacque' AND "grid">7; |
## Task
Generate a SQL query to answer the following question:
`How many Laps have Rider of olivier jacque, and a Grid larger than 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have Rider of olivier jacque, and a Grid larger than 7?`:
```sql
|
SELECT MAX("laps") FROM "moto_gp_classification" WHERE "manufacturer"='suzuki' AND "grid"<16; |
## Task
Generate a SQL query to answer the following question:
`Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16?`:
```sql
|
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "grid">9 AND "time_retired"='+32.354'; |
## Task
Generate a SQL query to answer the following question:
`How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "moto_gp_classification" (
"rider" text,
"manufacturer" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many Laps have a Grid larger than 9, and a Time/Retired of +32.354?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "date"='oct 19'; |
## Task
Generate a SQL query to answer the following question:
`What is Record, when Date is Oct 19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Record, when Date is Oct 19?`:
```sql
|
SELECT "attendance" FROM "season_schedule" WHERE "opponent"='montreal alouettes' AND "date"='oct 4'; |
## Task
Generate a SQL query to answer the following question:
`What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?`:
```sql
|
SELECT "opponent" FROM "season_schedule" WHERE "result"='win' AND "date"='aug 7'; |
## Task
Generate a SQL query to answer the following question:
`What is Opponent, when Result is Win, and when Date is Aug 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"week" real,
"date" text,
"opponent" text,
"score" text,
"result" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is Opponent, when Result is Win, and when Date is Aug 7?`:
```sql
|
SELECT "date" FROM "round_9" WHERE "score"='115-93'; |
## Task
Generate a SQL query to answer the following question:
`what is the date when the score is 115-93?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the score is 115-93?`:
```sql
|
SELECT AVG("crowd") FROM "round_9" WHERE "away_team"='new zealand breakers' AND "venue"='cairns convention centre'; |
## Task
Generate a SQL query to answer the following question:
`what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the average crowd when the away team is new zealand breakers and the venue is cairns convention centre?`:
```sql
|
SELECT COUNT("crowd") FROM "round_9" WHERE "home_team"='wollongong hawks'; |
## Task
Generate a SQL query to answer the following question:
`how many times is the home team wollongong hawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `how many times is the home team wollongong hawks?`:
```sql
|
SELECT "date" FROM "round_9" WHERE "venue"='gold coast convention centre'; |
## Task
Generate a SQL query to answer the following question:
`what is the date when the venue is gold coast convention centre?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"date" text,
"home_team" text,
"score" text,
"away_team" text,
"venue" text,
"crowd" real,
"box_score" text,
"report" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the date when the venue is gold coast convention centre?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "points"<67 AND "home"='calgary flames'; |
## Task
Generate a SQL query to answer the following question:
`Which Score has Points smaller than 67, and a Home of calgary flames?`
### 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,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Score has Points smaller than 67, and a Home of calgary flames?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='4β2'; |
## Task
Generate a SQL query to answer the following question:
`Whic Date has a Score of 4β2?`
### 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,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Whic Date has a Score of 4β2?`:
```sql
|
SELECT "decision" FROM "game_log" WHERE "record"='29β18β6'; |
## Task
Generate a SQL query to answer the following question:
`Which Decision has a Record of 29β18β6?`
### 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,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Decision has a Record of 29β18β6?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "score"='4β2'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Score of 4β2?`
### 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,
"decision" text,
"attendance" real,
"record" text,
"points" real
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Score of 4β2?`:
```sql
|
SELECT COUNT("lost") FROM "head_coaches" WHERE "years"='1975' AND "seasons"<1; |
## Task
Generate a SQL query to answer the following question:
`How many losses did the coach who served under 1 season and in 1975 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many losses did the coach who served under 1 season and in 1975 have?`:
```sql
|
SELECT MIN("seasons") FROM "head_coaches" WHERE "name"='kathy graham'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of seasons coached by Kathy Graham?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "head_coaches" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the number of seasons coached by Kathy Graham?`:
```sql
|
SELECT "result" FROM "schedule" WHERE "date"='september 25, 1966'; |
## Task
Generate a SQL query to answer the following question:
`What is the result on September 25, 1966?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result on September 25, 1966?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "week">10 AND "date"='november 20, 1966'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game on November 20, 1966 after week 10?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game on November 20, 1966 after week 10?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"=2; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on week 2?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on week 2?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='november 20, 1966'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent on November 20, 1966?`
### 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" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent on November 20, 1966?`:
```sql
|
SELECT COUNT("attendance") FROM "regular_season" WHERE "home"='ny islanders'; |
## Task
Generate a SQL query to answer the following question:
`What is the attendance of the game with the NY Islanders as home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the attendance of the game with the NY Islanders as home team?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "opponent"='seattle'; |
## Task
Generate a SQL query to answer the following question:
`What was the date of the game against seattle?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" 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 was the date of the game against seattle?`:
```sql
|
SELECT "opponent" FROM "regular_season" WHERE "game"=30; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents during game 30?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" 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 `Who were the opponents during game 30?`:
```sql
|
SELECT "record" FROM "regular_season" WHERE "score"='78-59'; |
## Task
Generate a SQL query to answer the following question:
`What was the record during the game with a score of 78-59?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"game" real,
"date" text,
"opponent" 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 was the record during the game with a score of 78-59?`:
```sql
|
SELECT "team" FROM "teams" WHERE "state_province"='maryland' AND "league"='mlb'; |
## Task
Generate a SQL query to answer the following question:
`Which mlb team is located in maryland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which mlb team is located in maryland?`:
```sql
|
SELECT "team" FROM "teams" WHERE "city"='brooklyn'; |
## Task
Generate a SQL query to answer the following question:
`What team is located in brooklyn?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is located in brooklyn?`:
```sql
|
SELECT "est" FROM "teams" WHERE "state_province"='alberta' AND "league"='cfl' AND "city"='edmonton'; |
## Task
Generate a SQL query to answer the following question:
`In what year was the cfl team in edmonton, alberta established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the cfl team in edmonton, alberta established?`:
```sql
|
SELECT "est" FROM "teams" WHERE "state_province"='illinois' AND "city"='chicago' AND "league"='nfl'; |
## Task
Generate a SQL query to answer the following question:
`In what year was the NFL team in chicago illinois established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what year was the NFL team in chicago illinois established?`:
```sql
|
SELECT "team" FROM "teams" WHERE "state_province"='missouri' AND "est"='1963'; |
## Task
Generate a SQL query to answer the following question:
`Which team is located in missouri and was established in 1963?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "teams" (
"team" text,
"city" text,
"state_province" text,
"league" text,
"est" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team is located in missouri and was established in 1963?`:
```sql
|
SELECT "event" FROM "women" WHERE "name"='ye shiwen'; |
## Task
Generate a SQL query to answer the following question:
`Which event was Ye Shiwen in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which event was Ye Shiwen in?`:
```sql
|
SELECT "name" FROM "women" WHERE "time"='26.11'; |
## Task
Generate a SQL query to answer the following question:
`Who had a time of 26.11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who had a time of 26.11?`:
```sql
|
SELECT "date" FROM "women" WHERE "time"='2:16.08'; |
## Task
Generate a SQL query to answer the following question:
`What was the date in which the time was 2:16.08?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the date in which the time was 2:16.08?`:
```sql
|
SELECT "name" FROM "women" WHERE "event"='women''s 200m medley'; |
## Task
Generate a SQL query to answer the following question:
`Who was in the women's 200m medley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was in the women's 200m medley?`:
```sql
|
SELECT "nationality" FROM "women" WHERE "round"='semifinal' AND "time"='29.51'; |
## Task
Generate a SQL query to answer the following question:
`What was the nationality of the swimmer in the semifinal with a time of 29.51?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "women" (
"event" text,
"date" text,
"round" text,
"name" text,
"nationality" text,
"time" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the nationality of the swimmer in the semifinal with a time of 29.51?`:
```sql
|
SELECT "country" FROM "first_round" WHERE "score"=67; |
## Task
Generate a SQL query to answer the following question:
`What country scored 67?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country scored 67?`:
```sql
|
SELECT "to_par" FROM "first_round" WHERE "player"='tino schuster'; |
## Task
Generate a SQL query to answer the following question:
`What was the to par for Tino Schuster?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the to par for Tino Schuster?`:
```sql
|
SELECT "country" FROM "first_round" WHERE "player"='scott verplank'; |
## Task
Generate a SQL query to answer the following question:
`What country has player Scott Verplank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_round" (
"place" text,
"player" text,
"country" text,
"score" real,
"to_par" text
);
### SQL
Given the database schema, here is the SQL query that answers `What country has player Scott Verplank?`:
```sql
|
SELECT "type" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "e_coli"='muty'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of glycosylase that has an E. coli of Muty?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of glycosylase that has an E. coli of Muty?`:
```sql
|
SELECT "e_coli" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "human"='hneil1'; |
## Task
Generate a SQL query to answer the following question:
`Which E. coli has a human value of HNEIL1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which E. coli has a human value of HNEIL1?`:
```sql
|
SELECT "e_coli" FROM "glycosylases_in_bacteria_yeast_and_human" WHERE "substrates"='uracil'; |
## Task
Generate a SQL query to answer the following question:
`Which E. coli has a substrate of uracil?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "glycosylases_in_bacteria_yeast_and_human" (
"e_coli" text,
"yeast_s_cerevisiae" text,
"human" text,
"type" text,
"substrates" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which E. coli has a substrate of uracil?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "method"='tko (doctor stoppage)' AND "res"='loss'; |
## Task
Generate a SQL query to answer the following question:
`The tko (doctor stoppage) method was used in a loss against which opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `The tko (doctor stoppage) method was used in a loss against which opponent?`:
```sql
|
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "method"='submission (choke)'; |
## Task
Generate a SQL query to answer the following question:
`How many total rounds used the submission (choke) method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many total rounds used the submission (choke) method?`:
```sql
|
SELECT "time" FROM "mixed_martial_arts_record" WHERE "method"='tko (doctor stoppage)' AND "record"='9-0'; |
## Task
Generate a SQL query to answer the following question:
`What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the time of the match with a record of 9-0 and used the tko (doctor stoppage) method?`:
```sql
|
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "event"='ufc 16' AND "record"='19-1-1'; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest round number at the UFC 16 event with a record of 19-1-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the lowest round number at the UFC 16 event with a record of 19-1-1?`:
```sql
|
SELECT MAX("opponents") FROM "schedule" WHERE "game"=9 AND "attendance"<'60,091'; |
## Task
Generate a SQL query to answer the following question:
`What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"game" real,
"date" text,
"opponent" text,
"result" text,
"eagles_points" real,
"opponents" real,
"record" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the highest number of oppenents points recorded for game 9 when the attendance was less than 60,091?`:
```sql
|
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='bill parker'; |
## Task
Generate a SQL query to answer the following question:
`What event did tedd williams fight bill parker?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What event did tedd williams fight bill parker?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='travis fulton'; |
## Task
Generate a SQL query to answer the following question:
`What round did the fight against travis fulton last?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round did the fight against travis fulton last?`:
```sql
|
SELECT COUNT("pick_num") FROM "round_three" WHERE "player"='scott deibert'; |
## Task
Generate a SQL query to answer the following question:
`How many times is the player scott deibert?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many times is the player scott deibert?`:
```sql
|
SELECT "pick_num" FROM "round_three" WHERE "player"='william loftus'; |
## Task
Generate a SQL query to answer the following question:
`what is the pick # for william loftus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the pick # for william loftus?`:
```sql
|
SELECT "cfl_team" FROM "round_three" WHERE "position"='d'; |
## Task
Generate a SQL query to answer the following question:
`what is the cfl team for position d?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_three" (
"pick_num" real,
"cfl_team" text,
"player" text,
"position" text,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `what is the cfl team for position d?`:
```sql
|
SELECT "league_goals" FROM "first_division" WHERE "club"='wolverhampton wanderers'; |
## Task
Generate a SQL query to answer the following question:
`what was the total for the Wolverhampton Wanderers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "first_division" (
"scorer" text,
"club" text,
"league_goals" text,
"fa_cup_goals" real,
"league_cup_goals" real,
"euro_competitions" text,
"total" real
);
### SQL
Given the database schema, here is the SQL query that answers `what was the total for the Wolverhampton Wanderers?`:
```sql
|
SELECT "attendance" FROM "schedule" WHERE "result"='l 20-17'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance when the result was l 20-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,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many were in attendance when the result was l 20-17?`:
```sql
|
SELECT "third_vice_skip" FROM "men_s" WHERE "second"='Γ©ric sylvain'; |
## Task
Generate a SQL query to answer the following question:
`Which Third/Vice skip has a Second of Γ©ric sylvain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Third/Vice skip has a Second of Γ©ric sylvain?`:
```sql
|
SELECT "lead" FROM "men_s" WHERE "skip"='mike mcewen'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of mike mcewen?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of mike mcewen?`:
```sql
|
SELECT "city" FROM "men_s" WHERE "lead"='steve gould'; |
## Task
Generate a SQL query to answer the following question:
`Which City has a Lead of steve gould?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Lead of steve gould?`:
```sql
|
SELECT "lead" FROM "men_s" WHERE "city"='winnipeg' AND "third_vice_skip"='kevin park'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a City of winnipeg, and a Third/Vice skip of kevin park?`:
```sql
|
SELECT "city" FROM "men_s" WHERE "lead"='tyler forrest'; |
## Task
Generate a SQL query to answer the following question:
`Which City has a Lead of tyler forrest?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which City has a Lead of tyler forrest?`:
```sql
|
SELECT "lead" FROM "men_s" WHERE "skip"='ted appelman'; |
## Task
Generate a SQL query to answer the following question:
`Which Lead has a Skip of ted appelman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "men_s" (
"skip" text,
"third_vice_skip" text,
"second" text,
"lead" text,
"city" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Lead has a Skip of ted appelman?`:
```sql
|
SELECT "album" FROM "highest_first_week_sales" WHERE "number"=10; |
## Task
Generate a SQL query to answer the following question:
`Which album is #10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "highest_first_week_sales" (
"number" real,
"artist" text,
"album" text,
"1st_week_sales" real,
"1st_week_position" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which album is #10?`:
```sql
|
SELECT "place" FROM "third_round" WHERE "player"='ben hogan'; |
## Task
Generate a SQL query to answer the following question:
`What is Ben Hogan's Place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_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 Ben Hogan's Place?`:
```sql
|
SELECT "to_par" FROM "third_round" WHERE "player"='jerry barber'; |
## Task
Generate a SQL query to answer the following question:
`What is Jerry Barber's To par?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_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 Jerry Barber's To par?`:
```sql
|
SELECT "score" FROM "third_round" WHERE "place"='t2' AND "player"='dow finsterwald'; |
## Task
Generate a SQL query to answer the following question:
`What is the Score of T2 Place Player Dow Finsterwald?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "third_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 T2 Place Player Dow Finsterwald?`:
```sql
|
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "score"='71-71=142'; |
## Task
Generate a SQL query to answer the following question:
`What's the to par of the United States with the score of 71-71=142?`
### 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's the to par of the United States with the score of 71-71=142?`:
```sql
|
SELECT "place" FROM "second_round" WHERE "score"='71-70=141'; |
## Task
Generate a SQL query to answer the following question:
`What place had a score of 71-70=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 `What place had a score of 71-70=141?`:
```sql
|
SELECT "player" FROM "second_round" WHERE "score"='72-69=141'; |
## 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 "score" FROM "second_round" WHERE "place"='t7'; |
## 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 "place" FROM "second_round" WHERE "player"='ben hogan'; |
## 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 "to_par"='e'; |
## 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 MIN("pick") FROM "nfl_draft" WHERE "player"='j.d. hill'; |
## 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 SUM("pick") FROM "nfl_draft" WHERE "position"='defensive end' AND "round"=8; |
## 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 "winner" FROM "kentucky_derby_winners" WHERE "jockey"='jerry bailey' AND "owner"='overbrook farm'; |
## 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 "time" FROM "kentucky_derby_winners" WHERE "owner"='maine chance 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 "jockey"='isaac murphy' AND "winner"='kingman'; |
## 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 "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 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:03.00' AND "year"='1991 kd'; |
## 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 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 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 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 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 SUM("points") FROM "main_round" WHERE "drawn">2 AND "position">5; |
## 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 "nation" FROM "medal_table" WHERE "total"=1 AND "bronze"<1; |
## 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 "result" FROM "schedule" WHERE "week"=4; |
## 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 "party" FROM "municipalities" WHERE "election">2012 AND "inhabitants">'241,310'; |
## 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 MAX("inhabitants") FROM "municipalities" WHERE "municipality"='gela'; |
## 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 AVG("casualties") FROM "tables" WHERE "number"='u-844'; |
## 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 "surface" FROM "runners_up" WHERE "opponent"='ilija bozoljac'; |
## 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 "tournament" FROM "runners_up" WHERE "opponent"='daniel elsner'; |
## 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 "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 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 "opponent" FROM "runners_up" WHERE "score"='4β6, 4β6' AND "tournament"='banja luka'; |
## 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 "date" FROM "men_s_records" WHERE "time"='1:07.18'; |
## 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 "event"='team pursuit (8 laps)'; |
## 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 "nation" FROM "men_s_records" WHERE "event"='1000 metres'; |
## 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 "time" FROM "men_s_records" WHERE "event"='team pursuit (8 laps)'; |
## 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 SUM("draw") FROM "second_league" WHERE "points"=0 AND "lost"<14; |
## 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 "date" FROM "game_log" WHERE "team"='@ new orleans'; |
## 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 SUM("game") FROM "game_log" WHERE "opponent"='boston bruins'; |
## 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 COUNT("game") FROM "game_log" WHERE "location"='toronto' AND "points"<31; |
## 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 "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 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 "nationality" FROM "h" WHERE "position"='pg' AND "from"='vcu'; |
## 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 "years" FROM "h" WHERE "jersey_number_s"='55'; |
## 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 "jersey_number_s" FROM "h" WHERE "from"='notre dame'; |
## 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 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:
`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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.