output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("game") FROM "game_log" WHERE "date"='March 15';
## Task Generate a SQL query to answer the following question: `How many games were played on March 15?` ### 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 games were played on March 15?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Orlando';
## Task Generate a SQL query to answer the following question: `What was the team's record when they faced 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 was the team's record when they faced orlando?`: ```sql
SELECT "team" FROM "regular_season" WHERE "score"='L 97–107 (OT)';
## Task Generate a SQL query to answer the following question: `Whic teams scored l 97–107 (ot) ` ### 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 `Whic teams scored l 97–107 (ot) `: ```sql
SELECT "high_assists" FROM "regular_season" WHERE "team"='@ Minnesota';
## Task Generate a SQL query to answer the following question: `Who had the high assists when the team was @ Minnesota?` ### 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 had the high assists when the team was @ Minnesota?`: ```sql
SELECT "date" FROM "regular_season" WHERE "team"='Minnesota';
## Task Generate a SQL query to answer the following question: `On what date did the Team Minnesota play?` ### 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 `On what date did the Team Minnesota play?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "date"='February 10';
## Task Generate a SQL query to answer the following question: `Who had the high points on the date February 10?` ### 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 had the high points on the date February 10?`: ```sql
SELECT COUNT("high_points") FROM "regular_season" WHERE "location_attendance"='FedExForum 11,498';
## Task Generate a SQL query to answer the following question: `How many players had high points in the location/attendance FedexForum 11,498 respectively?` ### 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 players had high points in the location/attendance FedexForum 11,498 respectively?`: ```sql
SELECT "high_rebounds" FROM "regular_season" WHERE "high_assists"='Shawn Marion (6)';
## Task Generate a SQL query to answer the following question: `When the high assists were Shawn Marion (6) who had high rebounds?` ### 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 the high assists were Shawn Marion (6) who had high rebounds?`: ```sql
SELECT "date" FROM "regular_season" WHERE "team"='Miami';
## Task Generate a SQL query to answer the following question: `What dates did they play Miami?` ### 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 dates did they play Miami?`: ```sql
SELECT "date" FROM "regular_season" WHERE "high_points"='Chris Bosh (18)';
## Task Generate a SQL query to answer the following question: `What dates did Chris Bosh (18) score the high points?` ### 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 dates did Chris Bosh (18) score the high points?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "high_assists"='Anthony Parker (7)';
## Task Generate a SQL query to answer the following question: `Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?` ### 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 `Where was the location and what was the attendance in the game that Anthony Parker (7) earned high assists?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "game"=69;
## Task Generate a SQL query to answer the following question: `Who earned high points in game 69?` ### 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 earned high points in game 69?`: ```sql
SELECT COUNT("high_points") FROM "regular_season" WHERE "date"='January 21';
## Task Generate a SQL query to answer the following question: `What is the total number of high points on January 21?` ### 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 is the total number of high points on January 21?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "team"='Orlando';
## Task Generate a SQL query to answer the following question: `What is the location and attendance for the Orlando team?` ### 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 is the location and attendance for the Orlando team?`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='Milwaukee';
## Task Generate a SQL query to answer the following question: `what was the final score of the game versus Milwaukee?` ### 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 final score of the game versus Milwaukee?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Boston';
## Task Generate a SQL query to answer the following question: `What is the record against Boston?` ### 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 against Boston?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Washington';
## Task Generate a SQL query to answer the following question: `What is every high point when the team is Washington?` ### 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 every high point when the team is Washington?`: ```sql
SELECT COUNT("game") FROM "game_log" WHERE "date"='December 12';
## Task Generate a SQL query to answer the following question: `How many games occur on the date December 12?` ### 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 games occur on the date December 12?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='December 13';
## Task Generate a SQL query to answer the following question: `How many high assist are on the date December 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 `How many high assist are on the date December 13?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 12';
## Task Generate a SQL query to answer the following question: `What is every location attendance on the date December 12?` ### 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 every location attendance on the date December 12?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='November 26';
## Task Generate a SQL query to answer the following question: `What was the high rebounds on November 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 high rebounds on November 26?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='November 14';
## Task Generate a SQL query to answer the following question: `What was the high assists on November 14?` ### 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 assists on November 14?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='Miami';
## Task Generate a SQL query to answer the following question: `Who had the most assists in the game against Miami?` ### 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 most assists in the game against Miami?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "team"='San Antonio';
## Task Generate a SQL query to answer the following question: `How many assists were made in the game against San Antonio?` ### 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 assists were made in the game against San Antonio?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='November 1';
## Task Generate a SQL query to answer the following question: `Who did the most high rebounds in the game played on November 1?` ### 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 most high rebounds in the game played on November 1?`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='November 21';
## Task Generate a SQL query to answer the following question: `What team was the game on November 21 played against?` ### 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 team was the game on November 21 played against?`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='Boston';
## Task Generate a SQL query to answer the following question: `What was the score in the game against Boston?` ### 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 against Boston?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "replaced_by"='Petrik Sander';
## Task Generate a SQL query to answer the following question: `Name the date of appointment for petrik sander` ### 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 `Name the date of appointment for petrik sander`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "manner_of_departure"='Sacked' AND "position_in_table"='14th' AND "replaced_by"='Marco Kostmann';
## Task Generate a SQL query to answer the following question: `Name the date of appointment for sacked and 14th position replaced by marco kostmann` ### 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 `Name the date of appointment for sacked and 14th position replaced by marco kostmann`: ```sql
SELECT COUNT("location_attendance") FROM "game_log" WHERE "date"='December 5';
## Task Generate a SQL query to answer the following question: `How many location attendance was recorded for December 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 `How many location attendance was recorded for December 5?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 15';
## Task Generate a SQL query to answer the following question: `What was the attendance and location on December 15?` ### 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 attendance and location on December 15?`: ```sql
SELECT COUNT("game") FROM "game_log" WHERE "team"='@ Memphis';
## Task Generate a SQL query to answer the following question: `How many games were recorded when the team was @ Memphis?` ### 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 games were recorded when the team was @ Memphis?`: ```sql
SELECT "score" FROM "game_log" WHERE "high_rebounds"='Jeff Foster (10)';
## Task Generate a SQL query to answer the following question: `What was the score of the game when the high rebounds Jeff Foster (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 score of the game when the high rebounds Jeff Foster (10)?`: ```sql
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='12 June';
## Task Generate a SQL query to answer the following question: `What team appointed a manager on 12 June?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `What team appointed a manager on 12 June?`: ```sql
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='11 July';
## Task Generate a SQL query to answer the following question: `Who was replaced on 11 July?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Who was replaced on 11 July?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='29 May';
## Task Generate a SQL query to answer the following question: `Who left a position on 29 May?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Who left a position on 29 May?`: ```sql
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='24 January';
## Task Generate a SQL query to answer the following question: `Who left a position on 24 January?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Who left a position on 24 January?`: ```sql
SELECT COUNT("manner_of_departure") FROM "managerial_changes" WHERE "date_of_vacancy"='25 May';
## Task Generate a SQL query to answer the following question: `How many vacancies happened on 25 May?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `How many vacancies happened on 25 May?`: ```sql
SELECT COUNT("1391_carelia") FROM "table1_173278_1" WHERE "1398_donnera"='2397 Lappajärvi';
## Task Generate a SQL query to answer the following question: `how many 1391 carelia where 1398 donnera is 2397 lappajärvi` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `how many 1391 carelia where 1398 donnera is 2397 lappajärvi`: ```sql
SELECT "1398_donnera" FROM "table1_173278_1" WHERE "1391_carelia"='1529 Oterma';
## Task Generate a SQL query to answer the following question: `what is the 1398 donnera of asteroid which 1391 carelia is 1529 oterma` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 1398 donnera of asteroid which 1391 carelia is 1529 oterma`: ```sql
SELECT "1405_sibelius" FROM "table1_173278_1" WHERE "1407_lindel_f"='2020 Ukko';
## Task Generate a SQL query to answer the following question: `what is the 1405 sibelius of asteroid which 1407 lindelöf is 2020 ukko` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 1405 sibelius of asteroid which 1407 lindelöf is 2020 ukko`: ```sql
SELECT "1406_komppa" FROM "table1_173278_1" WHERE "1391_carelia"='1460 Haltia';
## Task Generate a SQL query to answer the following question: `what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 1406 komppa of asteroid which 1391 carelia is 1460 haltia`: ```sql
SELECT "1391_carelia" FROM "table1_173278_1" WHERE "1407_lindel_f"='1527 Malmquista';
## Task Generate a SQL query to answer the following question: `what is the 1391 carelia of asteroid which 1407 lindelöf is 1527 malmquista` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 1391 carelia of asteroid which 1407 lindelöf is 1527 malmquista`: ```sql
SELECT "1406_komppa" FROM "table1_173278_1" WHERE "1405_sibelius"='2737 Kotka';
## Task Generate a SQL query to answer the following question: `what is the 1406 komppa of asteroid which 1405 sibelius is 2737 kotka` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_173278_1" ( "1391_carelia" text, "1398_donnera" text, "1405_sibelius" text, "1406_komppa" text, "1407_lindel_f" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the 1406 komppa of asteroid which 1405 sibelius is 2737 kotka`: ```sql
SELECT COUNT("fin_pos") FROM "classification" WHERE "points"='15';
## Task Generate a SQL query to answer the following question: `If the points is 15, what is the fin. pos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `If the points is 15, what is the fin. pos?`: ```sql
SELECT MIN("car_no") FROM "classification" WHERE "driver"='Hélio Castroneves';
## Task Generate a SQL query to answer the following question: `What is the car number for driver Hélio Castroneves` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the car number for driver Hélio Castroneves`: ```sql
SELECT MIN("fin_pos") FROM "classification" WHERE "grid"=2;
## Task Generate a SQL query to answer the following question: `If grid is 2, what is the minimum fin. pos number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `If grid is 2, what is the minimum fin. pos number?`: ```sql
SELECT "time_retired" FROM "classification" WHERE "points"='28';
## Task Generate a SQL query to answer the following question: `If there are 28 points, what is the time/retired?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification" ( "fin_pos" real, "car_no" real, "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "laps_led" real, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `If there are 28 points, what is the time/retired?`: ```sql
SELECT COUNT("winning_score") FROM "lpga_tour_15" WHERE "tournament"='RR Donnelley LPGA Founders Cup';
## Task Generate a SQL query to answer the following question: `How many winning scores were there in the rr donnelley lpga founders cup?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_15" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `How many winning scores were there in the rr donnelley lpga founders cup?`: ```sql
SELECT "date" FROM "lpga_tour_15" WHERE "tournament"='McDonald''s LPGA Championship';
## Task Generate a SQL query to answer the following question: `When was the mcdonald's lpga championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_15" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `When was the mcdonald's lpga championship?`: ```sql
SELECT MAX("winners_share") FROM "lpga_tour_15" WHERE "tournament"='Wegmans LPGA Championship';
## Task Generate a SQL query to answer the following question: `What was the winner's share in the wegmans lpga championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_15" ( "no" real, "date" text, "tournament" text, "winning_score" text, "to_par" text, "margin_of_victory" text, "runner_s_up" text, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the winner's share in the wegmans lpga championship?`: ```sql
SELECT "kerrynum" FROM "by_county" WHERE "othersnum"=44;
## Task Generate a SQL query to answer the following question: `Name the kerry # for others# is 44` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the kerry # for others# is 44`: ```sql
SELECT MIN("kerrynum") FROM "by_county" WHERE "bushpct"='50.9%';
## Task Generate a SQL query to answer the following question: `Name the minimum kerry # for bush % for 50.9%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the minimum kerry # for bush % for 50.9%`: ```sql
SELECT "otherspct" FROM "by_county" WHERE "county"='Johnson';
## Task Generate a SQL query to answer the following question: `Name the others % for johnson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the others % for johnson`: ```sql
SELECT MAX("kerrynum") FROM "by_county" WHERE "othersnum"=47;
## Task Generate a SQL query to answer the following question: `Name the maximum kerry # for where others is 47` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the maximum kerry # for where others is 47`: ```sql
SELECT "bushpct" FROM "by_county" WHERE "othersnum"=90;
## Task Generate a SQL query to answer the following question: `Name the bush% for where others # is 90` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the bush% for where others # is 90`: ```sql
SELECT "otherspct" FROM "by_county" WHERE "county"='Cleveland';
## Task Generate a SQL query to answer the following question: `Name the others % for cleveland` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the others % for cleveland`: ```sql
SELECT "otherspct" FROM "by_county" WHERE "othersnum"=2286;
## Task Generate a SQL query to answer the following question: `What is the percentage of others when the number of others is 2286?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of others when the number of others is 2286?`: ```sql
SELECT "otherspct" FROM "by_county" WHERE "bushnum"=3196;
## Task Generate a SQL query to answer the following question: `What was the percentage of others when the number for Bush was 3196? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage of others when the number for Bush was 3196? `: ```sql
SELECT "otherspct" FROM "by_county" WHERE "bushnum"=1329;
## Task Generate a SQL query to answer the following question: `What is the percentage of others when the number for Bush is 1329? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "kerrypct" text, "kerrynum" real, "bushpct" text, "bushnum" real, "otherspct" text, "othersnum" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of others when the number for Bush is 1329? `: ```sql
SELECT "game" FROM "game_log" WHERE "team"='Milwaukee';
## Task Generate a SQL query to answer the following question: `Which game was played by team milwaukee` ### 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 was played by team milwaukee`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "score"='W 106–104 (OT)';
## Task Generate a SQL query to answer the following question: `Who made high points on games of score w 106–104 (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 `Who made high points on games of score w 106–104 (ot)`: ```sql
SELECT COUNT("record") FROM "game_log" WHERE "high_rebounds"='Amar''e Stoudemire (11)';
## Task Generate a SQL query to answer the following question: `What are the records of games where high rebounds is amar'e stoudemire (11)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the records of games where high rebounds is amar'e stoudemire (11)`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='December 10';
## Task Generate a SQL query to answer the following question: `What is the location of the 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 `What is the location of the the game on december 10`: ```sql
SELECT "score" FROM "playoffs" WHERE "high_assists"='B. Shaw (5)';
## Task Generate a SQL query to answer the following question: `List the all the scores where the high assis is b. shaw (5)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `List the all the scores where the high assis is b. shaw (5)`: ```sql
SELECT "high_assists" FROM "playoffs" WHERE "high_rebounds"='K. McHale (10)';
## Task Generate a SQL query to answer the following question: `List of high assists with high rebounds for k. mchale (10)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `List of high assists with high rebounds for k. mchale (10)`: ```sql
SELECT "location_attendance" FROM "playoffs" WHERE "series"='1-1';
## Task Generate a SQL query to answer the following question: `List all location attendance for series 1-1.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `List all location attendance for series 1-1.`: ```sql
SELECT "date" FROM "game_log" WHERE "team"='Indiana';
## Task Generate a SQL query to answer the following question: `What day(s) did the team play indiana?` ### 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 day(s) did the team play indiana?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='January 2';
## Task Generate a SQL query to answer the following question: `Who had the high assist total on january 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 had the high assist total on january 2?`: ```sql
SELECT "film_title_used_in_nomination" FROM "submissions" WHERE "original_title"='Bābǎi zhuàngshì (八百壯士)';
## Task Generate a SQL query to answer the following question: `What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title used in nomination in the original Bābǎi Zhuàngshì (八百壯士)?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "original_title"='Chūnqiū cháshì (春秋茶室)';
## Task Generate a SQL query to answer the following question: `What was the year when Chūnqiū Cháshì (春秋茶室) was submitted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year when Chūnqiū Cháshì (春秋茶室) was submitted?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "film_title_used_in_nomination"='Old Mo''s Second Spring';
## Task Generate a SQL query to answer the following question: `Old Mo's Second Spring was the film title used in nomination in what year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Old Mo's Second Spring was the film title used in nomination in what year?`: ```sql
SELECT "year_ceremony" FROM "submissions" WHERE "result"='Not Nominated' AND "film_title_used_in_nomination"='My Mother''s Teahouse';
## Task Generate a SQL query to answer the following question: `What was the year when My Mother's Teahouse was not nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "original_title" text, "director" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the year when My Mother's Teahouse was not nominated?`: ```sql
SELECT "title" FROM "versions" WHERE "release"=2006;
## Task Generate a SQL query to answer the following question: `What titles were released in 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "title" text, "start" real, "pieces" real, "board_inches" text, "board_cm" text, "type" text, "new_units_new_units_when_compared_to_the_original_a_a_classic_version_of_the_game" text, "playable_powers" text ); ### SQL Given the database schema, here is the SQL query that answers `What titles were released in 2006?`: ```sql
SELECT "release" FROM "versions" WHERE "title"='Axis & Allies: D-Day';
## Task Generate a SQL query to answer the following question: `What year(s) was axis & allies: d-day released?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "versions" ( "release" real, "title" text, "start" real, "pieces" real, "board_inches" text, "board_cm" text, "type" text, "new_units_new_units_when_compared_to_the_original_a_a_classic_version_of_the_game" text, "playable_powers" text ); ### SQL Given the database schema, here is the SQL query that answers `What year(s) was axis & allies: d-day released?`: ```sql
SELECT "game" FROM "game_log" WHERE "date"='May 25';
## Task Generate a SQL query to answer the following question: `What game was on May 25?` ### 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 game was on May 25?`: ```sql
SELECT COUNT("game") FROM "game_log" WHERE "record"='2-3';
## Task Generate a SQL query to answer the following question: `What game was the record 2-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, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What game was the record 2-3?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Sacramento';
## Task Generate a SQL query to answer the following question: `Who had the high rebounds when the team played Sacramento?` ### 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 rebounds when the team played Sacramento?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='April 8';
## Task Generate a SQL query to answer the following question: `Who had the high points on April 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 `Who had the high points on April 8?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game"=80;
## Task Generate a SQL query to answer the following question: `Who had the high assists in game 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 `Who had the high assists in game 80?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='December 29';
## Task Generate a SQL query to answer the following question: `Name the highh points for december 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 `Name the highh points for december 29`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game"=29;
## Task Generate a SQL query to answer the following question: `Name the high assists for 29 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 assists for 29 game`: ```sql
SELECT "high_points" FROM "game_log" WHERE "location_attendance"='Pepsi Center 18,611';
## Task Generate a SQL query to answer the following question: `Name the high points for pepsi center 18,611` ### 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 points for pepsi center 18,611`: ```sql
SELECT "date" FROM "game_log" WHERE "team"='Chicago';
## Task Generate a SQL query to answer the following question: `Name the date for chicago` ### 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 date for chicago`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='New Orleans';
## Task Generate a SQL query to answer the following question: `Name the record for 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 `Name the record for new orleans`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "high_points"='Chauncey Billups , Carmelo Anthony (18)';
## Task Generate a SQL query to answer the following question: `Name the high assists for chauncey billups , carmelo anthony (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 `Name the high assists for chauncey billups , carmelo anthony (18)`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='@ Orlando';
## Task Generate a SQL query to answer the following question: `What was the final score for @ 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 was the final score for @ Orlando?`: ```sql
SELECT "date" FROM "game_log" WHERE "high_assists"='Chauncey Billups (6)';
## Task Generate a SQL query to answer the following question: `Chauncey Billups (6) had a high assist on what date?` ### 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 `Chauncey Billups (6) had a high assist on what date?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='@ Chicago';
## Task Generate a SQL query to answer the following question: `@ Chicago had a high points of what?` ### 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 `@ Chicago had a high points of what?`: ```sql
SELECT "record" FROM "game_log" WHERE "high_assists"='Carmelo Anthony (11)';
## Task Generate a SQL query to answer the following question: `High assists belonging to Carmelo Anthony (11) have a record of what?` ### 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 `High assists belonging to Carmelo Anthony (11) have a record of what?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='April 8';
## Task Generate a SQL query to answer the following question: `Name the high assists for april 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 `Name the high assists for april 8`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='Charlotte';
## Task Generate a SQL query to answer the following question: `Name the score for charlotte` ### 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 charlotte`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Chucky Atkins , Russell Westbrook (4)';
## Task Generate a SQL query to answer the following question: `Name the location attendance for chucky atkins , russell westbrook (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 `Name the location attendance for chucky atkins , russell westbrook (4)`: ```sql
SELECT MAX("series_num") FROM "table1_17355579_1" WHERE "directed_by"='Richard Thorpe' AND "written_by"='Dee Johnson';
## Task Generate a SQL query to answer the following question: `Name the series number directed by richard thorpe written by dee johnson` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17355579_1" ( "series_num" real, "season_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 `Name the series number directed by richard thorpe written by dee johnson`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='November 17';
## Task Generate a SQL query to answer the following question: `Name the team where the date is november 17` ### 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 team where the date is november 17`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='November 5';
## Task Generate a SQL query to answer the following question: `Name the team for november 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 `Name the team for november 5`: ```sql
SELECT MAX("series_num") FROM "table1_17356106_1" WHERE "directed_by"='Laura Innes' AND "season_num"<7.0;
## Task Generate a SQL query to answer the following question: `What is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17356106_1" ( "series_num" real, "season_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 is the maximum series number what is smaller than season 7.0 and directed by Laura Innes?`: ```sql
SELECT MAX("series_num") FROM "table1_17356106_1" WHERE "directed_by"='Arthur Albert';
## Task Generate a SQL query to answer the following question: `If Arthur Albert is the director, what is the maximum series number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17356106_1" ( "series_num" real, "season_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 `If Arthur Albert is the director, what is the maximum series number?`: ```sql
SELECT COUNT("season_num") FROM "table1_17356106_1" WHERE "directed_by"='Joanna Kerns';
## Task Generate a SQL query to answer the following question: `What was the number of seasons that was directed by Joanna Kerns?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17356106_1" ( "series_num" real, "season_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 was the number of seasons that was directed by Joanna Kerns?`: ```sql
SELECT "original_air_date" FROM "table1_17356106_1" WHERE "series_num"=256;
## Task Generate a SQL query to answer the following question: `For series number 256, what was the original air date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17356106_1" ( "series_num" real, "season_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 `For series number 256, what was the original air date?`: ```sql