output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("team") FROM "game_log" WHERE "high_points"='Vince Carter (24)';
## Task Generate a SQL query to answer the following question: `When vince carter (24) has the highest points how many teams are there? ` ### 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 vince carter (24) has the highest points how many teams are there? `: ```sql
SELECT "championship" FROM "singles_10_7_titles_3_runner_ups" WHERE "opponent_in_the_final"='Ken Rosewall';
## Task Generate a SQL query to answer the following question: `In which championship did John Newcombe play against Ken Rosewall in the final match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_10_7_titles_3_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 `In which championship did John Newcombe play against Ken Rosewall in the final match?`: ```sql
SELECT "score_in_the_final" FROM "singles_10_7_titles_3_runner_ups" WHERE "outcome"='Runner-up' AND "championship"='Wimbledon';
## Task Generate a SQL query to answer the following question: `What were the scores of the Wimbledon final matches where Newcombe was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_10_7_titles_3_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 were the scores of the Wimbledon final matches where Newcombe was the runner-up?`: ```sql
SELECT MIN("year") FROM "singles_10_7_titles_3_runner_ups" WHERE "opponent_in_the_final"='Clark Graebner';
## Task Generate a SQL query to answer the following question: `On what year did Newcombe first face Clark Graebner in a final match?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_10_7_titles_3_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 `On what year did Newcombe first face Clark Graebner in a final match?`: ```sql
SELECT "outcome" FROM "singles_10_7_titles_3_runner_ups" WHERE "opponent_in_the_final"='Jan Kodeš';
## Task Generate a SQL query to answer the following question: `What was the outcome for Newcombe in the matches he played against Jan Kodeš?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_10_7_titles_3_runner_ups" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the outcome for Newcombe in the matches he played against Jan Kodeš?`: ```sql
SELECT COUNT("written_by") FROM "table1_23255941_1" WHERE "directed_by"='Charles Haid';
## Task Generate a SQL query to answer the following question: `How many writers were there in the episode directed by Charles Haid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23255941_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many writers were there in the episode directed by Charles Haid?`: ```sql
SELECT "original_air_date" FROM "table1_23255941_1" WHERE "title"='\"Hothead\"';
## Task Generate a SQL query to answer the following question: `What was the original air date of "Hothead"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23255941_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original air date of "Hothead"?`: ```sql
SELECT "title" FROM "table1_23255941_1" WHERE "written_by"='Mark Goffman';
## Task Generate a SQL query to answer the following question: `What was the title of the episode written by Mark Goffman?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23255941_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title of the episode written by Mark Goffman?`: ```sql
SELECT COUNT("original_air_date") FROM "table1_23255941_1" WHERE "episode_num"=12;
## Task Generate a SQL query to answer the following question: `How many original air dates did episode 12 have?h` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23255941_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many original air dates did episode 12 have?h`: ```sql
SELECT "viewers_in_millions" FROM "table1_23255941_1" WHERE "directed_by"='Christine Moore';
## Task Generate a SQL query to answer the following question: `How many millions of viewers watched the episode directed by Christine Moore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23255941_1" ( "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_in_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of viewers watched the episode directed by Christine Moore?`: ```sql
SELECT COUNT("date") FROM "game_log" WHERE "score"='W 107–97 (OT)';
## Task Generate a SQL query to answer the following question: `Name the number of date for w 107–97 (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 number of date for w 107–97 (ot)`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='17-32';
## Task Generate a SQL query to answer the following question: `Name the date for 17-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 `Name the date for 17-32`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "record"='17-33';
## Task Generate a SQL query to answer the following question: `Name the high rebounds for 17-33` ### 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 17-33`: ```sql
SELECT "team" FROM "game_log" WHERE "record"='19-34';
## Task Generate a SQL query to answer the following question: `Name the team for 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 `Name the team for 19-34`: ```sql
SELECT COUNT("model") FROM "specifications" WHERE "max_power_output"='162kW (220 PS) at 6,300 rpm';
## Task Generate a SQL query to answer the following question: `How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "model" text, "engine" text, "displacement" text, "max_power_output" text, "peak_torque" text, "0_100km_h_s_0_62mph_s" text, "top_speed" text, "co_2_emissions" text, "years" text, "note" text, "engine_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?`: ```sql
SELECT "model" FROM "specifications" WHERE "0_100km_h_s_0_62mph_s"='9.2';
## Task Generate a SQL query to answer the following question: `List the model with that can accelerate from 0-62 MPH in 9.2 seconds.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "model" text, "engine" text, "displacement" text, "max_power_output" text, "peak_torque" text, "0_100km_h_s_0_62mph_s" text, "top_speed" text, "co_2_emissions" text, "years" text, "note" text, "engine_code" text ); ### SQL Given the database schema, here is the SQL query that answers `List the model with that can accelerate from 0-62 MPH in 9.2 seconds.`: ```sql
SELECT "co_2_emissions" FROM "specifications" WHERE "0_100km_h_s_0_62mph_s"='8.5';
## Task Generate a SQL query to answer the following question: `List the amount of carbon emissions for models that go from 0-62 MPH in 8.5 seconds.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "model" text, "engine" text, "displacement" text, "max_power_output" text, "peak_torque" text, "0_100km_h_s_0_62mph_s" text, "top_speed" text, "co_2_emissions" text, "years" text, "note" text, "engine_code" text ); ### SQL Given the database schema, here is the SQL query that answers `List the amount of carbon emissions for models that go from 0-62 MPH in 8.5 seconds.`: ```sql
SELECT "max_power_output" FROM "specifications" WHERE "0_100km_h_s_0_62mph_s"='8.5';
## Task Generate a SQL query to answer the following question: `List the highest power output level for models that go from 0-62 MPH in 8.5 seconds.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "model" text, "engine" text, "displacement" text, "max_power_output" text, "peak_torque" text, "0_100km_h_s_0_62mph_s" text, "top_speed" text, "co_2_emissions" text, "years" text, "note" text, "engine_code" text ); ### SQL Given the database schema, here is the SQL query that answers `List the highest power output level for models that go from 0-62 MPH in 8.5 seconds.`: ```sql
SELECT "max_power_output" FROM "specifications" WHERE "model"='2.0 TS' AND "peak_torque"='N·m (lb·ft) at 3,500 rpm';
## Task Generate a SQL query to answer the following question: `List the max power produced for model 2.0 ts with peak of n·m (lb·ft) at 3,500 rpm.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "specifications" ( "model" text, "engine" text, "displacement" text, "max_power_output" text, "peak_torque" text, "0_100km_h_s_0_62mph_s" text, "top_speed" text, "co_2_emissions" text, "years" text, "note" text, "engine_code" text ); ### SQL Given the database schema, here is the SQL query that answers `List the max power produced for model 2.0 ts with peak of n·m (lb·ft) at 3,500 rpm.`: ```sql
SELECT "high_points" FROM "game_log" WHERE "record"='2-7';
## Task Generate a SQL query to answer the following question: `Who had the highest points during the game with a record of 2-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 `Who had the highest points during the game with a record of 2-7?`: ```sql
SELECT "team" FROM "game_log" WHERE "record"='2-5';
## Task Generate a SQL query to answer the following question: `What team did the Wizards play against when their record was 2-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 team did the Wizards play against when their record was 2-5?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Phoenix';
## Task Generate a SQL query to answer the following question: `Who tied in the highest point scorer when playing against Phoenix?` ### 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 tied in the highest point scorer when playing against Phoenix?`: ```sql
SELECT COUNT("season_num") FROM "table1_23279434_1" WHERE "production_code"='AM10';
## Task Generate a SQL query to answer the following question: `Which season used production code "am10"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23279434_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Which season used production code "am10"?`: ```sql
SELECT "original_air_date" FROM "table1_23279434_1" WHERE "directed_by"='Jeremy Kagan';
## Task Generate a SQL query to answer the following question: `When did Jeremy Kagan's episode first air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23279434_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Jeremy Kagan's episode first air?`: ```sql
SELECT COUNT("season_num") FROM "table1_23279434_1" WHERE "written_by"='David E. Kelley' AND "series_num"=7;
## Task Generate a SQL query to answer the following question: `What seasons in series 7 did David E. Kelley write ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23279434_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What seasons in series 7 did David E. Kelley write ?`: ```sql
SELECT COUNT("date") FROM "game_log" WHERE "score"='L 106–116 (OT)';
## Task Generate a SQL query to answer the following question: `Name the total number of date for score being l 106–116 (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 total number of date for score being l 106–116 (ot)`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Charlotte';
## Task Generate a SQL query to answer the following question: `Name the record for charlotte` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for charlotte`: ```sql
SELECT MAX("game") FROM "game_log" WHERE "score"='W 113–96 (OT)';
## Task Generate a SQL query to answer the following question: `Name the most game for w 113–96 (ot)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most game for w 113–96 (ot)`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='22-53';
## Task Generate a SQL query to answer the following question: `What was the score when the record was 22-53?` ### 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 22-53?`: ```sql
SELECT "score" FROM "game_log" WHERE "record"='22-53';
## Task Generate a SQL query to answer the following question: `What was the score when the record was 22-53?` ### 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 22-53?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Golden State';
## Task Generate a SQL query to answer the following question: `What was the record when they played golden state?` ### 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 they played golden state?`: ```sql
SELECT COUNT("percentage_2006") FROM "demographics" WHERE "mother_tongue"='French';
## Task Generate a SQL query to answer the following question: `How many percentages (2006) are there for the population whose mother tongue is French?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `How many percentages (2006) are there for the population whose mother tongue is French?`: ```sql
SELECT MIN("population_2011") FROM "demographics";
## Task Generate a SQL query to answer the following question: `What was the minimum population in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the minimum population in 2011?`: ```sql
SELECT "percentage_2006" FROM "demographics" WHERE "mother_tongue"='Polish';
## Task Generate a SQL query to answer the following question: `What was the percentage in 2006 whose natives is Polish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "mother_tongue" text, "population_2006" real, "percentage_2006" text, "population_2011" real, "percentage_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the percentage in 2006 whose natives is Polish?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "high_points"='Dirk Nowitzki , Caron Butler (17)';
## Task Generate a SQL query to answer the following question: `Name the location attendance for dirk nowitzki , caron butler (17)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location attendance for dirk nowitzki , caron butler (17)`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game"=4;
## Task Generate a SQL query to answer the following question: `Name the location attendance for 4 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, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location attendance for 4 game`: ```sql
SELECT "date" FROM "game_log" WHERE "score"='L 89–92 (OT)';
## Task Generate a SQL query to answer the following question: `Name the date for l 89–92 (ot)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for l 89–92 (ot)`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "series"='1-2';
## Task Generate a SQL query to answer the following question: `Name the high assists for 1-2 series` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the high assists for 1-2 series`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='American Airlines Center 20,557';
## Task Generate a SQL query to answer the following question: `Name the high rebounds for american airlines center 20,557` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the high rebounds for american airlines center 20,557`: ```sql
SELECT COUNT("score") FROM "game_log" WHERE "date"='December 27';
## Task Generate a SQL query to answer the following question: `Name the score for december 27` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for december 27`: ```sql
SELECT COUNT("high_points") FROM "game_log" WHERE "location_attendance"='Pepsi Center 19,756';
## Task Generate a SQL query to answer the following question: `Name the total number of high points for pepsi center 19,756` ### 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 points for pepsi center 19,756`: ```sql
SELECT "opponent_in_the_final" FROM "singles_26_16_titles_10_runners_up" WHERE "score_in_the_final"='3–6, 1–6';
## Task Generate a SQL query to answer the following question: `Name the opponent in the final for 3–6, 1–6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_16_titles_10_runners_up" ( "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 `Name the opponent in the final for 3–6, 1–6`: ```sql
SELECT "year" FROM "singles_26_16_titles_10_runners_up" WHERE "opponent_in_the_final"='Guillermo Cañas';
## Task Generate a SQL query to answer the following question: `Name the year for guillermo cañas` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_16_titles_10_runners_up" ( "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 `Name the year for guillermo cañas`: ```sql
SELECT "score" FROM "game_log" WHERE "team"='Houston';
## Task Generate a SQL query to answer the following question: `What was the score for the game against Houston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score for the game against Houston?`: ```sql
SELECT COUNT("record") FROM "game_log" WHERE "game"=30;
## Task Generate a SQL query to answer the following question: `Name the number of records for 30 game` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of records for 30 game`: ```sql
SELECT "team" FROM "game_log" WHERE "date"='December 19';
## Task Generate a SQL query to answer the following question: `Name the team for december 19` ### 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 december 19`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='9-4';
## Task Generate a SQL query to answer the following question: `What location and how many people were in attendance where the record was 9-4 for the season?` ### 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 how many people were in attendance where the record was 9-4 for the season?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "record"='3-0';
## Task Generate a SQL query to answer the following question: `How scored the most points where the record is 3-0 for the season?` ### 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 scored the most points where the record is 3-0 for the season?`: ```sql
SELECT "score" FROM "game_log" WHERE "high_assists"='Chauncey Billups (7)';
## Task Generate a SQL query to answer the following question: `When chauncey billups (7) has the highest amount of assists what is the score?` ### 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 chauncey billups (7) has the highest amount of assists what is the score?`: ```sql
SELECT "score" FROM "game_log" WHERE "high_points"='J.R. Smith (26)';
## Task Generate a SQL query to answer the following question: `When j.r. smith (26) has the highest amount of points what is the score?` ### 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 j.r. smith (26) has the highest amount of points what is the score?`: ```sql
SELECT COUNT("game") FROM "game_log" WHERE "team"='Clippers';
## Task Generate a SQL query to answer the following question: `When the clippers are the team how many games are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When the clippers are the team how many games are there?`: ```sql
SELECT "score" FROM "game_log" WHERE "high_rebounds"='Aaron Afflalo (9)';
## Task Generate a SQL query to answer the following question: `When aaron afflalo (9) has the highest amount of rebounds what is the score?` ### 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 aaron afflalo (9) has the highest amount of rebounds what is the score?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "high_assists"='Chauncey Billups (4)';
## Task Generate a SQL query to answer the following question: `When chauncey billups (4) has the highest amount of assists who has the highest amount of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When chauncey billups (4) has the highest amount of assists who has the highest amount of points?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "high_points"='Carmelo Anthony (39)';
## Task Generate a SQL query to answer the following question: `When carmelo anthony (39) has the highest amount of points where is the location and what is the 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, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `When carmelo anthony (39) has the highest amount of points where is the location and what is the attendance?`: ```sql
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "high_points"='Carmelo Anthony (42)';
## Task Generate a SQL query to answer the following question: `When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `When carmelo anthony (42) has the highest amount of points how many measurements of highest rebounds are there?`: ```sql
SELECT "record" FROM "game_log" WHERE "score"='L 106–116 (OT)';
## Task Generate a SQL query to answer the following question: `Name the record for l 106–116 (ot)` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for l 106–116 (ot)`: ```sql
SELECT "high_points" FROM "game_log" WHERE "location_attendance"='Staples Center 18,997';
## Task Generate a SQL query to answer the following question: `Name the high points for the staples center 18,997` ### 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 the staples center 18,997`: ```sql
SELECT "date" FROM "game_log" WHERE "record"='27-14';
## Task Generate a SQL query to answer the following question: `What was the date of the game when the record was 27-14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game when the record was 27-14?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "score"='W 97–92 (OT)';
## Task Generate a SQL query to answer the following question: `Who had the most points in the game where the score was w 97–92 (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 most points in the game where the score was w 97–92 (ot)?`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Timberwolves';
## Task Generate a SQL query to answer the following question: `What was the record when the timberwolves were played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the record when the timberwolves were played?`: ```sql
SELECT COUNT("high_points") FROM "game_log" WHERE "team"='Heat';
## Task Generate a SQL query to answer the following question: `How many players has the highest points in the game against the Heat?` ### 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 players has the highest points in the game against the Heat?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "game"=29;
## Task Generate a SQL query to answer the following question: `Who tied for highest rebounds in game 29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Who tied for highest rebounds in game 29?`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "game"=5;
## Task Generate a SQL query to answer the following question: `Where was game number 5 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, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was game number 5 played?`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "game"=2;
## Task Generate a SQL query to answer the following question: `Who had the highest rebounds in game 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, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the highest rebounds in game 2?`: ```sql
SELECT "date" FROM "game_log" WHERE "series"='0-2';
## Task Generate a SQL query to answer the following question: `What date was the series 0-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, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the series 0-2?`: ```sql
SELECT "series" FROM "game_log" WHERE "date"='April 18';
## Task Generate a SQL query to answer the following question: `Which series were played on April 18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `Which series were played on April 18?`: ```sql
SELECT "series" FROM "playoffs" WHERE "high_rebounds"='Marcus Camby (11)';
## Task Generate a SQL query to answer the following question: `What series had high rebounds with Marcus Camby (11)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What series had high rebounds with Marcus Camby (11)?`: ```sql
SELECT "series" FROM "playoffs" WHERE "game"=5;
## Task Generate a SQL query to answer the following question: `What was the series where the game was 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the series where the game was 5?`: ```sql
SELECT "score" FROM "playoffs" WHERE "high_points"='Andre Miller (31)';
## Task Generate a SQL query to answer the following question: `What is the score when high points were Andre Miller (31)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score when high points were Andre Miller (31)?`: ```sql
SELECT "score" FROM "playoffs" WHERE "game"=3;
## Task Generate a SQL query to answer the following question: `What is the score in game 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "playoffs" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "series" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score in game 3?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "high_rebounds"='Marcus Camby (15)';
## Task Generate a SQL query to answer the following question: `When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When marcus camby (15) has the highest amount of rebounds who has the highest amount of assists?`: ```sql
SELECT "high_points" FROM "game_log" WHERE "record"='48-30';
## Task Generate a SQL query to answer the following question: `When 48-30 is the record who has the highest amount of points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When 48-30 is the record who has the highest amount of points?`: ```sql
SELECT COUNT("location_attendance") FROM "game_log" WHERE "high_assists"='Brandon Roy (6)' AND "game"=78;
## Task Generate a SQL query to answer the following question: `When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?` ### 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 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?`: ```sql
SELECT "date" FROM "game_log" WHERE "high_rebounds"='Marcus Camby (15)';
## Task Generate a SQL query to answer the following question: `When marcus camby (15) has the highest amount of rebounds what is the date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When marcus camby (15) has the highest amount of rebounds what is the date?`: ```sql
SELECT "date" FROM "game_log" WHERE "team"='Cleveland';
## Task Generate a SQL query to answer the following question: `When did the Portland Trail Blazers play against Cleveland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `When did the Portland Trail Blazers play against Cleveland?`: ```sql
SELECT MAX("series_num") FROM "table1_23287683_1" WHERE "title"='\"The New Day\"';
## Task Generate a SQL query to answer the following question: `What is the highest series number of the episode "The New Day"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23287683_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest series number of the episode "The New Day"?`: ```sql
SELECT COUNT("title") FROM "table1_23287683_1" WHERE "directed_by"='Sarah Pia Anderson';
## Task Generate a SQL query to answer the following question: `How many episodes were directed by Sarah Pia Anderson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23287683_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes were directed by Sarah Pia Anderson?`: ```sql
SELECT "season_num" FROM "table1_23287683_1" WHERE "production_code"='5M21';
## Task Generate a SQL query to answer the following question: `List all season numbers with production codes of 5m21.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23287683_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `List all season numbers with production codes of 5m21.`: ```sql
SELECT "directed_by" FROM "table1_23287683_1" WHERE "title"='\"Woman\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode "Woman"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23287683_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode "Woman"?`: ```sql
SELECT COUNT("title") FROM "table1_23287683_1" WHERE "series_num"=95;
## Task Generate a SQL query to answer the following question: `How many episodes had a series number of 95?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23287683_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes had a series number of 95?`: ```sql
SELECT COUNT("season_num") FROM "table1_23286722_1" WHERE "production_code"='3M17';
## Task Generate a SQL query to answer the following question: `Name the total number of season for production code 3m17` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23286722_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of season for production code 3m17`: ```sql
SELECT "directed_by" FROM "table1_23286722_1" WHERE "season_num"=2;
## Task Generate a SQL query to answer the following question: `Name the directed by season # 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23286722_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the directed by season # 2`: ```sql
SELECT "directed_by" FROM "table1_23286722_1" WHERE "title"='\"Blue Christmas\"';
## Task Generate a SQL query to answer the following question: `Name the directed by for "blue christmas"` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23286722_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the directed by for "blue christmas"`: ```sql
SELECT MIN("series_num") FROM "table1_23286722_1" WHERE "written_by"='David E. Kelley & Jill Goldsmith';
## Task Generate a SQL query to answer the following question: `Name least series number for writers david e. kelley & jill goldsmith` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23286722_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Name least series number for writers david e. kelley & jill goldsmith`: ```sql
SELECT COUNT("first_broadcast") FROM "table1_23292220_13" WHERE "episode"='12x03';
## Task Generate a SQL query to answer the following question: `How many episodes are numbered 12x03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23292220_13" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes are numbered 12x03?`: ```sql
SELECT "jons_team" FROM "table1_23292220_13" WHERE "seans_team"='Matthew Crosby and Kimberly Wyatt';
## Task Generate a SQL query to answer the following question: `Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23292220_13" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt?`: ```sql
SELECT "episode" FROM "table1_23292220_13" WHERE "seans_team"='Jack Dee and Stacey Solomon';
## Task Generate a SQL query to answer the following question: `What was the episode that had Jack Dee and Stacey Solomon on Sean's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23292220_13" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the episode that had Jack Dee and Stacey Solomon on Sean's team?`: ```sql
SELECT "scores" FROM "table1_23292220_13" WHERE "seans_team"='Louie Spence and Joe Wilkinson';
## Task Generate a SQL query to answer the following question: `What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23292220_13" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the episode that had Louie Spence and Joe Wilkinson on Sean's team?`: ```sql
SELECT "scores" FROM "table1_23292220_13" WHERE "seans_team"='Russell Kane and Louise Redknapp';
## Task Generate a SQL query to answer the following question: `What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23292220_13" ( "episode" text, "first_broadcast" text, "seans_team" text, "jons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on the episode that had Russell Kane and Louise Redknapp on Sean's team?`: ```sql
SELECT "episode" FROM "series_3" WHERE "seans_team"='Krishnan Guru-Murthy and Vic Reeves';
## Task Generate a SQL query to answer the following question: `In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `In which episode is Sean's team made up of Krishnan Guru-Murthy and Vic Reeves?`: ```sql
SELECT "first_broadcast" FROM "series_3" WHERE "daves_team"='Dave Johns and Sally Lindsay';
## Task Generate a SQL query to answer the following question: `What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the first broadcast date of the episode in which Dave's team is made up of Dave Johns and Sally Lindsay?`: ```sql
SELECT "first_broadcast" FROM "series_3" WHERE "seans_team"='Peter Serafinowicz and Johnny Vegas';
## Task Generate a SQL query to answer the following question: `What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first broadcast date of the episode in which Sean's team is made up of Peter Serafinowicz and Johnny Vegas?`: ```sql
SELECT COUNT("episode") FROM "series_3" WHERE "daves_team"='David Walliams and Louis Walsh';
## Task Generate a SQL query to answer the following question: `In how many episodes was Dave's team made up of David Walliams and Louis Walsh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_3" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `In how many episodes was Dave's team made up of David Walliams and Louis Walsh?`: ```sql
SELECT "episode" FROM "series_4" WHERE "daves_team"='Boy George and Lee Mack';
## Task Generate a SQL query to answer the following question: `Which episode has boy george and lee mack on dave's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episode has boy george and lee mack on dave's team?`: ```sql
SELECT COUNT("daves_team") FROM "series_4" WHERE "first_broadcast"='27 October 2006';
## Task Generate a SQL query to answer the following question: `How many daves team entries are there on 27 october 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `How many daves team entries are there on 27 october 2006?`: ```sql
SELECT "episode" FROM "series_4" WHERE "seans_team"='Ulrika Jonsson and Michael McIntyre';
## Task Generate a SQL query to answer the following question: `Which episode has ulrika jonsson and michael mcintyre on sean's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Which episode has ulrika jonsson and michael mcintyre on sean's team?`: ```sql
SELECT "scores" FROM "series_4" WHERE "seans_team"='John Barrowman and Vic Reeves';
## Task Generate a SQL query to answer the following question: `What was the score in the episode with john barrowman and vic reeves on sean's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score in the episode with john barrowman and vic reeves on sean's team?`: ```sql
SELECT "first_broadcast" FROM "series_4" WHERE "episode"='4x03';
## Task Generate a SQL query to answer the following question: `What was the first broadcast date of episode 4x03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_4" ( "episode" text, "first_broadcast" text, "seans_team" text, "daves_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first broadcast date of episode 4x03?`: ```sql
SELECT "first_broadcast" FROM "series_5" WHERE "jasons_team"='Trisha Goddard and Glenn Wool';
## Task Generate a SQL query to answer the following question: `Name the first broadcast for trisha goddard and glenn wool` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_5" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the first broadcast for trisha goddard and glenn wool`: ```sql
SELECT COUNT("scores") FROM "series_5" WHERE "episode"='5x06';
## Task Generate a SQL query to answer the following question: `Name the number of scores for 5x06` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_5" ( "episode" text, "first_broadcast" text, "seans_team" text, "jasons_team" text, "scores" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of scores for 5x06`: ```sql