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