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