output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "date" FROM "game_log" WHERE "attendance"='16,212'; |
## Task
Generate a SQL query to answer the following question:
`On what Date was the Attendance 16,212?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date was the Attendance 16,212?`:
```sql
|
SELECT "attendance" FROM "game_log" WHERE "opponent"='new york yankees' AND "date"='may 12'; |
## Task
Generate a SQL query to answer the following question:
`What was the Attendance on May 12, when the New York Yankees were the Opponent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the Attendance on May 12, when the New York Yankees were the Opponent?`:
```sql
|
SELECT "venue" FROM "round_12" WHERE "home_team_score"='22.13 (145)'; |
## Task
Generate a SQL query to answer the following question:
`Which Venue has a Home team score of 22.13 (145)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Venue has a Home team score of 22.13 (145)?`:
```sql
|
SELECT "date" FROM "round_12" WHERE "venue"='junction oval'; |
## Task
Generate a SQL query to answer the following question:
`Which Date has a Venue of junction oval?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which Date has a Venue of junction oval?`:
```sql
|
SELECT COUNT("crowd") FROM "round_12" WHERE "home_team"='melbourne'; |
## Task
Generate a SQL query to answer the following question:
`Which total number of Crowd has a Home team of melbourne?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which total number of Crowd has a Home team of melbourne?`:
```sql
|
SELECT MIN("1st_prize") FROM "tournament_results" WHERE "location"='florida' AND "score"='200 (-16)'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest 1st prize for florida tournaments and a Score of 200 (-16)?`:
```sql
|
SELECT COUNT("grid") FROM "moto_gp_classification" WHERE "time_retired"='+27.347'; |
## Task
Generate a SQL query to answer the following question:
`Which grid has a time/retired of +27.347?`
### 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 grid has a time/retired of +27.347?`:
```sql
|
SELECT "singles_champions" FROM "events" WHERE "country"='italy' AND "city"='trieste'; |
## Task
Generate a SQL query to answer the following question:
`Who was the Singles Champions in Trieste, Italy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the Singles Champions in Trieste, Italy?`:
```sql
|
SELECT "surface" FROM "events" WHERE "city"='caracas' AND "tournament"='venezuela f5 futures'; |
## Task
Generate a SQL query to answer the following question:
`On what Surface will the Venezuela F5 Futures in Caracas be played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Surface will the Venezuela F5 Futures in Caracas be played?`:
```sql
|
SELECT "surface" FROM "events" WHERE "tournament"='new zealand f1 futures'; |
## Task
Generate a SQL query to answer the following question:
`What is the type of Surface for the New Zealand F1 Futures Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the type of Surface for the New Zealand F1 Futures Tournament?`:
```sql
|
SELECT "country" FROM "events" WHERE "singles_champions"='dennis blömke' AND "tournament"='germany f13 futures'; |
## Task
Generate a SQL query to answer the following question:
`In what Country will Dennis Blömke play the Germany F13 Futures Tournament?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `In what Country will Dennis Blömke play the Germany F13 Futures Tournament?`:
```sql
|
SELECT "date" FROM "events" WHERE "country"='argentina' AND "tournament"='argentina f17 futures'; |
## Task
Generate a SQL query to answer the following question:
`On what Date will the Argentina F17 Futures Tournament be played in Argentina?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "events" (
"tournament" text,
"date" text,
"city" text,
"country" text,
"surface" text,
"singles_champions" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what Date will the Argentina F17 Futures Tournament be played in Argentina?`:
```sql
|
SELECT AVG("laps") FROM "classification" WHERE "driver"='jackie stewart'; |
## Task
Generate a SQL query to answer the following question:
`What are the average laps for jackie stewart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `What are the average laps for jackie stewart?`:
```sql
|
SELECT "date" FROM "round_2" WHERE "away_team_score"='11.14 (80)'; |
## Task
Generate a SQL query to answer the following question:
`When did the away team have a score of 11.14 (80)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When did the away team have a score of 11.14 (80)?`:
```sql
|
SELECT "home_team_score" FROM "round_2" WHERE "away_team_score"='11.6 (72)'; |
## Task
Generate a SQL query to answer the following question:
`Which was the home team that had an opponent have a score of 11.6 (72)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_2" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which was the home team that had an opponent have a score of 11.6 (72)?`:
```sql
|
SELECT "result" FROM "international_goals" WHERE "venue"='fort lauderdale, florida'; |
## Task
Generate a SQL query to answer the following question:
`What is the result in fort lauderdale, florida?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result in fort lauderdale, florida?`:
```sql
|
SELECT "venue" FROM "international_goals" WHERE "goal"<2; |
## Task
Generate a SQL query to answer the following question:
`What venue had less than 2 goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_goals" (
"goal" real,
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What venue had less than 2 goals?`:
```sql
|
SELECT AVG("crowd") FROM "round_9" WHERE "away_team"='fitzroy'; |
## Task
Generate a SQL query to answer the following question:
`What was the attendance when Fitzroy played as the away team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_9" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the attendance when Fitzroy played as the away team?`:
```sql
|
SELECT "trainer" FROM "winners_of_the_colonial_turf_cup" WHERE "owner"='robert courtney'; |
## Task
Generate a SQL query to answer the following question:
`Who was the trainer with Robert Courtney was owner?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_colonial_turf_cup" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the trainer with Robert Courtney was owner?`:
```sql
|
SELECT MIN("year") FROM "winners_of_the_colonial_turf_cup" WHERE "trainer"='jeff mullins'; |
## Task
Generate a SQL query to answer the following question:
`What year was Jeff Mullins?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "winners_of_the_colonial_turf_cup" (
"year" real,
"winner" text,
"jockey" text,
"trainer" text,
"owner" text,
"distance_miles" text,
"time" text
);
### SQL
Given the database schema, here is the SQL query that answers `What year was Jeff Mullins?`:
```sql
|
SELECT SUM("grid") FROM "classification" WHERE "driver"='richard robarts' AND "laps"<36; |
## Task
Generate a SQL query to answer the following question:
`In what grid did Richard Robarts make 36 laps?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `In what grid did Richard Robarts make 36 laps?`:
```sql
|
SELECT SUM("laps") FROM "classification" WHERE "grid"=18; |
## Task
Generate a SQL query to answer the following question:
`How many laps were completed in grid 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many laps were completed in grid 18?`:
```sql
|
SELECT "venue" FROM "achievements" WHERE "result"='12th'; |
## Task
Generate a SQL query to answer the following question:
`What was the venue where the result was 12th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "achievements" (
"year" real,
"tournament" text,
"venue" text,
"result" text,
"event" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the venue where the result was 12th?`:
```sql
|
SELECT "species" FROM "group" WHERE "genes">'2,030'; |
## Task
Generate a SQL query to answer the following question:
`What species has more than 2,030 genes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What species has more than 2,030 genes?`:
```sql
|
SELECT "genes" FROM "group" WHERE "species"='rubrobacter xylanophilus'; |
## Task
Generate a SQL query to answer the following question:
`How many genes in the species Rubrobacter Xylanophilus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many genes in the species Rubrobacter Xylanophilus?`:
```sql
|
SELECT MIN("genes") FROM "group" WHERE "species"='rubrobacter xylanophilus'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of genes in Rubrobacter Xylanophilus?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of genes in Rubrobacter Xylanophilus?`:
```sql
|
SELECT AVG("base_pairs") FROM "group" WHERE "genes"=784; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of base pairs with 784 genes?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of base pairs with 784 genes?`:
```sql
|
SELECT MIN("genes") FROM "group" WHERE "base_pairs"<'927,303' AND "species"='acidobacteria bacterium'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of genes with less than 927,303 base pairs in Acidobacteria Bacterium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "group" (
"species" text,
"strain" text,
"type" text,
"base_pairs" real,
"genes" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of genes with less than 927,303 base pairs in Acidobacteria Bacterium?`:
```sql
|
SELECT COUNT("points") FROM "ippt_standards" WHERE "standing_broad_jump_cm"='207-215'; |
## Task
Generate a SQL query to answer the following question:
`How many points are obtained when a standing broad jump is 207-215 cm?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are obtained when a standing broad jump is 207-215 cm?`:
```sql
|
SELECT MAX("points") FROM "ippt_standards" WHERE "grade"='a'; |
## Task
Generate a SQL query to answer the following question:
`How many points are there, when the grade is A?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many points are there, when the grade is A?`:
```sql
|
SELECT "grade" FROM "ippt_standards" WHERE "chin_up_reps"='3'; |
## Task
Generate a SQL query to answer the following question:
`If a person does 3 chin-up reps, what grade do they obtain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `If a person does 3 chin-up reps, what grade do they obtain?`:
```sql
|
SELECT "shuttle_run_sec" FROM "ippt_standards" WHERE "points"=2; |
## Task
Generate a SQL query to answer the following question:
`How many seconds is a shuttle run that give 2 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ippt_standards" (
"grade" text,
"points" real,
"sit_up_reps" text,
"standing_broad_jump_cm" text,
"chin_up_reps" text,
"shuttle_run_sec" text,
"2_4km_run_min_sec" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seconds is a shuttle run that give 2 points?`:
```sql
|
SELECT "outgoing_manager" FROM "away" WHERE "manner_of_departure"='resigned' AND "team"='real zaragoza' AND "replaced_by"='manolo villanova'; |
## Task
Generate a SQL query to answer the following question:
`Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "away" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"position_in_the_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Tell me the outgoing manager for resigned and replaced by manolo villanova for real zaragoza`:
```sql
|
SELECT "replaced_by" FROM "away" WHERE "team"='racing santander'; |
## Task
Generate a SQL query to answer the following question:
`Name the replaced by for racing santander`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "away" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"position_in_the_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the replaced by for racing santander`:
```sql
|
SELECT AVG("grid") FROM "moto_gp_classification" WHERE "laps"=14; |
## Task
Generate a SQL query to answer the following question:
`What Grid had 14 laps completed?`
### 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 `What Grid had 14 laps completed?`:
```sql
|
SELECT MIN("grid") FROM "moto_gp_classification" WHERE "laps"=25 AND "manufacturer"='honda' AND "time_retired"='+54.103'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?`
### 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 `What is the lowest Grid with 25 laps manufactured by Honda with a time of +54.103?`:
```sql
|
SELECT COUNT("laps") FROM "moto_gp_classification" WHERE "time_retired"='+1:02.315'; |
## Task
Generate a SQL query to answer the following question:
`How many laps were timed at +1:02.315?`
### 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 were timed at +1:02.315?`:
```sql
|
SELECT "pts_rank" FROM "all_time_playoffs_records" WHERE "club"='chicago fire'; |
## Task
Generate a SQL query to answer the following question:
`What is the points ranking of Chicago Fire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "all_time_playoffs_records" (
"pts_rank" text,
"club" text,
"appearances_vs_seasons" text,
"appearances_percetages" text,
"ppg_rank" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the points ranking of Chicago Fire?`:
```sql
|
SELECT "opponent" FROM "mixed_martial_arts_record" WHERE "time"='1:16'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent with a time of 1:16?`
### 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,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent with a time of 1:16?`:
```sql
|
SELECT "round" FROM "mixed_martial_arts_record" WHERE "method"='submission'; |
## Task
Generate a SQL query to answer the following question:
`What round has a method of submission?`
### 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,
"round" text,
"time" text,
"location" text
);
### SQL
Given the database schema, here is the SQL query that answers `What round has a method of submission?`:
```sql
|
SELECT "competition" FROM "international_career" WHERE "result"='win' AND "date"='august 15, 2012'; |
## Task
Generate a SQL query to answer the following question:
`Which competition did he win on August 15, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which competition did he win on August 15, 2012?`:
```sql
|
SELECT "venue" FROM "international_career" WHERE "date"='august 15, 2012'; |
## Task
Generate a SQL query to answer the following question:
`Where was the competition on August 15, 2012?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the competition on August 15, 2012?`:
```sql
|
SELECT "date" FROM "international_career" WHERE "score"='3-0'; |
## Task
Generate a SQL query to answer the following question:
`When was the competition that had a score of 3-0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the competition that had a score of 3-0?`:
```sql
|
SELECT "result" FROM "international_career" WHERE "competition"='uefa euro 2008 qualifying'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the UEFA Euro 2008 Qualifying competition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "international_career" (
"date" text,
"venue" text,
"score" text,
"result" text,
"competition" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the result of the UEFA Euro 2008 Qualifying competition?`:
```sql
|
SELECT "nationality" FROM "round_seven" WHERE "player"='steven anthony'; |
## Task
Generate a SQL query to answer the following question:
`What nationality is Steven Anthony?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What nationality is Steven Anthony?`:
```sql
|
SELECT MAX("pick_num") FROM "round_seven" WHERE "nationality"='slovakia'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest pick number from Slovakia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest pick number from Slovakia?`:
```sql
|
SELECT MIN("pick_num") FROM "round_seven" WHERE "league_from"='russian major league'; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest pick number for the Russian Major League?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest pick number for the Russian Major League?`:
```sql
|
SELECT "position" FROM "round_seven" WHERE "league_from"='russian major league'; |
## Task
Generate a SQL query to answer the following question:
`What team is from the Russian Major League?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `What team is from the Russian Major League?`:
```sql
|
SELECT "league_from" FROM "round_seven" WHERE "pick_num">204 AND "nationality"='canada' AND "position"='lw'; |
## Task
Generate a SQL query to answer the following question:
`Which league has a pick number larger than 204 from Canada and LW as the position?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"league_from" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which league has a pick number larger than 204 from Canada and LW as the position?`:
```sql
|
SELECT "player" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='aurillac'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from Aurillac?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2007_rugby_world_cup_squads" (
"player" text,
"position" text,
"date_of_birth_age" text,
"caps" real,
"club_province" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from Aurillac?`:
```sql
|
SELECT "venue" FROM "round_11" WHERE "away_team_score"='13.14 (92)'; |
## Task
Generate a SQL query to answer the following question:
`Where did the away team score 13.14 (92)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the away team score 13.14 (92)?`:
```sql
|
SELECT "points" FROM "pairs" WHERE "rank">1 AND "places"=33; |
## Task
Generate a SQL query to answer the following question:
`what is the points when the rank is more than 1 and the places is 33?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the points when the rank is more than 1 and the places is 33?`:
```sql
|
SELECT MAX("rank") FROM "pairs" WHERE "nation"='east germany' AND "points"=128.98 AND "places"<70; |
## Task
Generate a SQL query to answer the following question:
`what is the highest rank for east germany with points of 128.98 and places less than 70?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the highest rank for east germany with points of 128.98 and places less than 70?`:
```sql
|
SELECT SUM("points") FROM "pairs" WHERE "rank"=12; |
## Task
Generate a SQL query to answer the following question:
`what is the points for rank 12?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
### SQL
Given the database schema, here is the SQL query that answers `what is the points for rank 12?`:
```sql
|
SELECT "away_team" FROM "round_12" WHERE "away_team_score"='15.9 (99)'; |
## Task
Generate a SQL query to answer the following question:
`Which team has an away score of 15.9 (99)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has an away score of 15.9 (99)?`:
```sql
|
SELECT "away_team_score" FROM "round_12" WHERE "home_team_score"='17.12 (114)'; |
## Task
Generate a SQL query to answer the following question:
`Which team has a home team score of 17.12 (114)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_12" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which team has a home team score of 17.12 (114)?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "away_team_score"='15.9 (99)'; |
## Task
Generate a SQL query to answer the following question:
`Which home team score has an Away team score of 15.9 (99)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which home team score has an Away team score of 15.9 (99)?`:
```sql
|
SELECT "home_team_score" FROM "round_14" WHERE "away_team_score"='15.9 (99)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Home team with Away team score of 15.9 (99)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_14" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Home team with Away team score of 15.9 (99)?`:
```sql
|
SELECT "home_team" FROM "round_3" WHERE "away_team_score"='13.11 (89)'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the home team that played an away team who scored 13.11 (89)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of the home team that played an away team who scored 13.11 (89)?`:
```sql
|
SELECT "away_team_score" FROM "round_3" WHERE "crowd">'19,000' AND "away_team"='carlton'; |
## Task
Generate a SQL query to answer the following question:
`How much did the away team Carlton score when the crowd was larger than 19,000?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_3" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How much did the away team Carlton score when the crowd was larger than 19,000?`:
```sql
|
SELECT AVG("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "reg_gp"=97 AND "pick_num"<70; |
## Task
Generate a SQL query to answer the following question:
`What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average PI GP when the pick is smaller tha 70 and the reg GP is 97?`:
```sql
|
SELECT "gloss" FROM "tamazight_schwa_epenthesis" WHERE "pronunciation"='[χdəm]'; |
## Task
Generate a SQL query to answer the following question:
`Name the gloss for [χdəm]`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tamazight_schwa_epenthesis" (
"environment" text,
"realization" text,
"example" text,
"pronunciation" text,
"gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the gloss for [χdəm]`:
```sql
|
SELECT "realization" FROM "tamazight_schwa_epenthesis" WHERE "gloss"='''to be, to do'''; |
## Task
Generate a SQL query to answer the following question:
`Name the realization for 'to be, to do'`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tamazight_schwa_epenthesis" (
"environment" text,
"realization" text,
"example" text,
"pronunciation" text,
"gloss" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the realization for 'to be, to do'`:
```sql
|
SELECT SUM("crowd") FROM "round_11" WHERE "away_team_score"='14.18 (102)'; |
## Task
Generate a SQL query to answer the following question:
`What is the Crowd number for the Away team whose score is 14.18 (102)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the Crowd number for the Away team whose score is 14.18 (102)?`:
```sql
|
SELECT MIN("places") FROM "pairs" WHERE "name"='sherri baier / robin cowan' AND "rank"<1; |
## Task
Generate a SQL query to answer the following question:
`What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"places" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the lowest number of places for Sherri Baier / Robin Cowan when ranked lower than 1?`:
```sql
|
SELECT "platform" FROM "nintendo_ds" WHERE "system"='nintendo ds' AND "name"='nds4droid'; |
## Task
Generate a SQL query to answer the following question:
`What platform is nds4droid on for the nintendo ds?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nintendo_ds" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What platform is nds4droid on for the nintendo ds?`:
```sql
|
SELECT "name" FROM "nintendo_ds" WHERE "license"='proprietary (available on inquiry)'; |
## Task
Generate a SQL query to answer the following question:
`Who has a license of proprietary (available on inquiry)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nintendo_ds" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a license of proprietary (available on inquiry)?`:
```sql
|
SELECT "platform" FROM "nintendo_ds" WHERE "system"='nintendo ds' AND "license"='gpl v2' AND "name"='nds4droid'; |
## Task
Generate a SQL query to answer the following question:
`What platform is nds4droid on for the nintendo ds with a license of gpl v2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nintendo_ds" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What platform is nds4droid on for the nintendo ds with a license of gpl v2?`:
```sql
|
SELECT "system" FROM "nintendo_ds" WHERE "current_version"='1.4e'; |
## Task
Generate a SQL query to answer the following question:
`What system has a current version of 1.4e?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nintendo_ds" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
);
### SQL
Given the database schema, here is the SQL query that answers `What system has a current version of 1.4e?`:
```sql
|
SELECT "name" FROM "nintendo_ds" WHERE "license"='gpl v2' AND "current_version"='0.9.9'; |
## Task
Generate a SQL query to answer the following question:
`Who has a licence of gpl v2 and a current version of 0.9.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nintendo_ds" (
"name" text,
"current_version" text,
"system" text,
"platform" text,
"license" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has a licence of gpl v2 and a current version of 0.9.9?`:
```sql
|
SELECT "performance" FROM "performance_progression" WHERE "season"=1999 AND "place"='bydgoszcz, poland'; |
## Task
Generate a SQL query to answer the following question:
`What was the performance length of the 1999 season in bydgoszcz, poland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_progression" (
"discipline" text,
"season" real,
"performance" text,
"place" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the performance length of the 1999 season in bydgoszcz, poland?`:
```sql
|
SELECT "performance" FROM "performance_progression" WHERE "season">2003 AND "discipline"='3000 m'; |
## Task
Generate a SQL query to answer the following question:
`What were the performance lengths in the 3000 m events in and after 2003?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_progression" (
"discipline" text,
"season" real,
"performance" text,
"place" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the performance lengths in the 3000 m events in and after 2003?`:
```sql
|
SELECT COUNT("season") FROM "performance_progression" WHERE "place"='santiago de chile, chile'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons took place in santiago de chile, chile?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_progression" (
"discipline" text,
"season" real,
"performance" text,
"place" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many seasons took place in santiago de chile, chile?`:
```sql
|
SELECT "season" FROM "performance_progression" WHERE "date"='may 11, 2002'; |
## Task
Generate a SQL query to answer the following question:
`During which Season did the may 11, 2002 event take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "performance_progression" (
"discipline" text,
"season" real,
"performance" text,
"place" text,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `During which Season did the may 11, 2002 event take place?`:
```sql
|
SELECT AVG("round") FROM "nfl_draft" WHERE "college"='california'; |
## Task
Generate a SQL query to answer the following question:
`What is the average round for players from california?`
### 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,
"college" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average round for players from california?`:
```sql
|
SELECT "nationality" FROM "draft_picks" WHERE "nhl_team"='vancouver canucks' AND "college_junior_club_team_league"='swift current broncos (whl)' AND "round"=8; |
## Task
Generate a SQL query to answer the following question:
`What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team_league" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the Nationality of Round 8 Vancouver Canucks NHL Team of Swift Current Broncos (WHL)?`:
```sql
|
SELECT "date" FROM "round_11" WHERE "away_team_score"='14.10 (94)'; |
## Task
Generate a SQL query to answer the following question:
`If the Away team score was 14.10 (94), which Date was that?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Away team score was 14.10 (94), which Date was that?`:
```sql
|
SELECT "away_team" FROM "round_11" WHERE "home_team_score"='20.16 (136)'; |
## Task
Generate a SQL query to answer the following question:
`When the Home team score was 20.16 (136), which Away team were they playing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Home team score was 20.16 (136), which Away team were they playing?`:
```sql
|
SELECT "home_team" FROM "round_11" WHERE "date"='8 june 1981' AND "home_team_score"='12.10 (82)'; |
## Task
Generate a SQL query to answer the following question:
`If the Home team score was 12.10 (82) on the Date of 8 june 1981, which Home team was playing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `If the Home team score was 12.10 (82) on the Date of 8 june 1981, which Home team was playing?`:
```sql
|
SELECT "home_team_score" FROM "round_11" WHERE "away_team"='essendon'; |
## Task
Generate a SQL query to answer the following question:
`When the Away team of essendon was playing, what was the Home team's score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `When the Away team of essendon was playing, what was the Home team's score?`:
```sql
|
SELECT "away_team" FROM "round_11" WHERE "venue"='western oval'; |
## Task
Generate a SQL query to answer the following question:
`For the Venue of western oval, what's the Away team playing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_11" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `For the Venue of western oval, what's the Away team playing?`:
```sql
|
SELECT "venue" FROM "round_6" WHERE "home_team_score"='9.12 (66)'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has a Home team score of 9.12 (66)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has a Home team score of 9.12 (66)?`:
```sql
|
SELECT COUNT("crowd") FROM "round_6" WHERE "away_team_score"='7.13 (55)'; |
## Task
Generate a SQL query to answer the following question:
`How large is the crowd with an Away team score of 7.13 (55)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `How large is the crowd with an Away team score of 7.13 (55)?`:
```sql
|
SELECT "venue" FROM "round_6" WHERE "away_team_score"='12.11 (83)'; |
## Task
Generate a SQL query to answer the following question:
`Which venue has an Away team score of 12.11 (83)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which venue has an Away team score of 12.11 (83)?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"='7'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on week 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"home_away_game" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on week 7?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "week"='5'; |
## Task
Generate a SQL query to answer the following question:
`Who was the opponent on week 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"week" text,
"date" text,
"opponent" text,
"home_away_game" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the opponent on week 5?`:
```sql
|
SELECT "leading_scorer" FROM "march" WHERE "score"='107–97'; |
## Task
Generate a SQL query to answer the following question:
`Who was the leading scorer of the game that had a score of 107–97?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the leading scorer of the game that had a score of 107–97?`:
```sql
|
SELECT "visitor" FROM "march" WHERE "home"='suns'; |
## Task
Generate a SQL query to answer the following question:
`Who was the visiting team when the Suns were the home team?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who was the visiting team when the Suns were the home team?`:
```sql
|
SELECT AVG("ties") FROM "coaching_record_vs_other_teams" WHERE "losses"<3 AND "wins"<5 AND "win_pct"='0.800' AND "team"='detroit lions'; |
## Task
Generate a SQL query to answer the following question:
`What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "coaching_record_vs_other_teams" (
"team" text,
"wins" real,
"losses" real,
"ties" real,
"win_pct" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the average number of ties for the Detroit Lions team when they have fewer than 5 wins, fewer than 3 losses, and a win percentage of 0.800?`:
```sql
|
SELECT MAX("year") FROM "titles_5" WHERE "score"='4–6, 6–3, 7–5'; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year in which the score was 4–6, 6–3, 7–5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "titles_5" (
"year" real,
"championship" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year in which the score was 4–6, 6–3, 7–5?`:
```sql
|
SELECT "player" FROM "2006_boys_team" WHERE "height"='6-7'; |
## Task
Generate a SQL query to answer the following question:
`Which player has a height of 6-7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has a height of 6-7?`:
```sql
|
SELECT "nba_draft" FROM "2006_boys_team" WHERE "hometown"='washington, dc'; |
## Task
Generate a SQL query to answer the following question:
`What is the NBA draft result of the player from Washington, DC?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA draft result of the player from Washington, DC?`:
```sql
|
SELECT "nba_draft" FROM "2006_boys_team" WHERE "college"='kansas'; |
## Task
Generate a SQL query to answer the following question:
`What is the NBA draft result of the player from the College of Kansas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the NBA draft result of the player from the College of Kansas?`:
```sql
|
SELECT "player" FROM "2006_boys_team" WHERE "school"='la costa canyon high school'; |
## Task
Generate a SQL query to answer the following question:
`Who is the player from La Costa Canyon High School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the player from La Costa Canyon High School?`:
```sql
|
SELECT "height" FROM "2006_boys_team" WHERE "school"='nacogdoches high school'; |
## Task
Generate a SQL query to answer the following question:
`How tall is the player from Nacogdoches High School?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `How tall is the player from Nacogdoches High School?`:
```sql
|
SELECT "school" FROM "2006_boys_team" WHERE "hometown"='dallas, tx'; |
## Task
Generate a SQL query to answer the following question:
`What is the school of the player from Dallas, TX?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2006_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text,
"nba_draft" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the school of the player from Dallas, TX?`:
```sql
|
SELECT "result" FROM "1970_1979" WHERE "competition"='world group, consolation round'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for world group, consolation round?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "1970_1979" (
"year" text,
"competition" text,
"date" text,
"location" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the result for world group, consolation round?`:
```sql
|
SELECT SUM("long") FROM "wide_receivers" WHERE "avg">8 AND "rec">3 AND "player"='trandon harvey' AND "td_s">28; |
## Task
Generate a SQL query to answer the following question:
`What was the long of Trandon Harvey who had an greater than 8 average, more than 3 rec., and more than 28 TD's?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "wide_receivers" (
"player" text,
"rec" real,
"yards" real,
"avg" real,
"td_s" real,
"long" real
);
### SQL
Given the database schema, here is the SQL query that answers `What was the long of Trandon Harvey who had an greater than 8 average, more than 3 rec., and more than 28 TD's?`:
```sql
|
SELECT SUM("attendance") FROM "fifth_round_proper" WHERE "tie_no"='1'; |
## Task
Generate a SQL query to answer the following question:
`How many attended tie number 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended tie number 1?`:
```sql
|
SELECT MAX("attendance") FROM "fifth_round_proper" WHERE "tie_no"='3'; |
## Task
Generate a SQL query to answer the following question:
`How many attended tie number 3?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "fifth_round_proper" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many attended tie number 3?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.