output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("pa") FROM "standings" WHERE "blank_ends"=1;
## Task Generate a SQL query to answer the following question: `When the blank ends at 1, what is the PA?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "province" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `When the blank ends at 1, what is the PA?`: ```sql
SELECT COUNT("record") FROM "game_log" WHERE "team"='Charlotte';
## Task Generate a SQL query to answer the following question: `How many times did the team play 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 `How many times did the team play charlotte?`: ```sql
SELECT "date" FROM "game_log" WHERE "team"='Charlotte';
## Task Generate a SQL query to answer the following question: `What day did the team play 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 `What day did the team play charlotte?`: ```sql
SELECT "date" FROM "game_log" WHERE "score"='L 99–107 (OT)';
## Task Generate a SQL query to answer the following question: `When was the game with score l 99–107 (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 `When was the game with score l 99–107 (ot)`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='20–23';
## Task Generate a SQL query to answer the following question: `Where was the game with record 20–23 and how many people attended it` ### 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 the game with record 20–23 and how many people attended it`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Charlie Villanueva (32)';
## Task Generate a SQL query to answer the following question: `Who scored highest rebounds high points is charlie villanueva (32)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who scored highest rebounds high points is charlie villanueva (32)`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=46;
## Task Generate a SQL query to answer the following question: `What is the score of game 46` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of game 46`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='November 2';
## Task Generate a SQL query to answer the following question: `Who scored the high points on the date November 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 scored the high points on the date November 2?`: ```sql
SELECT COUNT("location_attendance") FROM "game_log" WHERE "game"=13;
## Task Generate a SQL query to answer the following question: `In how many locations did Game 13 take place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many locations did Game 13 take place?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='November 21';
## Task Generate a SQL query to answer the following question: `Where was the game that took place in November 21 located and how many 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 the game that took place in November 21 located and how many attended?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 7';
## Task Generate a SQL query to answer the following question: `Name the high reobounds for 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 `Name the high reobounds for april 7`: ```sql
SELECT COUNT("record") FROM "game_log" WHERE "game"=43;
## Task Generate a SQL query to answer the following question: `How many games was game 43?` ### 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 was game 43?`: ```sql
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='February 10';
## Task Generate a SQL query to answer the following question: `Name the total number of high rebounds for february 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 `Name the total number of high rebounds for february 10`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='December 6';
## Task Generate a SQL query to answer the following question: `Name the record for december 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for december 6`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=38;
## Task Generate a SQL query to answer the following question: `What was the final score in game 38?` ### 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 in game 38?`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='January 2';
## Task Generate a SQL query to answer the following question: `Who did the Trail Blazers play 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 did the Trail Blazers play on January 2?`: ```sql
SELECT COUNT("date") FROM "table1_17058226_10" WHERE "team"='Phoenix';
## Task Generate a SQL query to answer the following question: `On how many dates did the Timberwolves play Phoenix? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17058226_10" ( "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 how many dates did the Timberwolves play Phoenix? `: ```sql
SELECT "record" FROM "table1_17058226_10" WHERE "date"='April 3';
## Task Generate a SQL query to answer the following question: `What was the Timberwolves' record on April 3? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17058226_10" ( "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 Timberwolves' record on April 3? `: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Utah';
## Task Generate a SQL query to answer the following question: `Where are all of Utah's games held and how many have 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 are all of Utah's games held and how many have attended?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "high_assists"='Craig Smith (4)';
## Task Generate a SQL query to answer the following question: `Who performed all the high rebounds when craig smith (4) was the lead for 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 performed all the high rebounds when craig smith (4) was the lead for high assists?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Kevin Love (20)';
## Task Generate a SQL query to answer the following question: `Who had all the high rebounds when kevin love (20) scored the highest points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had all the high rebounds when kevin love (20) scored the highest points?`: ```sql
SELECT "team" FROM "game_log" WHERE "high_assists"='Sebastian Telfair (7)';
## Task Generate a SQL query to answer the following question: `What opposing team was playing when sebastian telfair (7) had the highest assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What opposing team was playing when sebastian telfair (7) had the highest assists?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='January 26';
## Task Generate a SQL query to answer the following question: `Name the score for january 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 `Name the score for january 26`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='April 12';
## Task Generate a SQL query to answer the following question: `Who did the high points in the game played on April 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 `Who did the high points in the game played on April 12?`: ```sql
SELECT "constructor" FROM "qualifying" WHERE "q1_order"=4;
## Task Generate a SQL query to answer the following question: `What is the constructor when the Q1 order is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying" ( "pos" text, "no" real, "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the constructor when the Q1 order is 4?`: ```sql
SELECT MAX("q1_order") FROM "qualifying" WHERE "driver"='Felipe Massa';
## Task Generate a SQL query to answer the following question: `What is the Q1 order for Felipe Massa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying" ( "pos" text, "no" real, "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Q1 order for Felipe Massa?`: ```sql
SELECT "q1_time" FROM "qualifying" WHERE "q1_order"=6;
## Task Generate a SQL query to answer the following question: `What is the Q1 time for the driver with Q1 order of 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying" ( "pos" text, "no" real, "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Q1 time for the driver with Q1 order of 6?`: ```sql
SELECT COUNT("q1_order") FROM "qualifying" WHERE "driver"='Alexander Wurz';
## Task Generate a SQL query to answer the following question: `How many Q1 figures are given for Alexander Wurz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying" ( "pos" text, "no" real, "driver" text, "constructor" text, "q1_order" real, "q1_time" text, "q1_pos" real, "q1_q2_time" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Q1 figures are given for Alexander Wurz?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "game"=12;
## Task Generate a SQL query to answer the following question: `Who all had the most assists in game 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 `Who all had the most assists in game 12?`: ```sql
SELECT "position" FROM "nascar_sprint_cup_series" WHERE "winnings"='$4,228,889';
## Task Generate a SQL query to answer the following question: `Which position offers winnings of $4,228,889?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which position offers winnings of $4,228,889?`: ```sql
SELECT "poles" FROM "nascar_sprint_cup_series" WHERE "team_s"='#14 Ginn Racing';
## Task Generate a SQL query to answer the following question: `How many poles did team #14 ginn racing have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many poles did team #14 ginn racing have?`: ```sql
SELECT "winnings" FROM "nascar_sprint_cup_series" WHERE "poles"=0 AND "position"='14th';
## Task Generate a SQL query to answer the following question: `When the poles are 0 and the position is 14th, how much are the winnings?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `When the poles are 0 and the position is 14th, how much are the winnings?`: ```sql
SELECT "starts" FROM "nascar_sprint_cup_series" WHERE "winnings"='$1,301,370';
## Task Generate a SQL query to answer the following question: `Which start won $1,301,370?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Which start won $1,301,370?`: ```sql
SELECT MAX("top_5") FROM "nascar_sprint_cup_series" WHERE "top_10"=5 AND "team_s"='#40 Chip Ganassi Racing';
## Task Generate a SQL query to answer the following question: `For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `For team #40 chip ganassi racing which top 5 is the highest where top 10 is 5?`: ```sql
SELECT "position" FROM "nascar_nationwide_series" WHERE "starts"=3;
## Task Generate a SQL query to answer the following question: `what is the posisiotn where the start is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the posisiotn where the start is 3?`: ```sql
SELECT "team_s" FROM "nascar_nationwide_series" WHERE "winnings"='$81,690';
## Task Generate a SQL query to answer the following question: `what is the team where winnings is $81,690?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_nationwide_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the team where winnings is $81,690?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Indiana';
## Task Generate a SQL query to answer the following question: `What was the attendance of the Indiana 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 `What was the attendance of the Indiana game?`: ```sql
SELECT "trans_2" FROM "triathlon" WHERE "bike_40km"='58:20';
## Task Generate a SQL query to answer the following question: `What is the trans 2 duration if the biking stage is covered within 58:20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triathlon" ( "athlete" text, "event" text, "swim_1_5km" text, "trans_1" text, "bike_40km" text, "trans_2" text, "run_10km" text, "total_time" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the trans 2 duration if the biking stage is covered within 58:20?`: ```sql
SELECT "trans_2" FROM "triathlon" WHERE "total_time"='1:51:19.45';
## Task Generate a SQL query to answer the following question: `What is the trans 2 duration if the total time is 1:51:19.45?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triathlon" ( "athlete" text, "event" text, "swim_1_5km" text, "trans_1" text, "bike_40km" text, "trans_2" text, "run_10km" text, "total_time" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the trans 2 duration if the total time is 1:51:19.45?`: ```sql
SELECT "swim_1_5km" FROM "triathlon" WHERE "athlete"='Daniela Ryf';
## Task Generate a SQL query to answer the following question: `What was the duration of Daniela Ryf's swimming stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triathlon" ( "athlete" text, "event" text, "swim_1_5km" text, "trans_1" text, "bike_40km" text, "trans_2" text, "run_10km" text, "total_time" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the duration of Daniela Ryf's swimming stage?`: ```sql
SELECT COUNT("athlete") FROM "triathlon" WHERE "trans_1"='0:26';
## Task Generate a SQL query to answer the following question: `How many athletes completed a trans 1 within 0:26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triathlon" ( "athlete" text, "event" text, "swim_1_5km" text, "trans_1" text, "bike_40km" text, "trans_2" text, "run_10km" text, "total_time" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `How many athletes completed a trans 1 within 0:26?`: ```sql
SELECT "athlete" FROM "triathlon" WHERE "bike_40km"='58:52';
## Task Generate a SQL query to answer the following question: `Who was the athlete that covered biking within 58:52?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "triathlon" ( "athlete" text, "event" text, "swim_1_5km" text, "trans_1" text, "bike_40km" text, "trans_2" text, "run_10km" text, "total_time" text, "rank" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the athlete that covered biking within 58:52?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='New York';
## Task Generate a SQL query to answer the following question: `All high points are team new york.` ### 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 `All high points are team new york.`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "date"='February 12';
## Task Generate a SQL query to answer the following question: `February 12 is the date for all location attendance.` ### 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 `February 12 is the date for all location attendance.`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game"=54;
## Task Generate a SQL query to answer the following question: `54 is the game where location attendance are.` ### 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 `54 is the game where location attendance are.`: ```sql
SELECT "record" FROM "game_log" WHERE "high_points"='Corey Maggette (25)';
## Task Generate a SQL query to answer the following question: `All high points were record by corey maggette (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 `All high points were record by corey maggette (25).`: ```sql
SELECT COUNT("location_attendance") FROM "game_log" WHERE "date"='December 29';
## Task Generate a SQL query to answer the following question: `what is the total number of attendance where the date is 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 `what is the total number of attendance where the date is december 29?`: ```sql
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "outgoing_manager"='Petrik Sander';
## Task Generate a SQL query to answer the following question: `What was the manner in which Petrik Sander departed?` ### 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 was the manner in which Petrik Sander departed?`: ```sql
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='Stuttgarter Kickers' AND "outgoing_manager"='Edgar Schmitt';
## Task Generate a SQL query to answer the following question: `What was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?` ### 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 was the manner of departure for Edgar Schmitt of the Stuttgarter Kickers?`: ```sql
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Jürgen Kohler';
## Task Generate a SQL query to answer the following question: `What was the date of appointment when Jürgen Kohler was the outgoing manager?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of appointment when Jürgen Kohler was the outgoing manager?`: ```sql
SELECT COUNT("date_of_appointment") FROM "managerial_changes" WHERE "replaced_by"='Jürgen Kohler';
## Task Generate a SQL query to answer the following question: `How many appointment dates were recorded when Jürgen Kohler was the replaced by?` ### 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 appointment dates were recorded when Jürgen Kohler was the replaced by?`: ```sql
SELECT "swimsuit" FROM "final_competition_score" WHERE "interview"='9.366';
## Task Generate a SQL query to answer the following question: `What are the swimsuit scores of participants with score 9.366 in interview` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the swimsuit scores of participants with score 9.366 in interview`: ```sql
SELECT "average" FROM "final_competition_score" WHERE "country"='Arizona';
## Task Generate a SQL query to answer the following question: `State average scores of participants from arizona` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `State average scores of participants from arizona`: ```sql
SELECT COUNT("interview") FROM "final_competition_score" WHERE "preliminary"='8.895';
## Task Generate a SQL query to answer the following question: `Number of participants with a score 8.895 in preliminary` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `Number of participants with a score 8.895 in preliminary`: ```sql
SELECT "evening_gown" FROM "final_competition_score" WHERE "swimsuit"='8.988';
## Task Generate a SQL query to answer the following question: `Evening gown scores of participants with 8.988 swimsuit score` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `Evening gown scores of participants with 8.988 swimsuit score`: ```sql
SELECT "average" FROM "final_competition_score" WHERE "evening_gown"='9.226';
## Task Generate a SQL query to answer the following question: `What are the average scores of participants with 9.226 in evening gown ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the average scores of participants with 9.226 in evening gown `: ```sql
SELECT "swimsuit" FROM "final_competition_score" WHERE "preliminary"='8.847';
## Task Generate a SQL query to answer the following question: `Give swimsuit scores of participants 8.847 in preliminary` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_competition_score" ( "country" text, "preliminary" text, "interview" text, "swimsuit" text, "evening_gown" text, "average" text ); ### SQL Given the database schema, here is the SQL query that answers `Give swimsuit scores of participants 8.847 in preliminary`: ```sql
SELECT "official_name" FROM "albert_county_new_brunswick" WHERE "area_km_2"='276.84';
## Task Generate a SQL query to answer the following question: `What is the official name of the land with an area of 276.84 km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "albert_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the official name of the land with an area of 276.84 km2?`: ```sql
SELECT COUNT("population") FROM "albert_county_new_brunswick" WHERE "area_km_2"='149.32';
## Task Generate a SQL query to answer the following question: `What is the total number of population in the land with an area of 149.32 km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "albert_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of population in the land with an area of 149.32 km2?`: ```sql
SELECT MAX("population") FROM "albert_county_new_brunswick" WHERE "area_km_2"='276.84';
## Task Generate a SQL query to answer the following question: `What is the maximum population of the land with an area of 276.84 km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "albert_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum population of the land with an area of 276.84 km2?`: ```sql
SELECT "area_km_2" FROM "albert_county_new_brunswick" WHERE "official_name"='Hopewell';
## Task Generate a SQL query to answer the following question: `What is the land area of Hopewell parish in km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "albert_county_new_brunswick" ( "official_name" text, "status" text, "area_km_2" text, "population" real, "census_ranking" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the land area of Hopewell parish in km2?`: ```sql
SELECT "march_27_29" FROM "table1_1708610_3" WHERE "november_3"='133';
## Task Generate a SQL query to answer the following question: `Name the march 27-29 for november 3 being 133` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1708610_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the march 27-29 for november 3 being 133`: ```sql
SELECT "march_27_29" FROM "table1_1708610_3" WHERE "january_15_16"='January 15, 1991';
## Task Generate a SQL query to answer the following question: `Name march 27-29 where january 15-16 is january 15, 1991` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1708610_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `Name march 27-29 where january 15-16 is january 15, 1991`: ```sql
SELECT "january_15_16" FROM "table1_1708610_3" WHERE "march_27_29"='March 29, 2006';
## Task Generate a SQL query to answer the following question: `Name the january 15-16 where march 27-29 where march 29, 2006` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1708610_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the january 15-16 where march 27-29 where march 29, 2006`: ```sql
SELECT COUNT("location_attendance") FROM "table1_17102076_10" WHERE "score"='L 141–143 (OT)';
## Task Generate a SQL query to answer the following question: `Name the number of location attendance for l 141–143 (ot)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17102076_10" ( "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 location attendance for l 141–143 (ot)`: ```sql
SELECT "record" FROM "table1_17102076_10" WHERE "date"='April 1';
## Task Generate a SQL query to answer the following question: `Name the record for april 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17102076_10" ( "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 april 1`: ```sql
SELECT "high_assists" FROM "table1_17102076_10" WHERE "score"='L 98–118 (OT)';
## Task Generate a SQL query to answer the following question: `Name the high assists for score being l 98–118 (ot)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17102076_10" ( "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 score being l 98–118 (ot)`: ```sql
SELECT MIN("game") FROM "table1_17102076_10" WHERE "location_attendance"='ARCO Arena 13,330';
## Task Generate a SQL query to answer the following question: `Name the least game for arco arena 13,330` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17102076_10" ( "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 least game for arco arena 13,330`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "game"=11;
## Task Generate a SQL query to answer the following question: `Name the high rebounds for game 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 `Name the high rebounds for game 11`: ```sql
SELECT "high_points" FROM "game_log" WHERE "score"='L 92–100 (OT)';
## Task Generate a SQL query to answer the following question: `Name the high points for score being l 92–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 high points for score being l 92–100 (ot)`: ```sql
SELECT "team" FROM "game_log" WHERE "location_attendance"='ARCO Arena 13,685';
## Task Generate a SQL query to answer the following question: `Name the team for arco arena 13,685` ### 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 arco arena 13,685`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=35;
## Task Generate a SQL query to answer the following question: `What was the score of game 35?` ### 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 game 35?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "score"='65-72';
## Task Generate a SQL query to answer the following question: `Name the location attendance for score of 65-72` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location attendance for score of 65-72`: ```sql
SELECT "record" FROM "regular_season" WHERE "date"='July 18';
## Task Generate a SQL query to answer the following question: `Name the record for july 18` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for july 18`: ```sql
SELECT COUNT("high_assists") FROM "regular_season" WHERE "date"='July 1';
## Task Generate a SQL query to answer the following question: `Name the number of high assists for july 1` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of high assists for july 1`: ```sql
SELECT "score" FROM "regular_season" WHERE "game"=19;
## Task Generate a SQL query to answer the following question: `Name the score when game is 19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score when game is 19`: ```sql
SELECT "result" FROM "table1_17103566_1" WHERE "team_1"='ICL Pakistan';
## Task Generate a SQL query to answer the following question: `What is the result when team 1 is ICL Pakistan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the result when team 1 is ICL Pakistan?`: ```sql
SELECT "match_number" FROM "table1_17103566_1" WHERE "result"='ICL World by 8 wickets';
## Task Generate a SQL query to answer the following question: `What is the match number where the result is ICL World by 8 wickets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the match number where the result is ICL World by 8 wickets?`: ```sql
SELECT "team_2" FROM "table1_17103566_1" WHERE "result"='ICL World by 8 wickets';
## Task Generate a SQL query to answer the following question: `What is team 2 where the result is ICL world by 8 wickets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `What is team 2 where the result is ICL world by 8 wickets?`: ```sql
SELECT "man_of_the_match" FROM "table1_17103566_1" WHERE "team_1"='ICL Pakistan';
## Task Generate a SQL query to answer the following question: `Who is man of the match when Team 1 is ICL Pakistan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is man of the match when Team 1 is ICL Pakistan?`: ```sql
SELECT COUNT("date") FROM "table1_17103566_1" WHERE "match_number"=5;
## Task Generate a SQL query to answer the following question: `How many dates have a Match number of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `How many dates have a Match number of 5?`: ```sql
SELECT "man_of_the_match" FROM "table1_17103566_1" WHERE "match_number"=5;
## Task Generate a SQL query to answer the following question: `Who is man of the match for match number 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_17103566_1" ( "match_number" real, "date" text, "venue" text, "team_1" text, "team_2" text, "result" text, "man_of_the_match" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is man of the match for match number 5?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "score"='68-85';
## Task Generate a SQL query to answer the following question: `With a score of 68-85, what is the location and attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `With a score of 68-85, what is the location and attendance?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "score"='64-74';
## Task Generate a SQL query to answer the following question: `Name the location of 64-74` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location of 64-74`: ```sql
SELECT "score" FROM "regular_season" WHERE "game"=25;
## Task Generate a SQL query to answer the following question: `Name the score for game for 25` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for game for 25`: ```sql
SELECT "record" FROM "regular_season" WHERE "location_attendance"='Palace of Auburn Hills 15,210';
## Task Generate a SQL query to answer the following question: `Name the record for attendance location of palace of auburn hills 15,210` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for attendance location of palace of auburn hills 15,210`: ```sql
SELECT COUNT("high_rebounds") FROM "regular_season" WHERE "score"='64-74';
## Task Generate a SQL query to answer the following question: `Name the high rebounds for score of 64-74` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the high rebounds for score of 64-74`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='July 16';
## Task Generate a SQL query to answer the following question: `Namethe score for july 16` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Namethe score for july 16`: ```sql
SELECT "best_10_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='Fischer';
## Task Generate a SQL query to answer the following question: `Which people had the best 10-year period when Fischer had best 15-year period?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moves_played_compared_with_computer_choi" ( "position" real, "best_year" text, "best_2_year_period" text, "best_3_year_period" text, "best_5_year_period" text, "best_10_year_period" text, "best_15_year_period" text ); ### SQL Given the database schema, here is the SQL query that answers `Which people had the best 10-year period when Fischer had best 15-year period?`: ```sql
SELECT "best_10_year_period" FROM "moves_played_compared_with_computer_choi" WHERE "best_15_year_period"='Capablanca';
## Task Generate a SQL query to answer the following question: `Which people had the best 10-year period when Capablanca had the best 15-year period?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "moves_played_compared_with_computer_choi" ( "position" real, "best_year" text, "best_2_year_period" text, "best_3_year_period" text, "best_5_year_period" text, "best_10_year_period" text, "best_15_year_period" text ); ### SQL Given the database schema, here is the SQL query that answers `Which people had the best 10-year period when Capablanca had the best 15-year period?`: ```sql
SELECT "record" FROM "regular_season" WHERE "date"='June 7';
## Task Generate a SQL query to answer the following question: `Name the record for june 7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for june 7`: ```sql
SELECT "date" FROM "regular_season" WHERE "score"='W 83-69';
## Task Generate a SQL query to answer the following question: `Name the date for the score of w 83-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, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for the score of w 83-69`: ```sql
SELECT "record" FROM "regular_season" WHERE "score"='W 76-67';
## Task Generate a SQL query to answer the following question: `Name the record for score of w 76-67` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for score of w 76-67`: ```sql
SELECT "score" FROM "regular_season" WHERE "date"='September 9';
## Task Generate a SQL query to answer the following question: `What are the scores for games played on september 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the scores for games played on september 9?`: ```sql
SELECT "score" FROM "regular_season" WHERE "record"='16-17';
## Task Generate a SQL query to answer the following question: `What was the score of the game played when the team was 16-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score of the game played when the team was 16-17?`: ```sql
SELECT "location_attendance" FROM "regular_season" WHERE "game"=32;
## Task Generate a SQL query to answer the following question: `What was the location and where did the team play game number 32?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "opponent" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location and where did the team play game number 32?`: ```sql
SELECT "5_year_peak" FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';
## Task Generate a SQL query to answer the following question: `What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every 5-year peek with a when Anatoly Karpov, 2820 is 15-year peak?`: ```sql
SELECT MAX("rank") FROM "chessmetrics" WHERE "1_year_peak"='Garry Kasparov, 2879';
## Task Generate a SQL query to answer the following question: `What is the highest rank when Garry Kasparov, 2879 is the 1-year peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank when Garry Kasparov, 2879 is the 1-year peak?`: ```sql
SELECT "5_year_peak" FROM "chessmetrics" WHERE "10_year_peak"='Emanuel Lasker, 2847';
## Task Generate a SQL query to answer the following question: `What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every 5-year peak when Emanuel Lasker, 2847 is the 10-year peak?`: ```sql
SELECT MAX("rank") FROM "chessmetrics" WHERE "15_year_peak"='Anatoly Karpov, 2820';
## Task Generate a SQL query to answer the following question: `What is the highest rank when Anatoly Karpov, 2820 is the 15-year peak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chessmetrics" ( "rank" real, "1_year_peak" text, "5_year_peak" text, "10_year_peak" text, "15_year_peak" text, "20_year_peak" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank when Anatoly Karpov, 2820 is the 15-year peak?`: ```sql