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: How many record data were written when Devin Harris (6) was High Assists?
<|assistant|>
SELECT COUNT("record") FROM "game_log" WHERE "high_assists"='Devin Harris (6)';<|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 games were held on January 5?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "date"='January 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 had highest assists at the game against Houston?
<|assistant|>
SELECT "high_assists" 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: what is the date of the game 23?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "game"=23;<|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: If the high points were by Anthony Morrow (24), what was the team?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "high_points"='Anthony Morrow (24)';<|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: In how many games were the high rebounds made by Derrick Favors (8)?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "high_rebounds"='Derrick Favors (8)';<|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: If the location attendance was Quicken Loans Arena 20,562, who had the High Assists?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='Quicken Loans Arena 20,562';<|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: Which game number was located in Prudential Center 15,086?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "location_attendance"='Prudential Center 15,086';<|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: In how many games did Terrence Williams (9) have High assists?
<|assistant|>
SELECT COUNT("score") FROM "game_log" WHERE "high_assists"='Terrence Williams (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: What is the location and attendance of the game when gilbert arenas (9) had the high assists?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "high_assists"='Gilbert Arenas (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: What is the date where the record was 18β12?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "record"='18β12';<|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 is the date when jameer nelson (10) had the high assists?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "high_assists"='Jameer Nelson (10)';<|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 is the record when jameer nelson (19) had the high points?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "high_points"='Jameer Nelson (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 was the location and attendance on March 9?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='March 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: How many games were numbered 13?
<|assistant|>
SELECT COUNT("team") FROM "game_log" WHERE "game"=13;<|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 team's record when they played minnesota?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Minnesota';<|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 team's record on november 10?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='November 10';<|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 high assists on March 26?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='March 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: What was the season record when the team played against Milwaukee?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "team"='Milwaukee';<|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 high points in game is 81?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "game"=81;<|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 game number was played on april 8?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "date"='April 8';<|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 high rebounds on april 8?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 8';<|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: Where did they play and how many attended game number 75?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "game"=75;<|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 did the high rebounds in the game against Boston?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "team"='Boston';<|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: Where was the game against Detroit played?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Detroit';<|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 was the date of game #3?
<|assistant|>
SELECT "date" FROM "game_log" 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,
"series" text
);
Question: What was the name of the opposing team on the May 6 game?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='May 6';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "world_sugar_consumption_1000_metric_tons" (
"country" text,
"2007_08" real,
"2008_09" real,
"2009_10" real,
"2010_11" real,
"2011_12" real,
"2012_13" real
);
Question: How many data were given on 2010/2011 in Brazil?
<|assistant|>
SELECT COUNT("2010_11") FROM "world_sugar_consumption_1000_metric_tons" WHERE "country"='Brazil';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadiums" (
"stadium" text,
"city" text,
"capacity" real,
"matches_played" real,
"overall_attendance" real,
"average_attendance_per_match" real,
"average_attendance_as_pct_of_capacity" text,
"overall_goals_scored" real,
"average_goals_scored_per_match" text,
"elevation" text
);
Question: how many overall goals were scored at moses mabhida stadium?
<|assistant|>
SELECT MAX("overall_goals_scored") FROM "stadiums" WHERE "stadium"='Moses Mabhida Stadium';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadiums" (
"stadium" text,
"city" text,
"capacity" real,
"matches_played" real,
"overall_attendance" real,
"average_attendance_per_match" real,
"average_attendance_as_pct_of_capacity" text,
"overall_goals_scored" real,
"average_goals_scored_per_match" text,
"elevation" text
);
Question: how many matches were played that average goals scored 1.25?
<|assistant|>
SELECT COUNT("matches_played") FROM "stadiums" WHERE "average_goals_scored_per_match"='1.25';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadiums" (
"stadium" text,
"city" text,
"capacity" real,
"matches_played" real,
"overall_attendance" real,
"average_attendance_per_match" real,
"average_attendance_as_pct_of_capacity" text,
"overall_goals_scored" real,
"average_goals_scored_per_match" text,
"elevation" text
);
Question: what is the minimum overall attendance where the goals scored were 19?
<|assistant|>
SELECT MIN("overall_attendance") FROM "stadiums" WHERE "overall_goals_scored"=19;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadiums" (
"stadium" text,
"city" text,
"capacity" real,
"matches_played" real,
"overall_attendance" real,
"average_attendance_per_match" real,
"average_attendance_as_pct_of_capacity" text,
"overall_goals_scored" real,
"average_goals_scored_per_match" text,
"elevation" text
);
Question: what is the elevation for port elizabeth?
<|assistant|>
SELECT "elevation" FROM "stadiums" WHERE "city"='Port Elizabeth';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "stadiums" (
"stadium" text,
"city" text,
"capacity" real,
"matches_played" real,
"overall_attendance" real,
"average_attendance_per_match" real,
"average_attendance_as_pct_of_capacity" text,
"overall_goals_scored" real,
"average_goals_scored_per_match" text,
"elevation" text
);
Question: what is the average attendance per match wheree the elevation is 1500 m?
<|assistant|>
SELECT "average_attendance_per_match" FROM "stadiums" WHERE "elevation"='1500 m';<|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 is the record for the date november 19?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='November 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: Name the high points for w 90β77 (ot)
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "score"='W 90β77 (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 team for december 18
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='December 18';<|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 high assists against detroit?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "team"='Detroit';<|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 was the other team on march 27?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='March 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: what was the game number where the record was 46β24?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "record"='46β24';<|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 game number on march 27?
<|assistant|>
SELECT MIN("game") FROM "game_log" WHERE "date"='March 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: What is the largest game number?
<|assistant|>
SELECT MAX("game") FROM "game_log";<|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 high rebounds took place on December 8?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "date"='December 8';<|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 are December 10's high points?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='December 10';<|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 entries are shown for high rebounds for the philips arena 20,024 game?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "location_attendance"='Philips Arena 20,024';<|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 was the opponent for the game with a score of w 94β88 (ot)?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "score"='W 94β88 (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 for the location and attendance of american airlines arena 19,825?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "location_attendance"='American Airlines Arena 19,825';<|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 were the high points on April 8?
<|assistant|>
SELECT "high_points" FROM "game_log" WHERE "date"='April 8';<|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 different items appear in the high rebounds column in game 80?
<|assistant|>
SELECT COUNT("high_rebounds") FROM "game_log" WHERE "game"=80;<|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 when Boston was the team?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "team"='Boston';<|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: Which game was played on October 13?
<|assistant|>
SELECT MAX("game") FROM "game_log" WHERE "date"='October 13';<|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 is the location and attendance on October 18?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "date"='October 18';<|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 was the opposing team in game 6?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "game"=6;<|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 game in the season does this list start?
<|assistant|>
SELECT MIN("game") FROM "game_log";<|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 team's score against detroit?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='Detroit';<|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 games were held on March 12?
<|assistant|>
SELECT COUNT("game") FROM "game_log" WHERE "date"='March 12';<|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 team score when Tim Duncan (12) got the high rebounds?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "high_rebounds"='Tim Duncan (12)';<|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 was the high rebounder on game 1?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "game"=1;<|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 was the score for series 2β3?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "series"='2β3';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714573_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: who are the directors of the episode that had 20.5 millions of north american viewers?
<|assistant|>
SELECT "directed_by" FROM "table1_27714573_1" WHERE "u_s_viewers_millions"='20.5';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714573_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: how many millions of north american viewers had the episode whose director was Michael Lembeck?
<|assistant|>
SELECT "u_s_viewers_millions" FROM "table1_27714573_1" WHERE "directed_by"='Michael Lembeck';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714573_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: who are the writers of the episode whose production code(s) is 225560?
<|assistant|>
SELECT "written_by" FROM "table1_27714573_1" WHERE "production_code_s"=225560;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714573_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: who are the writers of the episode called "The one on the last night"?
<|assistant|>
SELECT "written_by" FROM "table1_27714573_1" WHERE "title"='\"The One on the Last Night\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714985_1" (
"no_s_in_series" real,
"no_s_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: What is the last episode in the series written by Gregory S. Malins?
<|assistant|>
SELECT MAX("no_s_in_series") FROM "table1_27714985_1" WHERE "written_by"='Gregory S. Malins';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714985_1" (
"no_s_in_series" real,
"no_s_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: What was the broadcast date of episodes that were watched by 23.2 million viewers?
<|assistant|>
SELECT "original_air_date" FROM "table1_27714985_1" WHERE "u_s_viewers_millions"='23.2';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714985_1" (
"no_s_in_series" real,
"no_s_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: What is the original air date of the episode titled "The one where Chandler doesn't like dogs"?
<|assistant|>
SELECT "original_air_date" FROM "table1_27714985_1" WHERE "title"='\"The One Where Chandler Doesn''t Like Dogs\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714985_1" (
"no_s_in_series" real,
"no_s_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: What is the maximum production code of an episode written by Patty Lin?
<|assistant|>
SELECT MAX("production_code_s") FROM "table1_27714985_1" WHERE "written_by"='Patty Lin';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27714985_1" (
"no_s_in_series" real,
"no_s_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code_s" real,
"u_s_viewers_millions" text
);
Question: What is the episode number of the episode whose production code is 226407?
<|assistant|>
SELECT MIN("no_s_in_season") FROM "table1_27714985_1" WHERE "production_code_s"=226407;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27713890_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What episode number in the series is "the one where everybody finds out"?
<|assistant|>
SELECT MAX("no_in_series") FROM "table1_27713890_1" WHERE "title"='\"The One Where Everybody Finds Out\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27713890_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: Wha episode number in the series had 24.8 million u.s. viewers?
<|assistant|>
SELECT MIN("no_in_series") FROM "table1_27713890_1" WHERE "u_s_viewers_millions"='24.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27713890_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What is the production code that had 24.8 million u.s. viewers?
<|assistant|>
SELECT MAX("production_code") FROM "table1_27713890_1" WHERE "u_s_viewers_millions"='24.8';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27713890_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What date did "the one with all the resolutions" originally air?
<|assistant|>
SELECT "original_air_date" FROM "table1_27713890_1" WHERE "title"='\"The One with All the Resolutions\"';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27713890_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: What is the production code for the episode that had 23.9 million u.s. viewers?
<|assistant|>
SELECT "production_code" FROM "table1_27713890_1" WHERE "u_s_viewers_millions"='23.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: Where was the game played where the record was 10-1?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "record"='10-1';<|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 game 3?
<|assistant|>
SELECT "score" FROM "game_log" 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: How many records are there for the game on november 24?
<|assistant|>
SELECT COUNT("record") FROM "game_log" WHERE "date"='November 24';<|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 date was the game with a score of w 116β93 (ot)?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "score"='W 116β93 (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: Who had the high assists when the score was w 107β95 (ot)?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "score"='W 107β95 (OT)';<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27716091_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: who put on the show where the numbers were 227412
<|assistant|>
SELECT "directed_by" FROM "table1_27716091_1" WHERE "production_code"=227412;<|endoftext|> |
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_27716091_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
Question: who put on the show where the numbers were 227424
<|assistant|>
SELECT "directed_by" FROM "table1_27716091_1" WHERE "production_code"=227424;<|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 was the high rebounds of team @ Detroit?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "team"='@ Detroit';<|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 location attendance when Andray Blatche (9) got high rebounds?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "high_rebounds"='Andray Blatche (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: What was the game record on March 6?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='March 6';<|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 got high rebounds when Jordan Crawford (27) got high points?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "high_points"='Jordan Crawford (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: Who's in the high assists with a w 97β94 (ot) score?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "score"='W 97β94 (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's the maximum game in the javale mcgee (5) high rebounds?
<|assistant|>
SELECT MAX("game") FROM "game_log" WHERE "high_rebounds"='JaVale McGee (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: What's the score in andray blatche (17) high points?
<|assistant|>
SELECT COUNT("score") FROM "game_log" WHERE "high_points"='Andray Blatche (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,
"record" text
);
Question: Who's in the high rebounds in the verizon center 9,263 location attendance?
<|assistant|>
SELECT "high_rebounds" FROM "game_log" WHERE "location_attendance"='Verizon Center 9,263';<|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's the location attendance of the milwaukee team?
<|assistant|>
SELECT "location_attendance" FROM "game_log" WHERE "team"='Milwaukee';<|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's the team number with John Wall (9) in high assists and a w 97β83 (ot) score?
<|assistant|>
SELECT COUNT("team") FROM "game_log" WHERE "high_assists"='John Wall (9)' AND "score"='W 97β83 (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: Who had the highest assists during game 78?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "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: What is the date where john wall (11) had the high assists?
<|assistant|>
SELECT "date" FROM "game_log" WHERE "high_assists"='John Wall (11)';<|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 is the team they played on november 25?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "date"='November 25';<|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 is the record for the game on november 25?
<|assistant|>
SELECT "record" FROM "game_log" WHERE "date"='November 25';<|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: Which team played them when andray blatche , javale mcgee (20) had the high points?
<|assistant|>
SELECT "team" FROM "game_log" WHERE "high_points"='Andray Blatche , JaVale McGee (20)';<|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 andray blatche , al thornton (20) had the high points?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "high_points"='Andray Blatche , Al Thornton (20)';<|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 games are shown against Houston?
<|assistant|>
SELECT COUNT("game") 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: How many teams listed for game 45?
<|assistant|>
SELECT COUNT("team") FROM "game_log" WHERE "game"=45;<|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 Celtics played Washington at home?
<|assistant|>
SELECT "score" FROM "game_log" WHERE "team"='Washington';<|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 assists and how many did they have on April 8?
<|assistant|>
SELECT "high_assists" FROM "game_log" WHERE "date"='April 8';<|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 record for 61
<|assistant|>
SELECT COUNT("record") FROM "game_log" WHERE "game"=61;<|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.