output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT COUNT("date") FROM "game_log" WHERE "high_points"='Stephen Curry , Dorell Wright (27)'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of date for stephen curry , dorell wright (27)`
### 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 `Name the number of date for stephen curry , dorell wright (27)`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "game"=77; |
## Task
Generate a SQL query to answer the following question:
`Name the high rebounds for 77 game`
### 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 `Name the high rebounds for 77 game`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='November 10'; |
## Task
Generate a SQL query to answer the following question:
`What was the record after the game on November 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the record after the game on November 10?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "high_points"='Monta Ellis (29)'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when the hight points is Monta Ellis (29)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the hight points is Monta Ellis (29)?`:
```sql
|
SELECT COUNT("team") FROM "game_log" WHERE "high_points"='David Lee (31)'; |
## Task
Generate a SQL query to answer the following question:
`How many teams have hight points listed as David Lee (31)?`
### 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 `How many teams have hight points listed as David Lee (31)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_points"='Stephen Curry (32)'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when the high points is listed as Stephen Curry (32)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the high points is listed as Stephen Curry (32)?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='January 7'; |
## Task
Generate a SQL query to answer the following question:
`What is the record when the date is January 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the record when the date is January 7?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "team"='New Orleans'; |
## Task
Generate a SQL query to answer the following question:
`What is the date when the team is listed as New Orleans?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the date when the team is listed as New Orleans?`:
```sql
|
SELECT "team" FROM "game_log" WHERE "high_assists"='Darren Collison (7)'; |
## Task
Generate a SQL query to answer the following question:
`What was the team where Darren Collison (7) scored high assists?`
### 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 was the team where Darren Collison (7) scored high assists?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "high_points"='Roy Hibbert (27)'; |
## Task
Generate a SQL query to answer the following question:
`When did the Roy Hibbert (27) did the high 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,
"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 `When did the Roy Hibbert (27) did the high points?`:
```sql
|
SELECT COUNT("game") FROM "game_log" WHERE "high_rebounds"='Roy Hibbert (16)'; |
## Task
Generate a SQL query to answer the following question:
`In how many different games did Roy Hibbert (16) did the most high rebounds?`
### 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 `In how many different games did Roy Hibbert (16) did the most high rebounds?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "high_points"='Danny Granger (30)'; |
## Task
Generate a SQL query to answer the following question:
`What was the score of the game in which Danny Granger (30) did the high 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,
"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 was the score of the game in which Danny Granger (30) did the high points?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "team"='Houston'; |
## Task
Generate a SQL query to answer the following question:
`Who scored the most points when the Bucks played against Houston?`
### 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 `Who scored the most points when the Bucks played against Houston?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=22; |
## Task
Generate a SQL query to answer the following question:
`What date was game number 22 on?`
### 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 was game number 22 on?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "date"='December 10'; |
## Task
Generate a SQL query to answer the following question:
`How many people scored the most points during the game on December 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many people scored the most points during the game on December 10?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Chicago'; |
## Task
Generate a SQL query to answer the following question:
`When the team is chicago what is the location attendence?`
### 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 `When the team is chicago what is the location attendence?`:
```sql
|
SELECT COUNT("score") FROM "game_log" WHERE "team"='Orlando'; |
## Task
Generate a SQL query to answer the following question:
`What is the score when the team is Orlando?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"location_attendance" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the score when the team is Orlando?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "date"='March 26'; |
## Task
Generate a SQL query to answer the following question:
`What was the score in the game on March 26?`
### 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 was the score in the game on March 26?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "team"='Philadelphia'; |
## Task
Generate a SQL query to answer the following question:
`What was the record when the Clippers played Philadelphia? `
### 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 was the record when the Clippers played Philadelphia? `:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"=5; |
## Task
Generate a SQL query to answer the following question:
`What location and attendance were there for game 5?`
### 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 location and attendance were there for game 5?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "high_points"='Rudy Gay (12)'; |
## Task
Generate a SQL query to answer the following question:
`Which game did rudy gay (12) have the highest 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,
"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 `Which game did rudy gay (12) have the highest points?`:
```sql
|
SELECT COUNT("high_assists") FROM "game_log" WHERE "team"='Caja Laboral'; |
## Task
Generate a SQL query to answer the following question:
`How many high assists where there for the team of caja laboral?`
### 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 `How many high assists where there for the team of caja laboral?`:
```sql
|
SELECT "game" FROM "game_log" WHERE "high_rebounds"='Marc Gasol (10)'; |
## Task
Generate a SQL query to answer the following question:
`Which game did marc gasol (10) have the high rebounds?`
### 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 `Which game did marc gasol (10) have the high rebounds?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "date"='October 6'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high assists on october 6?`
### 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 `Who had the high assists on october 6?`:
```sql
|
SELECT COUNT("high_assists") FROM "game_log" WHERE "location_attendance"='FedExForum 11,283'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of high assists for fedexforum 11,283`
### 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 `Name the total number of high assists for fedexforum 11,283`:
```sql
|
SELECT MIN("game") FROM "game_log" WHERE "location_attendance"='US Airways Center 16,470'; |
## Task
Generate a SQL query to answer the following question:
`Name the most game for us airways center 16,470`
### 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 `Name the most game for us airways center 16,470`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "team"='Detroit'; |
## Task
Generate a SQL query to answer the following question:
`Who and what were the high points player for the game against Detroit?`
### 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 `Who and what were the high points player for the game against Detroit?`:
```sql
|
SELECT COUNT("game_site") FROM "table1_27764201_2" WHERE "opponent"='Rhein Fire'; |
## Task
Generate a SQL query to answer the following question:
`How many times did the Centurions play the Rhein Fire?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27764201_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many times did the Centurions play the Rhein Fire?`:
```sql
|
SELECT "game_site" FROM "table1_27764201_2" WHERE "opponent"='Hamburg Sea Devils'; |
## Task
Generate a SQL query to answer the following question:
`Where did the Centurions play the Hamburg Sea Devils?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27764201_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `Where did the Centurions play the Hamburg Sea Devils?`:
```sql
|
SELECT "kickoff" FROM "table1_27764201_2" WHERE "opponent"='Frankfurt Galaxy'; |
## Task
Generate a SQL query to answer the following question:
`What time was the kickoff against the Frankfurt Galaxy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27764201_2" (
"week" real,
"date" text,
"kickoff" text,
"opponent" text,
"final_score" text,
"team_record" text,
"game_site" text,
"attendance" real
);
### SQL
Given the database schema, here is the SQL query that answers `What time was the kickoff against the Frankfurt Galaxy?`:
```sql
|
SELECT COUNT("catches") FROM "notes" WHERE "no"=46; |
## Task
Generate a SQL query to answer the following question:
`How many total catches did the player with no. 46 have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "notes" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total catches did the player with no. 46 have?`:
```sql
|
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "replaced_by"='Jakob Michelsen'; |
## Task
Generate a SQL query to answer the following question:
`How did the manager who was replaced by Jakob Michelsen depart?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `How did the manager who was replaced by Jakob Michelsen depart?`:
```sql
|
SELECT "position_in_table" FROM "managerial_changes" WHERE "team"='AB'; |
## Task
Generate a SQL query to answer the following question:
`What was the AB team's position in table?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the AB team's position in table?`:
```sql
|
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Kim Fogh'; |
## Task
Generate a SQL query to answer the following question:
`On what date did Kim Fogh replace the previous manager?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `On what date did Kim Fogh replace the previous manager?`:
```sql
|
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Thomas Thomasberg'; |
## Task
Generate a SQL query to answer the following question:
`What was the vacancy date for Thomas Thomasberg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the vacancy date for Thomas Thomasberg?`:
```sql
|
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='Thomas Thomasberg'; |
## Task
Generate a SQL query to answer the following question:
`Which manager was replaced by Thomas Thomasberg?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text,
"position_in_table" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which manager was replaced by Thomas Thomasberg?`:
```sql
|
SELECT MAX("total_dismissals") FROM "table1_27771406_1" WHERE "club"='Guyana'; |
## Task
Generate a SQL query to answer the following question:
`How many total dismissals did the player for Guyana have?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27771406_1" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many total dismissals did the player for Guyana have?`:
```sql
|
SELECT "club" FROM "table1_27771406_1" WHERE "tests"=2; |
## Task
Generate a SQL query to answer the following question:
`The player for what club had 2 tests?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27771406_1" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `The player for what club had 2 tests?`:
```sql
|
SELECT MAX("stumpings") FROM "table1_27771406_1"; |
## Task
Generate a SQL query to answer the following question:
`What is the most amount of stumpings any player had? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27771406_1" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most amount of stumpings any player had? `:
```sql
|
SELECT "club" FROM "table1_27771406_1" WHERE "player"='Cyril Christiani'; |
## Task
Generate a SQL query to answer the following question:
`What club did Cyril Christiani play for? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27771406_1" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `What club did Cyril Christiani play for? `:
```sql
|
SELECT MIN("catches") FROM "table1_27771406_1" WHERE "player"='Clifford McWatt'; |
## Task
Generate a SQL query to answer the following question:
`How many catches did Clifford McWatt have? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27771406_1" (
"no" real,
"player" text,
"club" text,
"test_career" text,
"tests" real,
"catches" real,
"stumpings" real,
"total_dismissals" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many catches did Clifford McWatt have? `:
```sql
|
SELECT "points_margin" FROM "by_season" WHERE "top_tens"=24 AND "owner"='David Pearson'; |
## Task
Generate a SQL query to answer the following question:
`Name the points for top tens being 24 and ownder david pearson`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"driver" text,
"owner" text,
"number" text,
"make" text,
"starts" text,
"wins" real,
"top_tens" real,
"poles" real,
"points_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the points for top tens being 24 and ownder david pearson`:
```sql
|
SELECT "starts" FROM "by_season" WHERE "driver"='Bobby Labonte'; |
## Task
Generate a SQL query to answer the following question:
`Name the starts for bobby labonte`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"driver" text,
"owner" text,
"number" text,
"make" text,
"starts" text,
"wins" real,
"top_tens" real,
"poles" real,
"points_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the starts for bobby labonte`:
```sql
|
SELECT "poles" FROM "by_season" WHERE "season"=2006; |
## Task
Generate a SQL query to answer the following question:
`Name the poles for season 2006`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"driver" text,
"owner" text,
"number" text,
"make" text,
"starts" text,
"wins" real,
"top_tens" real,
"poles" real,
"points_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the poles for season 2006`:
```sql
|
SELECT "production_code" FROM "table1_27776266_1" WHERE "no_in_series"=55; |
## Task
Generate a SQL query to answer the following question:
`What was the production code of the episode no. 55 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27776266_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code of the episode no. 55 in the series?`:
```sql
|
SELECT "production_code" FROM "table1_27776266_1" WHERE "u_s_viewers_million"='14.79'; |
## Task
Generate a SQL query to answer the following question:
`What was the production code of the episode with an audience of 14.79 million in the US?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27776266_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the production code of the episode with an audience of 14.79 million in the US?`:
```sql
|
SELECT "directed_by" FROM "table1_27776266_1" WHERE "u_s_viewers_million"='14.11'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with an audience of 14.11 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27776266_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episode with an audience of 14.11 million?`:
```sql
|
SELECT "title" FROM "table1_27776266_1" WHERE "production_code"='3X6404'; |
## Task
Generate a SQL query to answer the following question:
`What was the title of the episode with a production code of 3x6404?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27776266_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" text,
"u_s_viewers_million" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the title of the episode with a production code of 3x6404?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_ten" WHERE "pick"=255; |
## Task
Generate a SQL query to answer the following question:
`Which school players have a number of 255`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_ten" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which school players have a number of 255`:
```sql
|
SELECT "college_junior_club_team" FROM "round_ten" WHERE "player"='Wes Swinson'; |
## Task
Generate a SQL query to answer the following question:
`what educational institute does wes swinson attend`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_ten" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `what educational institute does wes swinson attend`:
```sql
|
SELECT "position" FROM "round_ten" WHERE "player"='Rick Schuhwerk'; |
## Task
Generate a SQL query to answer the following question:
`which part on the team does rick schuhwerk play`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_ten" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `which part on the team does rick schuhwerk play`:
```sql
|
SELECT "player" FROM "round_four" WHERE "college_junior_club_team"='Brandon Wheat Kings (WHL)'; |
## Task
Generate a SQL query to answer the following question:
`For college/junior/club team is brandon wheat kings (whl) mention all the player name`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For college/junior/club team is brandon wheat kings (whl) mention all the player name`:
```sql
|
SELECT MIN("pick") FROM "round_four" WHERE "player"='Jamal Mayers'; |
## Task
Generate a SQL query to answer the following question:
`For player is jamal mayers mention the minimum pick`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For player is jamal mayers mention the minimum pick`:
```sql
|
SELECT COUNT("position") FROM "round_four" WHERE "player"='John Jakopin'; |
## Task
Generate a SQL query to answer the following question:
`For player is john jakopin mention the total number of position `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For player is john jakopin mention the total number of position `:
```sql
|
SELECT "college_junior_club_team" FROM "round_four" WHERE "nhl_team"='San Jose Sharks'; |
## Task
Generate a SQL query to answer the following question:
`For nhl team is san jose sharks mention all the college/junior/club team `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For nhl team is san jose sharks mention all the college/junior/club team `:
```sql
|
SELECT "college_junior_club_team" FROM "round_four" WHERE "player"='Adam Wiesel'; |
## Task
Generate a SQL query to answer the following question:
`For player is adam wiesel mention all the college/junior/club team `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_four" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `For player is adam wiesel mention all the college/junior/club team `:
```sql
|
SELECT COUNT("pick") FROM "round_two" WHERE "player"='Vlastimil Kroupa'; |
## Task
Generate a SQL query to answer the following question:
`How many values are displayed under pick for Vlastimil Kroupa?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many values are displayed under pick for Vlastimil Kroupa?`:
```sql
|
SELECT COUNT("position") FROM "round_two" WHERE "player"='Janne Niinimaa'; |
## Task
Generate a SQL query to answer the following question:
`How many positions does Janne Niinimaa play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many positions does Janne Niinimaa play?`:
```sql
|
SELECT COUNT("college_junior_club_team") FROM "round_two" WHERE "player"='Lee Sorochan'; |
## Task
Generate a SQL query to answer the following question:
`How many teams does Lee Sorochan play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams does Lee Sorochan play for?`:
```sql
|
SELECT "player" FROM "round_two" WHERE "nhl_team"='Chicago Blackhawks'; |
## Task
Generate a SQL query to answer the following question:
`What player belongs to the Chicago Blackhawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What player belongs to the Chicago Blackhawks?`:
```sql
|
SELECT COUNT("nhl_team") FROM "round_two" WHERE "player"='Maxim Bets'; |
## Task
Generate a SQL query to answer the following question:
`How many teams does Maxim Bets play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_two" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many teams does Maxim Bets play for?`:
```sql
|
SELECT MIN("pick") FROM "round_eleven" WHERE "nhl_team"='Florida Panthers'; |
## Task
Generate a SQL query to answer the following question:
`What was the minimum pick by the Florida Panthers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_eleven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the minimum pick by the Florida Panthers?`:
```sql
|
SELECT "nhl_team" FROM "round_seven" WHERE "player"='Ryan Meade'; |
## Task
Generate a SQL query to answer the following question:
`What NHL team picked Ryan Meade for the draft?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team picked Ryan Meade for the draft?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_seven" WHERE "player"='Ryan Golden'; |
## Task
Generate a SQL query to answer the following question:
`What college team did Ryan Golden come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college team did Ryan Golden come from?`:
```sql
|
SELECT COUNT("nationality") FROM "round_seven" WHERE "pick"=179; |
## Task
Generate a SQL query to answer the following question:
`How many different nationalities is pick number 179?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different nationalities is pick number 179?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_seven" WHERE "nhl_team"='Pittsburgh Penguins'; |
## Task
Generate a SQL query to answer the following question:
`What college team did the pick for Pittsburgh Penguins come from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college team did the pick for Pittsburgh Penguins come from?`:
```sql
|
SELECT "nhl_team" FROM "round_seven" WHERE "player"='Tom White'; |
## Task
Generate a SQL query to answer the following question:
`What NHL team picked Tom White?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_seven" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What NHL team picked Tom White?`:
```sql
|
SELECT MAX("weeks_in_top_10") FROM "2009_peaks" WHERE "artist"='Peter Kay'; |
## Task
Generate a SQL query to answer the following question:
`How many weeks in the top 10 was spent by a song performed by Peter Kay?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_peaks" (
"entry_date_a" text,
"single" text,
"artist" text,
"peak" real,
"peak_reached_a" text,
"weeks_in_top_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `How many weeks in the top 10 was spent by a song performed by Peter Kay?`:
```sql
|
SELECT MAX("weeks_in_top_10") FROM "2009_peaks"; |
## Task
Generate a SQL query to answer the following question:
`How long has the longest song spent in the top 10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "2009_peaks" (
"entry_date_a" text,
"single" text,
"artist" text,
"peak" real,
"peak_reached_a" text,
"weeks_in_top_10" real
);
### SQL
Given the database schema, here is the SQL query that answers `How long has the longest song spent in the top 10?`:
```sql
|
SELECT "college_junior_club_team" FROM "round_nine" WHERE "player"='Dmitri Gorenko'; |
## Task
Generate a SQL query to answer the following question:
`What college/junior/club team did dmitri gorenko play for?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What college/junior/club team did dmitri gorenko play for?`:
```sql
|
SELECT "position" FROM "round_nine" WHERE "college_junior_club_team"='Krylja Sovetov (Russia)'; |
## Task
Generate a SQL query to answer the following question:
`What position does krylja sovetov (russia) play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position does krylja sovetov (russia) play?`:
```sql
|
SELECT "position" FROM "round_nine" WHERE "player"='Barrie Moore'; |
## Task
Generate a SQL query to answer the following question:
`What position(s) does barrie moore play?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "round_nine" (
"pick" real,
"player" text,
"position" text,
"nationality" text,
"nhl_team" text,
"college_junior_club_team" text
);
### SQL
Given the database schema, here is the SQL query that answers `What position(s) does barrie moore play?`:
```sql
|
SELECT COUNT("pac_12_sports") FROM "affiliate_members" WHERE "institution"='California Polytechnic State University'; |
## Task
Generate a SQL query to answer the following question:
`How many pac-12 sports are shown for california polytechnic state university?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many pac-12 sports are shown for california polytechnic state university?`:
```sql
|
SELECT "founded" FROM "affiliate_members" WHERE "location"='Boise, Idaho'; |
## Task
Generate a SQL query to answer the following question:
`When was the institution in boise, idaho founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the institution in boise, idaho founded?`:
```sql
|
SELECT "current_conference" FROM "affiliate_members" WHERE "institution"='Boise State University'; |
## Task
Generate a SQL query to answer the following question:
`Which conference did boise state university play at?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which conference did boise state university play at?`:
```sql
|
SELECT MAX("founded") FROM "affiliate_members" WHERE "nickname"='Titans'; |
## Task
Generate a SQL query to answer the following question:
`When was the Titans founded?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `When was the Titans founded?`:
```sql
|
SELECT "institution" FROM "affiliate_members" WHERE "founded"=1932; |
## Task
Generate a SQL query to answer the following question:
`Which institution was founded in 1932?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution was founded in 1932?`:
```sql
|
SELECT "institution" FROM "affiliate_members" WHERE "location"='Bakersfield, California'; |
## Task
Generate a SQL query to answer the following question:
`Which institution was located in bakersfield, california?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "affiliate_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enrollment" real,
"nickname" text,
"current_conference" text,
"pac_12_sports" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which institution was located in bakersfield, california?`:
```sql
|
SELECT MIN("games_played") FROM "player_statistics" WHERE "total_points"=6; |
## Task
Generate a SQL query to answer the following question:
`Name the least games played for 6 points`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_statistics" (
"shirt_number" real,
"player_name" text,
"games_played" real,
"total_points" real,
"2_points" real,
"3_points" real,
"free_throw" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the least games played for 6 points`:
```sql
|
SELECT "manufacturer" FROM "by_season" WHERE "no"=50; |
## Task
Generate a SQL query to answer the following question:
`who is the manufacturer is no.50?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" real,
"driver" text,
"owner" text,
"no" real,
"manufacturer" text,
"starts" text,
"wins" real,
"top_tens" real,
"poles" real,
"points_margin" text
);
### SQL
Given the database schema, here is the SQL query that answers `who is the manufacturer is no.50?`:
```sql
|
SELECT "title" FROM "table1_27823058_1" WHERE "written_by"='Katie Palmer'; |
## Task
Generate a SQL query to answer the following question:
`Which episodes did Katie Palmer write? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27823058_1" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which episodes did Katie Palmer write? `:
```sql
|
SELECT MAX("series_num") FROM "table1_27823058_1"; |
## Task
Generate a SQL query to answer the following question:
`What's the highest series number ? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27823058_1" (
"series_num" real,
"episode_num" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
### SQL
Given the database schema, here is the SQL query that answers `What's the highest series number ? `:
```sql
|
SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Changsha 長沙'; |
## Task
Generate a SQL query to answer the following question:
`when changsha 長沙 is the commandery what is the commandery capital?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "territories_of_eastern_wu" (
"province" text,
"provincial_capital" text,
"commandery" text,
"commandery_capital" text,
"no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `when changsha 長沙 is the commandery what is the commandery capital?`:
```sql
|
SELECT MIN("no_of_counties") FROM "territories_of_eastern_wu" WHERE "commandery"='Yidu 宜都'; |
## Task
Generate a SQL query to answer the following question:
`When yidu 宜都 is the commandery what is the lowest number of countries?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "territories_of_eastern_wu" (
"province" text,
"provincial_capital" text,
"commandery" text,
"commandery_capital" text,
"no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When yidu 宜都 is the commandery what is the lowest number of countries?`:
```sql
|
SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Nanhai 南海'; |
## Task
Generate a SQL query to answer the following question:
`When nanhai 南海 is the commandery what is the commandery capital?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "territories_of_eastern_wu" (
"province" text,
"provincial_capital" text,
"commandery" text,
"commandery_capital" text,
"no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When nanhai 南海 is the commandery what is the commandery capital?`:
```sql
|
SELECT "province" FROM "territories_of_eastern_wu" WHERE "commandery_capital"='Zhang''an County 章安縣'; |
## Task
Generate a SQL query to answer the following question:
`When zhang'an county 章安縣 is the commandery capital what is the province?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "territories_of_eastern_wu" (
"province" text,
"provincial_capital" text,
"commandery" text,
"commandery_capital" text,
"no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When zhang'an county 章安縣 is the commandery capital what is the province?`:
```sql
|
SELECT "commandery_capital" FROM "territories_of_eastern_wu" WHERE "commandery"='Gaoliang 高涼'; |
## Task
Generate a SQL query to answer the following question:
`When gaoliang 高涼 is the commandery what is the commandery capital?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "territories_of_eastern_wu" (
"province" text,
"provincial_capital" text,
"commandery" text,
"commandery_capital" text,
"no_of_counties" real
);
### SQL
Given the database schema, here is the SQL query that answers `When gaoliang 高涼 is the commandery what is the commandery capital?`:
```sql
|
SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='9-10'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of episode number 9-10?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27832075_2" (
"series_num" real,
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of episode number 9-10?`:
```sql
|
SELECT "u_s_viewers_millions" FROM "table1_27832075_2" WHERE "series_num"=69; |
## Task
Generate a SQL query to answer the following question:
`How many million U.S. viewers wtched episode 69 of the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27832075_2" (
"series_num" real,
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many million U.S. viewers wtched episode 69 of the series?`:
```sql
|
SELECT "directed_by" FROM "table1_27832075_2" WHERE "episode_num"='23'; |
## Task
Generate a SQL query to answer the following question:
`Who directed episode number 23 in the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27832075_2" (
"series_num" real,
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed episode number 23 in the season?`:
```sql
|
SELECT "title" FROM "table1_27832075_2" WHERE "episode_num"='12'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of episode number 12 of the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27832075_2" (
"series_num" real,
"episode_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the name of episode number 12 of the season?`:
```sql
|
SELECT "rider_names" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Basia'; |
## Task
Generate a SQL query to answer the following question:
`What are all the Riders whose best-conditioned horse is Basia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_winners" (
"year" real,
"location" text,
"distance_miles" real,
"rider_names" text,
"horse_name" text,
"best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are all the Riders whose best-conditioned horse is Basia?`:
```sql
|
SELECT "distance_miles" FROM "world_championship_winners" WHERE "horse_name"='Koona'; |
## Task
Generate a SQL query to answer the following question:
`What was the distance (in miles) of the championship were the winning horse was Koona?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_winners" (
"year" real,
"location" text,
"distance_miles" real,
"rider_names" text,
"horse_name" text,
"best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the distance (in miles) of the championship were the winning horse was Koona?`:
```sql
|
SELECT "rider_names" FROM "world_championship_winners" WHERE "location"='Euer Valley, CA' AND "horse_name"='Magic Sirocco'; |
## Task
Generate a SQL query to answer the following question:
`Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_winners" (
"year" real,
"location" text,
"distance_miles" real,
"rider_names" text,
"horse_name" text,
"best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the winning riders of the championship in Euer Valley, CA and whose horse was Magic Sirocco?`:
```sql
|
SELECT COUNT("rider_names") FROM "world_championship_winners" WHERE "horse_name"='OMR Tsunami'; |
## Task
Generate a SQL query to answer the following question:
`How many different riders are there that won riding Omr Tsunami?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_winners" (
"year" real,
"location" text,
"distance_miles" real,
"rider_names" text,
"horse_name" text,
"best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many different riders are there that won riding Omr Tsunami?`:
```sql
|
SELECT "distance_miles" FROM "world_championship_winners" WHERE "best_conditioned_horse"='Freedom'; |
## Task
Generate a SQL query to answer the following question:
`What was the total distance (in miles) of the championship where the best conditioned horse was Freedom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "world_championship_winners" (
"year" real,
"location" text,
"distance_miles" real,
"rider_names" text,
"horse_name" text,
"best_conditioned_horse" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the total distance (in miles) of the championship where the best conditioned horse was Freedom?`:
```sql
|
SELECT "directed_by" FROM "table1_27833469_1" WHERE "title"='\"Sex, Losers, and Videotape\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episoede titled "sex, losers, and videotape"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27833469_1" (
"series_num" real,
"season_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who directed the episoede titled "sex, losers, and videotape"?`:
```sql
|
SELECT COUNT("series_num") FROM "table1_27833469_1" WHERE "u_s_viewers_millions"='15.8'; |
## Task
Generate a SQL query to answer the following question:
`How many series numbers are there when there were 15.8 u.s. viewers (millions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27833469_1" (
"series_num" real,
"season_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many series numbers are there when there were 15.8 u.s. viewers (millions)?`:
```sql
|
SELECT "title" FROM "table1_27833469_1" WHERE "season_num"='11'; |
## Task
Generate a SQL query to answer the following question:
`What is the title of the episode number 11 of the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27833469_1" (
"series_num" real,
"season_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the title of the episode number 11 of the season?`:
```sql
|
SELECT "original_air_date" FROM "table1_27833469_1" WHERE "title"='\"Boardroom and a Parked Place\"'; |
## Task
Generate a SQL query to answer the following question:
`What is the air date of the episode titled "boardroom and a parked place"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_27833469_1" (
"series_num" real,
"season_num" text,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_millions" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the air date of the episode titled "boardroom and a parked place"?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.