output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "district" FROM "table1_228439_4" WHERE "successor"='Samuel A. Bridges ( D )'; |
## Task
Generate a SQL query to answer the following question:
`What district is Samuel A. Bridges ( D ) assigned to as a successor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `What district is Samuel A. Bridges ( D ) assigned to as a successor?`:
```sql
|
SELECT "reason_for_change" FROM "table1_228439_4" WHERE "successor"='Richard K. Meade ( D )'; |
## Task
Generate a SQL query to answer the following question:
`what was the reason Richard K. Meade ( d ) became a successor?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `what was the reason Richard K. Meade ( d ) became a successor?`:
```sql
|
SELECT "successor" FROM "table1_228439_4" WHERE "district"='Massachusetts 8th'; |
## Task
Generate a SQL query to answer the following question:
`Who is the successor for massachusetts 8th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228439_4" (
"district" text,
"vacator" text,
"reason_for_change" text,
"successor" text,
"date_successor_seated" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the successor for massachusetts 8th?`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "record"='11-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 11-1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cards_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 11-1`:
```sql
|
SELECT "record" FROM "schedule" WHERE "opponent"='Kentucky'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for kentucky`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"cards_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for kentucky`:
```sql
|
SELECT "opponent_in_the_final" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='3β6, 4β6, 7β5, 4β6'; |
## Task
Generate a SQL query to answer the following question:
`Who is the opponent in the match with final score 3β6, 4β6, 7β5, 4β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who is the opponent in the match with final score 3β6, 4β6, 7β5, 4β6?`:
```sql
|
SELECT "outcome" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4β6, 3β6, 2β6'; |
## Task
Generate a SQL query to answer the following question:
`What was the outcome of the match with score 4β6, 3β6, 2β6?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the outcome of the match with score 4β6, 3β6, 2β6?`:
```sql
|
SELECT MAX("year") FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='4β6, 3β6, 6β4, 5β7'; |
## Task
Generate a SQL query to answer the following question:
`What is the most recent year where the final score is 4β6, 3β6, 6β4, 5β7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most recent year where the final score is 4β6, 3β6, 6β4, 5β7?`:
```sql
|
SELECT "championship" FROM "singles_15_8_titles_7_runner_ups" WHERE "score_in_the_final"='6β4, 6β2, 6β2'; |
## Task
Generate a SQL query to answer the following question:
`What championship had a final score of 6β4, 6β2, 6β2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_15_8_titles_7_runner_ups" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_the_final" text,
"score_in_the_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What championship had a final score of 6β4, 6β2, 6β2?`:
```sql
|
SELECT "top_10s" FROM "lpga_tour_career_summary" WHERE "year"=2007; |
## Task
Generate a SQL query to answer the following question:
`If the year is 2007, what is the top ten?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the year is 2007, what is the top ten?`:
```sql
|
SELECT MAX("money_list_rank") FROM "lpga_tour_career_summary"; |
## Task
Generate a SQL query to answer the following question:
`What is the possible maximum money list rank?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the possible maximum money list rank?`:
```sql
|
SELECT "best_finish" FROM "lpga_tour_career_summary" WHERE "scoring_average"='72.46'; |
## Task
Generate a SQL query to answer the following question:
`If the scoring average is 72.46, what is the best finish?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "lpga_tour_career_summary" (
"year" real,
"tournaments_played" real,
"cuts_made" real,
"wins" real,
"2nd" real,
"top_10s" real,
"best_finish" text,
"earnings" real,
"money_list_rank" real,
"scoring_average" text,
"scoring_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `If the scoring average is 72.46, what is the best finish?`:
```sql
|
SELECT "result" FROM "singles_14" WHERE "opponent"='Wesley Moodie'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for wesley moodie`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for wesley moodie`:
```sql
|
SELECT "surface" FROM "singles_14" WHERE "against"='Monaco'; |
## Task
Generate a SQL query to answer the following question:
`Name the surface against monaco`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the surface against monaco`:
```sql
|
SELECT "result" FROM "singles_14" WHERE "opponent"='Alexander Shvec'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for alexander shvec`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the result for alexander shvec`:
```sql
|
SELECT "opponent" FROM "singles_14" WHERE "result"='3β6, 4β6, 6β1, 6β7 (7β9)'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 3β6, 4β6, 6β1, 6β7 (7β9)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singles_14" (
"edition" text,
"round" text,
"date" text,
"against" text,
"surface" text,
"opponent" text,
"w_l" text,
"result" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 3β6, 4β6, 6β1, 6β7 (7β9)`:
```sql
|
SELECT "average_annual_rainfall_mm" FROM "table1_22854436_1" WHERE "population_2002_census_data"=493984; |
## Task
Generate a SQL query to answer the following question:
`Name the annual rainfail for 2002 population being 493984`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the annual rainfail for 2002 population being 493984`:
```sql
|
SELECT MAX("population_2002_census_data") FROM "table1_22854436_1"; |
## Task
Generate a SQL query to answer the following question:
`Name the most population 2002`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the most population 2002`:
```sql
|
SELECT COUNT("per_capita_average_annual_renewable_water_resources_m_3") FROM "table1_22854436_1" WHERE "average_annual_rainfall_mm"='650'; |
## Task
Generate a SQL query to answer the following question:
`Name the total water resources m3 for rainfall being 650`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_22854436_1" (
"administrative_region" text,
"population_2002_census_data" real,
"surface_km_2" real,
"main_rivers" text,
"average_annual_rainfall_mm" text,
"average_annual_runoff_mm" text,
"per_capita_average_annual_renewable_water_resources_m_3" real
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total water resources m3 for rainfall being 650`:
```sql
|
SELECT "carpet_w_l" FROM "career_singles_statistics" WHERE "year"=1993; |
## Task
Generate a SQL query to answer the following question:
`What were the carpet w-l in 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "career_singles_statistics" (
"year" real,
"tournaments" real,
"titles" real,
"hardcourt_w_l" text,
"clay_w_l" text,
"grass_w_l" text,
"carpet_w_l" text,
"overall_w_l" text,
"win_pct" text,
"year_end_ranking" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the carpet w-l in 1993?`:
```sql
|
SELECT COUNT("score_in_final") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "championship"='US Open' AND "outcome"='Runner-up'; |
## Task
Generate a SQL query to answer the following question:
`What is the amount of US open runner-up score?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the amount of US open runner-up score?`:
```sql
|
SELECT MIN("year") FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "outcome"='Runner-up'; |
## Task
Generate a SQL query to answer the following question:
`What is the year where the runner-up outcome was at its basic minimum?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the year where the runner-up outcome was at its basic minimum?`:
```sql
|
SELECT "championship" FROM "grand_slam_7_finals_3_titles_4_runner_up" WHERE "opponent_in_final"='Steffi Graf'; |
## Task
Generate a SQL query to answer the following question:
`How many championships have there been with Steffi Graf?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "grand_slam_7_finals_3_titles_4_runner_up" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"opponent_in_final" text,
"score_in_final" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many championships have there been with Steffi Graf?`:
```sql
|
SELECT COUNT("opponents") FROM "doubles_37_31_6" WHERE "championship"='Wimbledon (2)'; |
## Task
Generate a SQL query to answer the following question:
`How many opponents have wimbledon (2) as the championship?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_37_31_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many opponents have wimbledon (2) as the championship?`:
```sql
|
SELECT "surface" FROM "doubles_37_31_6" WHERE "championship"='US Open' AND "year"=1979; |
## Task
Generate a SQL query to answer the following question:
`What is the surface when the us open is the championship in the year 1979?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "doubles_37_31_6" (
"outcome" text,
"year" real,
"championship" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the surface when the us open is the championship in the year 1979?`:
```sql
|
SELECT "num" FROM "game_log" WHERE "date"='November 27'; |
## Task
Generate a SQL query to answer the following question:
`What is the game number that was on November 27? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the game number that was on November 27? `:
```sql
|
SELECT "score" FROM "game_log" WHERE "team"='@ New Jersey'; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the team was @ New Jersey? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What was the score when the team was @ New Jersey? `:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "num"=5; |
## Task
Generate a SQL query to answer the following question:
`How many high rebound catagories are listed for game number 5? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many high rebound catagories are listed for game number 5? `:
```sql
|
SELECT "opponent" FROM "season_schedule" WHERE "record"='11-2'; |
## Task
Generate a SQL query to answer the following question:
`Who were the opponents when the record was 11-2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who were the opponents when the record was 11-2?`:
```sql
|
SELECT "record" FROM "season_schedule" WHERE "opp_points"=50; |
## Task
Generate a SQL query to answer the following question:
`What were the records when the opponents had 50 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What were the records when the opponents had 50 points?`:
```sql
|
SELECT "terps_points" FROM "season_schedule" WHERE "date"='Nov. 25/05'; |
## Task
Generate a SQL query to answer the following question:
`What are the terps points for the nov. 25/05 game?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What are the terps points for the nov. 25/05 game?`:
```sql
|
SELECT "location" FROM "season_schedule" WHERE "record"='9-1'; |
## Task
Generate a SQL query to answer the following question:
`Where were games played when the record was 9-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where were games played when the record was 9-1?`:
```sql
|
SELECT MAX("terps_points") FROM "season_schedule" WHERE "opp_points"=53; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number of terps points in games where the opponent made 53 points?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest number of terps points in games where the opponent made 53 points?`:
```sql
|
SELECT "location" FROM "season_schedule" WHERE "date"='Jan. 16/06'; |
## Task
Generate a SQL query to answer the following question:
`Where was the game on jan. 16/06 played?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "season_schedule" (
"date" text,
"location" text,
"opponent" text,
"terps_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Where was the game on jan. 16/06 played?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "record"='21-45'; |
## Task
Generate a SQL query to answer the following question:
`Name the high points for 21-45 record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high points for 21-45 record`:
```sql
|
SELECT "visitor" FROM "game_log" WHERE "date"='March 23'; |
## Task
Generate a SQL query to answer the following question:
`Name the visitor for march 23`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the visitor for march 23`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "arena_attendance"='TD Garden 18,624'; |
## Task
Generate a SQL query to answer the following question:
`Name the high rebounds for td garden 18,624`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high rebounds for td garden 18,624`:
```sql
|
SELECT "record" FROM "game_log" WHERE "date"='March 16'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for march 16`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"arena_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the record for march 16`:
```sql
|
SELECT COUNT("num") FROM "game_log" WHERE "score"='L 110-112'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number for score l 110-112`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the total number for score l 110-112`:
```sql
|
SELECT "team" FROM "game_log" WHERE "score"='W 125-115'; |
## Task
Generate a SQL query to answer the following question:
`Name the team for w 125-115 score`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the team for w 125-115 score`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='American Airlines Center 19,585'; |
## Task
Generate a SQL query to answer the following question:
`Name the high assists for american airlines center 19,585`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"team" text,
"score" text,
"location_attendance" text,
"high_points" text,
"high_rebounds" text,
"high_assists" text,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the high assists for american airlines center 19,585`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "series"='3-2'; |
## Task
Generate a SQL query to answer the following question:
`Who has the high points when 3-2 is the series?`
### 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,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the high points when 3-2 is the series?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "series"='0-1'; |
## Task
Generate a SQL query to answer the following question:
`Who has the high assists when 0-1 is the series?`
### 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,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Who has the high assists when 0-1 is the series?`:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "series"='3-3'; |
## Task
Generate a SQL query to answer the following question:
`How many high rebounds are in series 3-3?`
### 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,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many high rebounds are in series 3-3?`:
```sql
|
SELECT MIN("game") FROM "game_log" WHERE "date"='April 30'; |
## Task
Generate a SQL query to answer the following question:
`How many games are on the date of April 30?`
### 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,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `How many games are on the date of April 30?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='December 18'; |
## Task
Generate a SQL query to answer the following question:
`Who did the high points in the game played on December 18?`
### 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 did the high points in the game played on December 18?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='December 2'; |
## Task
Generate a SQL query to answer the following question:
`Who did the high points in the game played on December 2?`
### 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 did the high points in the game played on December 2?`:
```sql
|
SELECT "record" FROM "game_log" WHERE "high_points"='Carlos Delfino (17)'; |
## Task
Generate a SQL query to answer the following question:
`What's the record of the game in which Carlos Delfino (17) did the most 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's the record of the game in which Carlos Delfino (17) did the most high points?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Brandon Jennings (8)'; |
## Task
Generate a SQL query to answer the following question:
`Who did the high rebounds in the game in which Brandon Jennings (8) did the 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 `Who did the high rebounds in the game in which Brandon Jennings (8) did the high assists?`:
```sql
|
SELECT "player" FROM "player_stats" WHERE "field_goals"='18-50 .360'; |
## Task
Generate a SQL query to answer the following question:
`Which player has 18-50 .360 field goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has 18-50 .360 field goals?`:
```sql
|
SELECT MAX("assists") FROM "player_stats" WHERE "points"='129-3.9'; |
## Task
Generate a SQL query to answer the following question:
`What is the most assists for points 129-3.9?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `What is the most assists for points 129-3.9?`:
```sql
|
SELECT "player" FROM "player_stats" WHERE "field_goals"='18-50 .360'; |
## Task
Generate a SQL query to answer the following question:
`Which player has 18-50 .360 field goals?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "player_stats" (
"player" text,
"field_goals" text,
"three_pointers" text,
"free_throws" text,
"assists" real,
"steals" real,
"rebounds" text,
"points" text
);
### SQL
Given the database schema, here is the SQL query that answers `Which player has 18-50 .360 field goals?`:
```sql
|
SELECT "date" FROM "schedule" WHERE "irish_points"=89; |
## Task
Generate a SQL query to answer the following question:
`Name the date for irish points being 89`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the date for irish points being 89`:
```sql
|
SELECT COUNT("location") FROM "schedule" WHERE "record"='22-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of location for 22-1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of location for 22-1`:
```sql
|
SELECT "opponent" FROM "schedule" WHERE "date"='2-27-10'; |
## Task
Generate a SQL query to answer the following question:
`Name the opponent for 2-27-10`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the opponent for 2-27-10`:
```sql
|
SELECT MAX("irish_points") FROM "schedule" WHERE "opponent"='Eastern Michigan'; |
## Task
Generate a SQL query to answer the following question:
`Name the max irish points for eastern michigan`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the max irish points for eastern michigan`:
```sql
|
SELECT "irish_points" FROM "schedule" WHERE "record"='23-1'; |
## Task
Generate a SQL query to answer the following question:
`Name the irish points for 23-1 record`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "schedule" (
"date" text,
"location" text,
"opponent" text,
"irish_points" real,
"opp_points" real,
"record" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the irish points for 23-1 record`:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "score"='L 92β96 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of high rebounds for l 92β96 (ot)`
### 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,
"series" text
);
### SQL
Given the database schema, here is the SQL query that answers `Name the number of high rebounds for l 92β96 (ot)`:
```sql
|
SELECT "date" FROM "game_log" WHERE "game"=29; |
## Task
Generate a SQL query to answer the following question:
`what ist he date of game 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 ist he date of game 29?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"=27; |
## Task
Generate a SQL query to answer the following question:
`what is the location attendance for game 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 `what is the location attendance for game 27?`:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "team"='Minnesota'; |
## Task
Generate a SQL query to answer the following question:
`what is the total number of high rebounds for minnesota?`
### 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 total number of high rebounds for minnesota?`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 4'; |
## Task
Generate a SQL query to answer the following question:
`What were the high rebounds on April 4?`
### 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 were the high rebounds on April 4?`:
```sql
|
SELECT "score" FROM "game_log" WHERE "game"=80; |
## Task
Generate a SQL query to answer the following question:
`What was the score when the game was 80?`
### 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 when the game was 80?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='11-67'; |
## Task
Generate a SQL query to answer the following question:
`What date was the record 11-67?`
### 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 the record 11-67?`:
```sql
|
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='April 7'; |
## Task
Generate a SQL query to answer the following question:
`How many high rebounds were there on April 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 `How many high rebounds were there on April 7?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "high_rebounds"='Terrence Williams (8)'; |
## Task
Generate a SQL query to answer the following question:
`What was the high points when rebounds were Terrence Williams (8)?`
### 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 high points when rebounds were Terrence Williams (8)?`:
```sql
|
SELECT "high_assists" FROM "game_log" WHERE "record"='2-29'; |
## Task
Generate a SQL query to answer the following question:
`When the record was 2-29 who had the most 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 `When the record was 2-29 who had the most assists?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "team"='Houston'; |
## Task
Generate a SQL query to answer the following question:
`When we played Houston who had the most 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 we played Houston who had the most points?`:
```sql
|
SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='Ford Center'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of high points for ford center`
### 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 high points for ford center`:
```sql
|
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='American Airlines Center'; |
## Task
Generate a SQL query to answer the following question:
`Name the high rebounds for american airlines center`
### 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 american airlines center`:
```sql
|
SELECT "record" FROM "game_log" WHERE "score"='L 90β100 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the record for l 90β100 (ot)`
### 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 record for l 90β100 (ot)`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "score"='L 83β106 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for l 83β106 (ot)`
### 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 location attendance for l 83β106 (ot)`:
```sql
|
SELECT "score" FROM "game_log" WHERE "record"='49-31'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for 49-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 `Name the score for 49-31`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Minnesota'; |
## Task
Generate a SQL query to answer the following question:
`Name the location attendance for minnesota`
### 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 location attendance for minnesota`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "record"='20-12'; |
## Task
Generate a SQL query to answer the following question:
`What location had a record of 20-12, and how many people attended?`
### 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 had a record of 20-12, and how many people attended?`:
```sql
|
SELECT COUNT("score") FROM "game_log" WHERE "date"='January 18'; |
## Task
Generate a SQL query to answer the following question:
`What was the total score for january 18?`
### 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 total score for january 18?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "game"=41; |
## Task
Generate a SQL query to answer the following question:
`Where was game 41 held, and how many people attended?`
### 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 `Where was game 41 held, and how many people attended?`:
```sql
|
SELECT "date" FROM "game_log" WHERE "record"='23-13'; |
## Task
Generate a SQL query to answer the following question:
`What was the date for the record 23-13?`
### 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 date for the record 23-13?`:
```sql
|
SELECT "high_points" FROM "game_log" WHERE "date"='January 20'; |
## Task
Generate a SQL query to answer the following question:
`What was the high point for January 20?`
### 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 high point for January 20?`:
```sql
|
SELECT "location_attendance" FROM "game_log" WHERE "team"='Golden State'; |
## Task
Generate a SQL query to answer the following question:
`What was the location and how many attended when Golden State played? `
### 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 location and how many attended when Golden State played? `:
```sql
|
SELECT MAX("game") FROM "game_log" WHERE "team"='Cleveland'; |
## Task
Generate a SQL query to answer the following question:
`What is the highest game number where the team was Cleveland? `
### 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 highest game number where the team was Cleveland? `:
```sql
|
SELECT MAX("nightly_rank") FROM "australian_ratings"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest numbered nightly rank for any episode? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "australian_ratings" (
"order" real,
"episode" text,
"original_airdate" text,
"timeslot" text,
"viewers_100000s" text,
"nightly_rank" real,
"weekly_rank" real
);
### SQL
Given the database schema, here is the SQL query that answers `What is the highest numbered nightly rank for any episode? `:
```sql
|
SELECT COUNT("location_attendance") FROM "regular_season" WHERE "date"='December 2'; |
## Task
Generate a SQL query to answer the following question:
`How many attended on december 2?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 attended on december 2?`:
```sql
|
SELECT "team" FROM "regular_season" WHERE "date"='December 11'; |
## Task
Generate a SQL query to answer the following question:
`Who was he opponent on december 11?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 was he opponent on december 11?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "team"='Houston'; |
## Task
Generate a SQL query to answer the following question:
`What was the score against houston?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 against houston?`:
```sql
|
SELECT "date" FROM "regular_season" WHERE "team"='@ Indiana'; |
## Task
Generate a SQL query to answer the following question:
`when did the @ indiana game take place?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 @ indiana game take place?`:
```sql
|
SELECT "score" FROM "regular_season" WHERE "location_attendance"='Madison Square Garden 18,828'; |
## Task
Generate a SQL query to answer the following question:
`Name the score for madison square garden 18,828`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 score for madison square garden 18,828`:
```sql
|
SELECT COUNT("date") FROM "regular_season" WHERE "team"='Dallas'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of date for dallas`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 dallas`:
```sql
|
SELECT "high_assists" FROM "regular_season" WHERE "date"='January 15'; |
## Task
Generate a SQL query to answer the following question:
`Name the high assists for january 15`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "regular_season" (
"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 assists for january 15`:
```sql
|
SELECT "title" FROM "table1_228973_5" WHERE "original_air_date"='November 10, 1998'; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the episode that aired originally on November 10, 1998?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 is the name of the episode that aired originally on November 10, 1998?`:
```sql
|
SELECT MAX("no_in_series") FROM "table1_228973_5" WHERE "original_air_date"='April 27, 1999'; |
## Task
Generate a SQL query to answer the following question:
`What episode number in the series originally aired on April 27, 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 episode number in the series originally aired on April 27, 1999?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_228973_5" WHERE "no_in_series"=68; |
## Task
Generate a SQL query to answer the following question:
`How many people wrote episode 68 in the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 `How many people wrote episode 68 in the series?`:
```sql
|
SELECT COUNT("written_by") FROM "table1_228973_5" WHERE "title"='\"Embassy\"'; |
## Task
Generate a SQL query to answer the following question:
`How many writers were there for episode named "embassy"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 `How many writers were there for episode named "embassy"?`:
```sql
|
SELECT "original_air_date" FROM "table1_228973_5" WHERE "title"='\"Dungaree Justice\"'; |
## Task
Generate a SQL query to answer the following question:
`What date did "dungaree justice" originally air?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 date did "dungaree justice" originally air?`:
```sql
|
SELECT "directed_by" FROM "table1_228973_5" WHERE "original_air_date"='February 16, 1999'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode that originally aired on February 16, 1999?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_5" (
"no_in_series" real,
"no_in_season" 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 `Who directed the episode that originally aired on February 16, 1999?`:
```sql
|
SELECT "directed_by" FROM "table1_228973_11" WHERE "title"='\"Two Towns\"'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode titled "Two Towns"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" 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 `Who directed the episode titled "Two Towns"?`:
```sql
|
SELECT "no_in_season" FROM "table1_228973_11" WHERE "original_air_date"='February 11, 2005'; |
## Task
Generate a SQL query to answer the following question:
`The episode which originally aired on February 11, 2005 had which episode # of the season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" 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 `The episode which originally aired on February 11, 2005 had which episode # of the season?`:
```sql
|
SELECT "written_by" FROM "table1_228973_11" WHERE "original_air_date"='December 17, 2004'; |
## Task
Generate a SQL query to answer the following question:
`The episode which originally aired on December 17, 2004 was written by whom?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" 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 `The episode which originally aired on December 17, 2004 was written by whom?`:
```sql
|
SELECT "no_in_series" FROM "table1_228973_11" WHERE "directed_by"='David James Elliott'; |
## Task
Generate a SQL query to answer the following question:
`David James Elliott directed which episode number within the series?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" 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 `David James Elliott directed which episode number within the series?`:
```sql
|
SELECT "directed_by" FROM "table1_228973_11" WHERE "original_air_date"='February 4, 2005'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode which originally aired February 4, 2005?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_228973_11" (
"no_in_series" real,
"no_in_season" 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 `Who directed the episode which originally aired February 4, 2005?`:
```sql
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.