output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "location_attendance" FROM "regular_season" WHERE "team"='Utah';
## Task Generate a SQL query to answer the following question: `Name the location attendance for utah` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location attendance for utah`: ```sql
SELECT COUNT("game") FROM "regular_season" WHERE "team"='Houston';
## Task Generate a SQL query to answer the following question: `How many games were played against houston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games were played against houston?`: ```sql
SELECT "team" FROM "regular_season" WHERE "date"='November 24';
## Task Generate a SQL query to answer the following question: `What team was played on november 24?` ### 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 team was played on november 24?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "game"=4;
## Task Generate a SQL query to answer the following question: `Who had the most points in game 4?` ### 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 most points in game 4?`: ```sql
SELECT "high_points" FROM "regular_season" WHERE "team"='New York';
## Task Generate a SQL query to answer the following question: `Who had the highest points against new york?` ### 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 highest points against new york?`: ```sql
SELECT "syrian_christians" FROM "indian_religions" WHERE "district"='Thiruvananthapuram';
## Task Generate a SQL query to answer the following question: `Name the syrian christians for thiruvananthapuram` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the syrian christians for thiruvananthapuram`: ```sql
SELECT "ezhavas" FROM "indian_religions" WHERE "muslims"='5.4';
## Task Generate a SQL query to answer the following question: `Name the ezhavas for muslims being 5.4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the ezhavas for muslims being 5.4`: ```sql
SELECT "ezhavas" FROM "indian_religions" WHERE "syrian_christians"='26.2';
## Task Generate a SQL query to answer the following question: `Name the ezhavas and syrian christians being 26.2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the ezhavas and syrian christians being 26.2`: ```sql
SELECT "syrian_christians" FROM "indian_religions" WHERE "district"='Kollam';
## Task Generate a SQL query to answer the following question: `Name the syrian christians for kollam` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the syrian christians for kollam`: ```sql
SELECT "district" FROM "indian_religions" WHERE "others"='18.3';
## Task Generate a SQL query to answer the following question: `Name the district for others being 18.3` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the district for others being 18.3`: ```sql
SELECT "district" FROM "indian_religions" WHERE "nairs"='8.2';
## Task Generate a SQL query to answer the following question: `Name the district for nairs 8.2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indian_religions" ( "district" text, "sc_st" text, "nairs" text, "ezhavas" text, "syrian_christians" text, "latin_christians" text, "muslims" text, "others" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the district for nairs 8.2`: ```sql
SELECT COUNT("2005_06_points") FROM "team_seedings" WHERE "total_points"=5;
## Task Generate a SQL query to answer the following question: `If the total points is 5, what is the 2005-2006 points total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_seedings" ( "rank" real, "team" text, "total_points" real, "2008_09_points" real, "2007_08_points" real, "2006_07_points" real, "2005_06_points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the total points is 5, what is the 2005-2006 points total number?`: ```sql
SELECT MIN("2006_07_points") FROM "team_seedings" WHERE "team"='Overmach Parma';
## Task Generate a SQL query to answer the following question: `What is the 2006-2007 points minimum is the team is Overmach Parma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_seedings" ( "rank" real, "team" text, "total_points" real, "2008_09_points" real, "2007_08_points" real, "2006_07_points" real, "2005_06_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2006-2007 points minimum is the team is Overmach Parma?`: ```sql
SELECT "2005_06_points" FROM "team_seedings" WHERE "team"='Worcester';
## Task Generate a SQL query to answer the following question: `If the team is Worcester, what is the 2005-2006 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_seedings" ( "rank" real, "team" text, "total_points" real, "2008_09_points" real, "2007_08_points" real, "2006_07_points" real, "2005_06_points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the team is Worcester, what is the 2005-2006 points?`: ```sql
SELECT COUNT("2006_07_points") FROM "team_seedings" WHERE "team"='Saracens';
## Task Generate a SQL query to answer the following question: `What is the 2006-2007 points total number if the team is Saracens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_seedings" ( "rank" real, "team" text, "total_points" real, "2008_09_points" real, "2007_08_points" real, "2006_07_points" real, "2005_06_points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2006-2007 points total number if the team is Saracens?`: ```sql
SELECT MIN("total_points") FROM "team_seedings" WHERE "2005_06_points"=1;
## Task Generate a SQL query to answer the following question: `If the points is 1, what is the total points minimum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "team_seedings" ( "rank" real, "team" text, "total_points" real, "2008_09_points" real, "2007_08_points" real, "2006_07_points" real, "2005_06_points" real ); ### SQL Given the database schema, here is the SQL query that answers `If the points is 1, what is the total points minimum?`: ```sql
SELECT "season" FROM "southern_bavaria" WHERE "oberpfalz"='SpVgg Vohenstrauß';
## Task Generate a SQL query to answer the following question: `When spvgg vohenstrauß is the oberpfalz what is the season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When spvgg vohenstrauß is the oberpfalz what is the season?`: ```sql
SELECT "niederbayern" FROM "southern_bavaria" WHERE "oberbayern_b"='ESV Ingolstadt';
## Task Generate a SQL query to answer the following question: `When esv ingolstadt is the oberbayern b what is the niederbayern?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When esv ingolstadt is the oberbayern b what is the niederbayern?`: ```sql
SELECT "schwaben" FROM "southern_bavaria" WHERE "oberbayern_a"='Wacker Burghausen';
## Task Generate a SQL query to answer the following question: `When wacker burghausen is the oberbayern a what is the schwaben?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When wacker burghausen is the oberbayern a what is the schwaben?`: ```sql
SELECT "oberpfalz" FROM "southern_bavaria" WHERE "oberbayern_a"='FC Oberau';
## Task Generate a SQL query to answer the following question: `When fc oberau is the oberbayern a what is the oberpfalz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When fc oberau is the oberbayern a what is the oberpfalz?`: ```sql
SELECT "oberbayern_b" FROM "southern_bavaria" WHERE "oberpfalz"='TuS Rosenberg';
## Task Generate a SQL query to answer the following question: `When tus rosenberg is the oberpfalz what is the oberbayern b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When tus rosenberg is the oberpfalz what is the oberbayern b?`: ```sql
SELECT "oberbayern_b" FROM "southern_bavaria" WHERE "oberpfalz"='FC Schwandorf';
## Task Generate a SQL query to answer the following question: `When fc schwandorf is the oberpfalz what is the oberbayern b?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "southern_bavaria" ( "season" text, "oberbayern_a" text, "oberbayern_b" text, "niederbayern" text, "schwaben" text, "oberpfalz" text ); ### SQL Given the database schema, here is the SQL query that answers `When fc schwandorf is the oberpfalz what is the oberbayern b?`: ```sql
SELECT "score_in_the_final" FROM "singles_19_finals_8_titles_11_runner_ups" WHERE "outcome"='Winner' AND "year"=1989;
## Task Generate a SQL query to answer the following question: `What was the score in the final when the outcome was winner in 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_19_finals_8_titles_11_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the final when the outcome was winner in 1989?`: ```sql
SELECT "score_in_the_final" FROM "singles_19_finals_8_titles_11_runner_ups" WHERE "championship"='Australian Open' AND "opponent_in_the_final"='Mats Wilander';
## Task Generate a SQL query to answer the following question: `What was the score in the final when Mats Wilander was the opponent in the Australian Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_19_finals_8_titles_11_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the final when Mats Wilander was the opponent in the Australian Open?`: ```sql
SELECT "original_air_date" FROM "table1_23225927_1" WHERE "no_in_season"=22;
## Task Generate a SQL query to answer the following question: `If the number in the season is 22, what is the original air date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23225927_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `If the number in the season is 22, what is the original air date?`: ```sql
SELECT MAX("no_in_season") FROM "table1_23225927_1" WHERE "written_by"='Jonathan Greene';
## Task Generate a SQL query to answer the following question: `What is the maximum season number for the episode written by Jonathan Greene?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23225927_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum season number for the episode written by Jonathan Greene?`: ```sql
SELECT "original_air_dates" FROM "table1_2322716_2" WHERE "prod_code"=201;
## Task Generate a SQL query to answer the following question: `Name the original air date for prod code 201` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2322716_2" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_air_dates" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the original air date for prod code 201`: ```sql
SELECT "written_by" FROM "table1_2322716_2" WHERE "prod_code"=206;
## Task Generate a SQL query to answer the following question: `Name the written by for prod code being 206` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2322716_2" ( "num" text, "original_title" text, "directed_by" text, "written_by" text, "original_air_dates" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the written by for prod code being 206`: ```sql
SELECT MAX("position") FROM "driver_standings";
## Task Generate a SQL query to answer the following question: `How many positions are there in Canadian Nascar? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "driver_standings" ( "position" real, "driver" text, "points" real, "starts" real, "wins" real, "top_5s" real, "top_10s" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many positions are there in Canadian Nascar? `: ```sql
SELECT COUNT("driver") FROM "driver_standings" WHERE "points"=1942;
## Task Generate a SQL query to answer the following question: `How many drivers have 1942 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "driver_standings" ( "position" real, "driver" text, "points" real, "starts" real, "wins" real, "top_5s" real, "top_10s" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many drivers have 1942 points?`: ```sql
SELECT MIN("starts") FROM "driver_standings";
## Task Generate a SQL query to answer the following question: `How many starts are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "driver_standings" ( "position" real, "driver" text, "points" real, "starts" real, "wins" real, "top_5s" real, "top_10s" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many starts are there?`: ```sql
SELECT COUNT("wins") FROM "driver_standings" WHERE "driver"='Andrew Ranger';
## Task Generate a SQL query to answer the following question: `How many wins did Andrew Ranger have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "driver_standings" ( "position" real, "driver" text, "points" real, "starts" real, "wins" real, "top_5s" real, "top_10s" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `How many wins did Andrew Ranger have?`: ```sql
SELECT MAX("winnings") FROM "driver_standings" WHERE "position"=7;
## Task Generate a SQL query to answer the following question: `What are the winnings for position 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "driver_standings" ( "position" real, "driver" text, "points" real, "starts" real, "wins" real, "top_5s" real, "top_10s" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the winnings for position 7?`: ```sql
SELECT "no_in_series" FROM "table1_23242958_1" WHERE "written_by"='David Zuckerman';
## Task Generate a SQL query to answer the following question: `What number episode in the series was written by David Zuckerman? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242958_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode in the series was written by David Zuckerman? `: ```sql
SELECT "original_air_date" FROM "table1_23242958_1" WHERE "written_by"='David Zuckerman';
## Task Generate a SQL query to answer the following question: `What is the original air date of the episode written by David Zuckerman? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242958_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date of the episode written by David Zuckerman? `: ```sql
SELECT "title" FROM "table1_23242958_1" WHERE "directed_by"='Rodney Clouden';
## Task Generate a SQL query to answer the following question: `What is the title of the episode directed by Rodney Clouden? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242958_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the title of the episode directed by Rodney Clouden? `: ```sql
SELECT "u_s_viewers_millions" FROM "table1_23242958_1" WHERE "production_code"='3AJN01';
## Task Generate a SQL query to answer the following question: `How many millions of U.S. viewers watched the episode with the production code of 3AJN01?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242958_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of U.S. viewers watched the episode with the production code of 3AJN01?`: ```sql
SELECT "directed_by" FROM "table1_23242968_1" WHERE "u_s_viewers_millions"='6.76';
## Task Generate a SQL query to answer the following question: `Who directed the episode that had 6.76 million U.S. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242968_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode that had 6.76 million U.S. viewers?`: ```sql
SELECT MAX("no_in_season") FROM "table1_23242968_1" WHERE "no_in_series"=75;
## Task Generate a SQL query to answer the following question: `What episode number of the season was also number 75 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242968_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What episode number of the season was also number 75 in the series?`: ```sql
SELECT "written_by" FROM "table1_23242968_1" WHERE "production_code"='3AJN20';
## Task Generate a SQL query to answer the following question: `Who wrote the episode that had a production code of 3ajn20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242968_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode that had a production code of 3ajn20?`: ```sql
SELECT "directed_by" FROM "table1_23242968_1" WHERE "written_by"='Jonathan Fener';
## Task Generate a SQL query to answer the following question: `Who directed the episode that was written by Jonathan Fener?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242968_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode that was written by Jonathan Fener?`: ```sql
SELECT "title" FROM "table1_23242968_1" WHERE "production_code"='3AJN20';
## Task Generate a SQL query to answer the following question: `What was the name of the episode with a production code of 3ajn20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242968_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the name of the episode with a production code of 3ajn20?`: ```sql
SELECT "written_by" FROM "table1_23242933_2" WHERE "production_code"='1AJN05';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with production code 1AJN05?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with production code 1AJN05?`: ```sql
SELECT COUNT("no_in_series") FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='7.84';
## Task Generate a SQL query to answer the following question: `How many different series numbers are there for the episode seen by 7.84 million people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different series numbers are there for the episode seen by 7.84 million people in the US?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_23242933_2" WHERE "title"='\"Francine''s Flashback\"';
## Task Generate a SQL query to answer the following question: `How many millions of people in the US saw the episode titled "Francine's Flashback"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of people in the US saw the episode titled "Francine's Flashback"?`: ```sql
SELECT MAX("no_in_series") FROM "table1_23242933_2" WHERE "written_by"='Dan Vebber';
## Task Generate a SQL query to answer the following question: `What's the series number of the episode written by Dan Vebber?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the series number of the episode written by Dan Vebber?`: ```sql
SELECT COUNT("title") FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='7.84';
## Task Generate a SQL query to answer the following question: `How many different titles are there of episodes that have been seen by 7.84 million people in the US/` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different titles are there of episodes that have been seen by 7.84 million people in the US/`: ```sql
SELECT "original_air_date" FROM "table1_23242933_2" WHERE "u_s_viewers_millions"='6.09';
## Task Generate a SQL query to answer the following question: `When did 6.09 million people in the US see the original airing of an episode of the show?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242933_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `When did 6.09 million people in the US see the original airing of an episode of the show?`: ```sql
SELECT MIN("no_in_season") FROM "table1_23242950_1" WHERE "title"='\"Dungeons and Wagons\"';
## Task Generate a SQL query to answer the following question: `What's the season number of the episode titled "Dungeons and wagons"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242950_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the season number of the episode titled "Dungeons and wagons"?`: ```sql
SELECT MIN("no_in_season") FROM "table1_23242950_1" WHERE "u_s_viewers_millions"='6.64';
## Task Generate a SQL query to answer the following question: `What's the season number of the episode originally seen by 6.64 million people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242950_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the season number of the episode originally seen by 6.64 million people in the US?`: ```sql
SELECT "production_code" FROM "table1_23242950_1" WHERE "u_s_viewers_millions"='7.49';
## Task Generate a SQL query to answer the following question: `What's the production code of the episode seen by 7.49 million people in the US?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23242950_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the production code of the episode seen by 7.49 million people in the US?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "opp_points"=44;
## Task Generate a SQL query to answer the following question: `What opponent got 44 points in their game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "location" text, "opponent" text, "sun_devils_points" real, "opp_points" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What opponent got 44 points in their game?`: ```sql
SELECT "location" FROM "schedule" WHERE "record"='4-1';
## Task Generate a SQL query to answer the following question: `Where was the game with a 4-1 record played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "location" text, "opponent" text, "sun_devils_points" real, "opp_points" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the game with a 4-1 record played?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Larry Hughes (21)';
## Task Generate a SQL query to answer the following question: `Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did the high rebounds in the game where Larry Hughes (21) did the high ponts?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='December 11';
## Task Generate a SQL query to answer the following question: `How many different people did different scores of high assists during the December 11 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 `How many different people did different scores of high assists during the December 11 game?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='Portland';
## Task Generate a SQL query to answer the following question: `Who did the high assists in the game against Portland?` ### 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 assists in the game against Portland?`: ```sql
SELECT "score" FROM "game_log" WHERE "location_attendance"='Madison Square Garden 19,763' AND "game"<80.0;
## Task Generate a SQL query to answer the following question: `What is every score for location attendance of Madison Square Garden 19,763 and game less than 80.0?` ### 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 score for location attendance of Madison Square Garden 19,763 and game less than 80.0?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Boston';
## Task Generate a SQL query to answer the following question: `What is every record for the team 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 every record for the team Boston?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "game"=81;
## Task Generate a SQL query to answer the following question: `How many values for high assists when the game is 81?` ### 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 values for high assists when the game is 81?`: ```sql
SELECT COUNT("date") FROM "game_log" WHERE "high_points"='David Lee (30)';
## Task Generate a SQL query to answer the following question: `How many times was the high points david lee (30)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times was the high points david lee (30)`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "score"='L 85–118 (OT)';
## Task Generate a SQL query to answer the following question: `Who had the high assists when the score was l 85–118 (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 had the high assists when the score was l 85–118 (ot)`: ```sql
SELECT "record" FROM "game_log" WHERE "high_rebounds"='David Lee (8)';
## Task Generate a SQL query to answer the following question: `What was the record when the high rebounds was david lee (8)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record when the high rebounds was david lee (8)`: ```sql
SELECT COUNT("score") FROM "game_log" WHERE "record"='19–34';
## Task Generate a SQL query to answer the following question: `How many times was the record 19–34` ### 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 was the record 19–34`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='19–35';
## Task Generate a SQL query to answer the following question: `What was the score when the record was 19–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 when the record was 19–35`: ```sql
SELECT MIN("game") FROM "game_log" WHERE "high_points"='David Lee (30)';
## Task Generate a SQL query to answer the following question: `What was the game when high points was david lee (30)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the game when high points was david lee (30)`: ```sql
SELECT COUNT("population_2010_census") FROM "political" WHERE "pop_density_per_km"='7,447.32';
## Task Generate a SQL query to answer the following question: `If the population density is 7,447.32, what is the population total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "city_municipality" text, "no_of_barangays" real, "area_km" text, "population_2010_census" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `If the population density is 7,447.32, what is the population total number?`: ```sql
SELECT "pop_density_per_km" FROM "political" WHERE "no_of_barangays"=19;
## Task Generate a SQL query to answer the following question: `If the number of barangays is 19, what is the population density?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "city_municipality" text, "no_of_barangays" real, "area_km" text, "population_2010_census" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `If the number of barangays is 19, what is the population density?`: ```sql
SELECT MIN("population_2010_census") FROM "political" WHERE "area_km"='66.34';
## Task Generate a SQL query to answer the following question: `If the area is 66.34, what is the minimum (2010 census) population?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "city_municipality" text, "no_of_barangays" real, "area_km" text, "population_2010_census" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `If the area is 66.34, what is the minimum (2010 census) population?`: ```sql
SELECT "city_municipality" FROM "political" WHERE "pop_density_per_km"='1,388.88';
## Task Generate a SQL query to answer the following question: `What is the name of the city/municipality if the population is 1,388.88?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "political" ( "city_municipality" text, "no_of_barangays" real, "area_km" text, "population_2010_census" real, "pop_density_per_km" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the city/municipality if the population is 1,388.88?`: ```sql
SELECT COUNT("rank") FROM "cities_and_towns" WHERE "country"='England' AND "county"='Merseyside' AND "city_town"='Birkenhead';
## Task Generate a SQL query to answer the following question: `When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When birkenhead is the city/town and merseyside is the county and england is the country how many ranks are there?`: ```sql
SELECT "city_town" FROM "cities_and_towns" WHERE "rank"=2;
## Task Generate a SQL query to answer the following question: `When 2 is the rank what is the city/town?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When 2 is the rank what is the city/town?`: ```sql
SELECT "county" FROM "cities_and_towns" WHERE "region_province"='North West' AND "rank"=20;
## Task Generate a SQL query to answer the following question: `When 20 is the rank and north west is the region/province what is the county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When 20 is the rank and north west is the region/province what is the county?`: ```sql
SELECT COUNT("population") FROM "cities_and_towns" WHERE "city_town"='Fleetwood';
## Task Generate a SQL query to answer the following question: `When fleetwood is the city/town how many sets of population are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When fleetwood is the city/town how many sets of population are there?`: ```sql
SELECT MAX("rank") FROM "cities_and_towns" WHERE "population"=142900;
## Task Generate a SQL query to answer the following question: `When 142900 is the population what is the highest rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When 142900 is the population what is the highest rank?`: ```sql
SELECT "county" FROM "cities_and_towns" WHERE "population"=31901;
## Task Generate a SQL query to answer the following question: `When 31901 is the population what is the county?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cities_and_towns" ( "rank" real, "city_town" text, "county" text, "region_province" text, "population" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `When 31901 is the population what is the county?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='11-3';
## Task Generate a SQL query to answer the following question: `What was the score against the team with an 11-3 record against the Hawks?` ### 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 against the team with an 11-3 record against the Hawks?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "record"='5-2';
## Task Generate a SQL query to answer the following question: `Who had the most rebounds in the game against the team with a 5-2 record against the Hawks?` ### 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 rebounds in the game against the team with a 5-2 record against the Hawks?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Cavaliers';
## Task Generate a SQL query to answer the following question: `What location and it's attendance was the game against the cavaliers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What location and it's attendance was the game against the cavaliers?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Raptors';
## Task Generate a SQL query to answer the following question: `Who scored the highest points and how much against the raptors?` ### 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 highest points and how much against the raptors?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Nets';
## Task Generate a SQL query to answer the following question: `What location and it's attendance was the game against the Nets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What location and it's attendance was the game against the Nets?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='April 2';
## Task Generate a SQL query to answer the following question: `List all players with highest assists from April 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 `List all players with highest assists from April 2.`: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='April 7';
## Task Generate a SQL query to answer the following question: `List high points from the April 7 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 `List high points from the April 7 game.`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='March 5';
## Task Generate a SQL query to answer the following question: `What is every team on March 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every team on March 5?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Pistons';
## Task Generate a SQL query to answer the following question: `Who is every high points for the Pistons team?` ### 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 is every high points for the Pistons team?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='46-25';
## Task Generate a SQL query to answer the following question: `What is every score with a record of 46-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 is every score with a record of 46-25?`: ```sql
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "record"='34-32';
## Task Generate a SQL query to answer the following question: `How many people had high rebounds during the game with a record of 34-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 `How many people had high rebounds during the game with a record of 34-32?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "game"=71;
## Task Generate a SQL query to answer the following question: `How many people led in assists on game 71?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people led in assists on game 71?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Washington';
## Task Generate a SQL query to answer the following question: `What was the location and it's attendance when the Bobcats played against 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 was the location and it's attendance when the Bobcats played against Washington?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Milwaukee';
## Task Generate a SQL query to answer the following question: `Name the record for 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 `Name the record for milwaukee`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='10-14';
## Task Generate a SQL query to answer the following question: `Name the location attendance for 10-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 `Name the location attendance for 10-14`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='December 8';
## Task Generate a SQL query to answer the following question: `Name the record for december 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 record for december 8`: ```sql
SELECT "score" FROM "game_log" WHERE "game"=50;
## Task Generate a SQL query to answer the following question: `How did the game number 50 end?` ### 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 did the game number 50 end?`: ```sql
SELECT COUNT("high_assists") FROM "game_log" WHERE "date"='February 24';
## Task Generate a SQL query to answer the following question: `How many different high assists results are there for the game played on February 24?` ### 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 different high assists results are there for the game played on February 24?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "date"='February 6';
## Task Generate a SQL query to answer the following question: `Who did the most high assists during the game played on February 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who did the most high assists during the game played on February 6?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game"=55;
## Task Generate a SQL query to answer the following question: `Where was game number 55 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was game number 55 played?`: ```sql
SELECT "date" FROM "game_log" WHERE "game"=78;
## Task Generate a SQL query to answer the following question: `What date was game 78 played on?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was game 78 played on?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='April 9';
## Task Generate a SQL query to answer the following question: `What is the final score of the game on April 9?` ### 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 final score of the game on April 9?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "game"=78;
## Task Generate a SQL query to answer the following question: `Who scored the high points in game 78?` ### 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 in game 78?`: ```sql
SELECT "score" FROM "game_log" WHERE "game">29.0;
## Task Generate a SQL query to answer the following question: `What is the score when the game is bigger than 29.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when the game is bigger than 29.0?`: ```sql
SELECT "team" FROM "game_log" WHERE "high_points"='Rashard Lewis (24)';
## Task Generate a SQL query to answer the following question: `When rashard lewis (24) has the highest amount of points who is the team?` ### 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 rashard lewis (24) has the highest amount of points who is the team?`: ```sql