answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2" | What is every time(cet) for the name of Lillehammer 2? | CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR) |
SELECT "College/Junior/Club Team (League)" FROM table_37976 WHERE "Round" = '9' AND "Nationality" = 'canada' | What college or club did the round 9 draft pick from Canada come from? | CREATE TABLE table_37976 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) |
SELECT tyre FROM table_name_87 WHERE entrant = "sa alfa romeo" AND driver = "luigi fagioli" | What is the tyre when the entrant is sa alfa romeo and the driver is luigi fagioli? | CREATE TABLE table_name_87 (tyre VARCHAR, entrant VARCHAR, driver VARCHAR) |
SELECT name FROM table_21536557_2 WHERE time__cet_ = "09:03" | Who is every name for time(cet) of 09:03? | CREATE TABLE table_21536557_2 (name VARCHAR, time__cet_ VARCHAR) |
SELECT "Country" FROM table_50353 WHERE "To par" = '+4' AND "Score" = '73-71-73=217' | What is the Country of the Player with a To par of +4 and Score of 73-71-73=217? | CREATE TABLE table_50353 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT entrant FROM table_name_90 WHERE engine = "talbot l6" AND driver = "pierre levegh" | Who is the entrant when the engine is talbot l6 and the driver is pierre levegh? | CREATE TABLE table_name_90 (entrant VARCHAR, engine VARCHAR, driver VARCHAR) |
SELECT day FROM table_21536557_2 WHERE stage = "SS11" | Which days have a stage of ss11? | CREATE TABLE table_21536557_2 (day VARCHAR, stage VARCHAR) |
SELECT "Standard order" FROM table_58988 WHERE "Traditional Chinese" = '國殤' | Which number is ? | CREATE TABLE table_58988 (
"Standard order" real,
"English translation" text,
"Transcription (based on Pinyin)" text,
"Traditional Chinese" text,
"Simplified Chinese" text
) |
SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125" | Who is the entrant when the chassis is ferrari 125? | CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR) |
SELECT time__cet_ FROM table_21536557_2 WHERE time = "5:04.8" | What is every time(cet) for a time of 5:04.8? | CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, time VARCHAR) |
SELECT Carrier, COUNT(*) FROM phone GROUP BY Carrier | Show different carriers of phones together with the number of phones with each carrier by a bar chart. | CREATE TABLE phone (
Name text,
Phone_ID int,
Memory_in_G int,
Carrier text,
Price real
)
CREATE TABLE market (
Market_ID int,
District text,
Num_of_employees int,
Num_of_shops real,
Ranking int
)
CREATE TABLE phone_market (
Market_ID int,
Phone_ID text,
Num_of_stock int
) |
SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard" | what is the engine when the tyre is d, the constructor is era and the driver is bob gerard? | CREATE TABLE table_name_17 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, constructor VARCHAR) |
SELECT COUNT(caliber) FROM table_21538523_1 WHERE type = "LB/RN" | How many calibers require the type LB/RN? | CREATE TABLE table_21538523_1 (caliber VARCHAR, type VARCHAR) |
SELECT "Opponent" FROM table_11800 WHERE "Date" = 'september 30, 1990' | Who was the opponent team on September 30, 1990? | CREATE TABLE table_11800 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
) |
SELECT score FROM table_name_29 WHERE record = "39-62" | What was the score when the record was 39-62? | CREATE TABLE table_name_29 (score VARCHAR, record VARCHAR) |
SELECT class FROM table_21538523_1 WHERE type = "FJ/RN/SC" | Type FJ/RN/SC is associated with what class? | CREATE TABLE table_21538523_1 (class VARCHAR, type VARCHAR) |
SELECT demographic.religion, demographic.insurance FROM demographic WHERE demographic.name = "Kelly Gallardo" | what is religion and insurance of subject name kelly gallardo? | CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT date FROM table_name_14 WHERE record = "35-57" | What was the date when the record was 35-57? | CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) |
SELECT type FROM table_21538523_1 WHERE caliber = ".44 Magnum" | What type of glazing will stop a .44 magnum? | CREATE TABLE table_21538523_1 (type VARCHAR, caliber VARCHAR) |
SELECT "Season" FROM table_58434 WHERE "Season premiere" = 'november 27, 2012' | Which season premiered on November 27, 2012? | CREATE TABLE table_58434 (
"Season" text,
"Season premiere" text,
"Season finale" text,
"TV season" text,
"Ranking" text,
"Viewers (in millions)" real
) |
SELECT loss FROM table_name_20 WHERE record = "34-56" | What was the loss when the record was 34-56? | CREATE TABLE table_name_20 (loss VARCHAR, record VARCHAR) |
SELECT MIN(shots) FROM table_21538523_1 | What is the fewest shots a glazing can handle? | CREATE TABLE table_21538523_1 (shots INTEGER) |
SELECT (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23475)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') AND chartevents.charttime = '2105-06-29 16:00:00') > (SELECT chartevents.valuenum FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 23475)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart rate' AND d_items.linksto = 'chartevents') AND chartevents.charttime = '2105-06-29 15:00:00') | is the heart rate of patient 23475 measured at 2105-06-29 16:00:00 greater than measured at 2105-06-29 15:00:00? | CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE prescriptions (
row_id number,
subject_id number,
hadm_id number,
startdate time,
enddate time,
drug text,
dose_val_rx text,
dose_unit_rx text,
route text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE transfers (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
eventtype text,
careunit text,
wardid number,
intime time,
outtime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE chartevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
) |
SELECT away_team FROM table_name_37 WHERE home_team = "geelong" | What is the name of the away team that played Geelong? | CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR) |
SELECT range__m_ FROM table_21538523_1 WHERE type = "FJ/PB/SCP" | What range does type FJ/PB/SCP work at? | CREATE TABLE table_21538523_1 (range__m_ VARCHAR, type VARCHAR) |
SELECT COUNT(Id), OwnerUserId AS "user_link" FROM Posts WHERE NOT CommunityOwnedDate IS NULL GROUP BY OwnerUserId ORDER BY COUNT(Id) DESC | Users with the most community wiki posts. | CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
) |
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "fitzroy" | What is the smallest crowd size for away team Fitzroy? | CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR) |
SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "2UR-FSE" | Name the drivetrain for 2ur-fse | CREATE TABLE table_21530474_1 (drivetrain VARCHAR, engine_code VARCHAR) |
SELECT "Driver" FROM table_11570 WHERE "Grid" < '10' AND "Laps" < '70' | What driver has a grid of under 10, and under 70 laps? | CREATE TABLE table_11570 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
) |
SELECT builder FROM table_name_71 WHERE br_no = 30782 | Which Builder has BR No. 30782? | CREATE TABLE table_name_71 (builder VARCHAR, br_no VARCHAR) |
SELECT region_s_ FROM table_21530474_1 WHERE chassis_code = "USF45" | Name the regions for usf45 | CREATE TABLE table_21530474_1 (region_s_ VARCHAR, chassis_code VARCHAR) |
SELECT Tags.TagName, AVG(CAST(ViewCount AS INT)) AS AverageViewCount, COUNT(Posts.Id) AS QuestionCount FROM Tags JOIN PostTags ON Tags.Id = PostTags.TagId JOIN Posts ON PostTags.PostId = Posts.Id WHERE NOT AcceptedAnswerId IS NULL AND Tags.TagName = '##TagName##' GROUP BY Tags.TagName ORDER BY AverageViewCount DESC | Average view count for specific tag. | CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
) |
SELECT title FROM table_name_75 WHERE production_code = "k1504" | What is the title of the episode with a production code of K1504? | CREATE TABLE table_name_75 (title VARCHAR, production_code VARCHAR) |
SELECT model_no FROM table_21530474_1 WHERE chassis_code = "USF46" | Name the model number for usf46 | CREATE TABLE table_21530474_1 (model_no VARCHAR, chassis_code VARCHAR) |
SELECT "Venue" FROM table_78678 WHERE "Home Team" = 'san francisco 49ers' AND "Result" = '30-10' | What was the Venue of the San Francisco 49ers Home game with a Result of 30-10? | CREATE TABLE table_78678 (
"Year" real,
"Date" text,
"Home Team" text,
"Result" text,
"Visiting Team" text,
"Venue" text
) |
SELECT AVG(series__number) FROM table_name_42 WHERE directed_by = "matthew penn" | What is the average of the Series #s that were directed by Matthew Penn? | CREATE TABLE table_name_42 (series__number INTEGER, directed_by VARCHAR) |
SELECT drivetrain FROM table_21530474_1 WHERE engine_code = "1UR-FSE" AND chassis_code = "USF41" | Name the drivetrain for 1ur-fse for usf41 | CREATE TABLE table_21530474_1 (drivetrain VARCHAR, engine_code VARCHAR, chassis_code VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "ST ELEVATED MYOCARDIAL INFARCTION\CARDIAC CATH" AND lab.flag = "abnormal" | how many patients are diagnosed with the primary disease st elevated myocardial infarction or cardiac cath and had the lab test for abnormal status? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
) |
SELECT COUNT(series__number) FROM table_name_20 WHERE season__number < 22 AND directed_by = "matthew penn" | How many episodes did Matthew Penn direct before season 22? | CREATE TABLE table_name_20 (series__number VARCHAR, season__number VARCHAR, directed_by VARCHAR) |
SELECT october_2012 FROM table_21531764_1 WHERE october_2010 = "9.1" | For the area which was 9.1 in October 2010, what is the figure for October 2012? | CREATE TABLE table_21531764_1 (october_2012 VARCHAR, october_2010 VARCHAR) |
SELECT tournament FROM table_name_90 WHERE score = "6–3, 2–6, [10–8]" | What tournament had a Score of 6 3, 2 6, [10 8]? | CREATE TABLE table_name_90 (
tournament VARCHAR,
score VARCHAR
) |
SELECT visitor FROM table_name_90 WHERE attendance > 18 OFFSET 680 | What Visiting Team(s) had an Attendance of over 18,680 | CREATE TABLE table_name_90 (visitor VARCHAR, attendance INTEGER) |
SELECT employment_area FROM table_21531764_1 WHERE october_2010 = "5.7" | Where is the rate 5.7 in October 2010? | CREATE TABLE table_21531764_1 (employment_area VARCHAR, october_2010 VARCHAR) |
SELECT "Date" FROM table_30358 WHERE "Driver" = 'Tommy Ellis' | On what day did tommy ellis drive? | CREATE TABLE table_30358 (
"Year" real,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text
) |
SELECT MIN(attendance) FROM table_name_34 WHERE visitor = "nashville" | When Nashville was the visiting team what was the lowest Attendance shown? | CREATE TABLE table_name_34 (attendance INTEGER, visitor VARCHAR) |
SELECT original_air_date FROM table_21550870_1 WHERE us_viewers__million_ = "9.16" | Name the original air date for 9.16 viewers | CREATE TABLE table_21550870_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "43" AND lab.label = "Total Protein, Body Fluid" | Count the number of patients less than 43 years of age who had a total protein body fluid lab test. | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location text,
discharge_location text,
diagnosis text,
dod text,
dob_year text,
dod_year text,
admittime text,
dischtime text,
admityear text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT time_retired FROM table_name_81 WHERE grid = 16 | What is the time/retired for the driver with 16 grids? | CREATE TABLE table_name_81 (time_retired VARCHAR, grid VARCHAR) |
SELECT COUNT(production_code) FROM table_21550870_1 WHERE written_by = "Steve Cohen & Andrew Dettman" | Name the total number of production code for episode by steve cohen & andrew dettman | CREATE TABLE table_21550870_1 (production_code VARCHAR, written_by VARCHAR) |
SELECT record FROM table_name_15 WHERE date = "may 21" | What was the record on May 21? | CREATE TABLE table_name_15 (
record VARCHAR,
date VARCHAR
) |
SELECT MIN(grid) FROM table_name_89 WHERE time_retired = "1:56:18.22" | What is the smallest grid for a time/retired of 1:56:18.22? | CREATE TABLE table_name_89 (grid INTEGER, time_retired VARCHAR) |
SELECT population__millions, _2011_ FROM table_2155836_1 WHERE hdi__2011_ = "0.453 (low)" | What is the population in millions for 2011 where the HDI for 2011 is 0.453 (low)? | CREATE TABLE table_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, hdi__2011_ VARCHAR) |
SELECT district_name FROM district ORDER BY city_area LIMIT 1 | What is the name of the district with the smallest area? | CREATE TABLE store_district (
store_id number,
district_id number
)
CREATE TABLE store (
store_id number,
store_name text,
type text,
area_size number,
number_of_product_category number,
ranking number
)
CREATE TABLE product (
product_id number,
product text,
dimensions text,
dpi number,
pages_per_minute_color number,
max_page_size text,
interface text
)
CREATE TABLE district (
district_id number,
district_name text,
headquartered_city text,
city_population number,
city_area number
)
CREATE TABLE store_product (
store_id number,
product_id number
) |
SELECT opponent FROM table_name_18 WHERE date = "september 28" | Who was the opponent on September 28? | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) |
SELECT population__millions, _2011_ FROM table_2155836_1 WHERE gdp__nominal___billions_usd_ = "4" | What is the population in millions for 2011 where the GDP (nominal) (billions USD) is 4? | CREATE TABLE table_2155836_1 (population__millions VARCHAR, _2011_ VARCHAR, gdp__nominal___billions_usd_ VARCHAR) |
SELECT time_retired FROM table_name_59 WHERE grid = 13 | I want the time/retired for Grid of 13 | CREATE TABLE table_name_59 (
time_retired VARCHAR,
grid VARCHAR
) |
SELECT opponent FROM table_name_58 WHERE save = "||33,389||87–62" | Who was the opponent in the game with save ||33,389||87–62? | CREATE TABLE table_name_58 (opponent VARCHAR, save VARCHAR) |
SELECT hdi__2011_ FROM table_2155836_1 WHERE country = "Tunisia" | What is the HDI for 2011 in Tunisia? | CREATE TABLE table_2155836_1 (hdi__2011_ VARCHAR, country VARCHAR) |
SELECT "Result" FROM table_18674 WHERE "First elected" = '1922' | what's the result with first elected being 1922 | CREATE TABLE table_18674 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
) |
SELECT opponent FROM table_name_76 WHERE save = "||33,723||93–64" | Who was the opponent in the game with save ||33,723||93–64? | CREATE TABLE table_name_76 (opponent VARCHAR, save VARCHAR) |
SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = "Algeria" | What is the GDP (PPP) (USD, per capita) for Algeria? | CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR) |
SELECT memory_in_g, carrier FROM phone | What are the memories and carriers of phones? | CREATE TABLE market (
market_id number,
district text,
num_of_employees number,
num_of_shops number,
ranking number
)
CREATE TABLE phone (
name text,
phone_id number,
memory_in_g number,
carrier text,
price number
)
CREATE TABLE phone_market (
market_id number,
phone_id text,
num_of_stock number
) |
SELECT score FROM table_name_52 WHERE date = "september 8" | What was the score on September 8? | CREATE TABLE table_name_52 (score VARCHAR, date VARCHAR) |
SELECT COUNT(cab_size) FROM table_2155350_2 WHERE category = "4 Medium tanker" | Name the number of cab size for 4 medium tanker | CREATE TABLE table_2155350_2 (cab_size VARCHAR, category VARCHAR) |
SELECT "Class" FROM table_68986 WHERE "Quantity made" = '5' | What Class has a Quantity made of 5? | CREATE TABLE table_68986 (
"Class" text,
"Type" text,
"Fleet numbers" text,
"Quantity made" real,
"Manufacturer" text,
"Date made" text,
"Date withdrawn" text
) |
SELECT nationality FROM table_name_92 WHERE years_for_jazz = "1984-85" | Which nationality has Years for Jazz of 1984-85? | CREATE TABLE table_name_92 (nationality VARCHAR, years_for_jazz VARCHAR) |
SELECT category FROM table_2155350_2 WHERE cab_size = "Crew" AND sub_category = "Super tanker" | Name the category for cab size crew and super tanker | CREATE TABLE table_2155350_2 (category VARCHAR, cab_size VARCHAR, sub_category VARCHAR) |
SELECT "affiliation" FROM table_202_157 ORDER BY "house members\n2000 election\nresults" DESC LIMIT 1 | which party had the highest number of house members in 2000 ? | CREATE TABLE table_202_157 (
id number,
"affiliation" text,
"house members\n2000 election\nresults" number,
"house members\nat dissolution" number,
"senate members\non election\nday 2000" number,
"senate members\nat dissolution" number
) |
SELECT position FROM table_name_9 WHERE nationality = "united states" AND player = "roger powell" | Which position has a Nationality of united states, and a Player of roger powell? | CREATE TABLE table_name_9 (position VARCHAR, nationality VARCHAR, player VARCHAR) |
SELECT capacity__litres_ FROM table_2155350_2 WHERE cab_size = "Single" AND category = "2 Medium tanker" | Name the capacity for single cab size 2 medium tanker | CREATE TABLE table_2155350_2 (capacity__litres_ VARCHAR, cab_size VARCHAR, category VARCHAR) |
SELECT margin_of_victory FROM table_name_53 WHERE runner_s__up = "mark calcavecchia" | What was the margin of victory when Mark Calcavecchia was the runner-up? | CREATE TABLE table_name_53 (
margin_of_victory VARCHAR,
runner_s__up VARCHAR
) |
SELECT years_for_jazz FROM table_name_48 WHERE player = "milt palacio" | What years does milt palacio play? | CREATE TABLE table_name_48 (years_for_jazz VARCHAR, player VARCHAR) |
SELECT external_link FROM table_21563298_1 WHERE location = "Brechin" | What school is in Brechin? | CREATE TABLE table_21563298_1 (external_link VARCHAR, location VARCHAR) |
SELECT "Central bank" FROM table_17540 WHERE "Currency" = 'Colombian peso (COP)' | What's the name of the central bank in the country where Colombian Peso (cop) is the local currency? | CREATE TABLE table_17540 (
"Country" text,
"Currency" text,
"1 Euro =" text,
"1 USD =" text,
"Central bank" text
) |
SELECT years_for_jazz FROM table_name_17 WHERE school_club_team = "colorado state" | Which years have a School/Club Team of colorado state? | CREATE TABLE table_name_17 (years_for_jazz VARCHAR, school_club_team VARCHAR) |
SELECT MAX(roll) FROM table_21563298_1 WHERE school = "Brechin High school" | How many kids go to Brechin High School? | CREATE TABLE table_21563298_1 (roll INTEGER, school VARCHAR) |
SELECT nationality FROM table_name_24 WHERE lane > 1 AND rank > 5 AND name = "hsu chi-chieh" | What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh? | CREATE TABLE table_name_24 (
nationality VARCHAR,
name VARCHAR,
lane VARCHAR,
rank VARCHAR
) |
SELECT years FROM table_name_64 WHERE engine_code = "m47d20" AND model = "318td (diesel)" | During which years was the Model 318td (diesel) with the Engine code of m47d20 manufactured? | CREATE TABLE table_name_64 (years VARCHAR, engine_code VARCHAR, model VARCHAR) |
SELECT MIN(began_in_st_louis) FROM table_21564794_3 WHERE league = "Negro American league" | What year did Negro American League join? | CREATE TABLE table_21564794_3 (began_in_st_louis INTEGER, league VARCHAR) |
SELECT Id AS "post_link", Score FROM Posts WHERE (PostTypeId = 2) AND (OwnerUserId = '##userid##') ORDER BY Id | All answers by a specific user. | CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
) |
SELECT torque FROM table_name_73 WHERE engine_code = "m54b25" | What is the Torque of the model with the engine code of M54B25? | CREATE TABLE table_name_73 (torque VARCHAR, engine_code VARCHAR) |
SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = "Scottrade Center" | What year did the team who played at the Scottrade Center leave the city? | CREATE TABLE table_21564794_3 (left_st_louis INTEGER, venue VARCHAR) |
SELECT MIN("Tries for") FROM table_42080 WHERE "Team" = 'pau' AND "Points against" > '103' | WHich Tries has a Team of pau and Points against larger than 103? | CREATE TABLE table_42080 (
"Team" text,
"Tries for" real,
"Tries against" real,
"Try diff" text,
"Points for" real,
"Points against" real,
"Points diff" text
) |
SELECT torque FROM table_name_27 WHERE model = "320td (diesel)" | What is the Torque of the Model 320td (diesel)? | CREATE TABLE table_name_27 (torque VARCHAR, model VARCHAR) |
SELECT championships_in_st_louis FROM table_21564794_3 WHERE began_in_st_louis = 1950 | How may championships were won by the team that started in 1950? | CREATE TABLE table_21564794_3 (championships_in_st_louis VARCHAR, began_in_st_louis VARCHAR) |
SELECT U.Id AS "user_link" FROM Users AS U INNER JOIN Posts AS A ON A.OwnerUserId = U.Id INNER JOIN PostTags AS PT ON PT.PostId = A.Id INNER JOIN Tags AS T ON T.Id = PT.TagId INNER JOIN (SELECT OwnerUserId, MAX(Score) AS MaxScore FROM Posts WHERE PostTypeId = 2 AND Score >= 10 GROUP BY OwnerUserId) AS AC ON AC.OwnerUserId = U.Id WHERE T.TagName = '##TagName?haskell##' | Answer score badge acquisition for users with just one Nice-and-Great answer. | CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
) |
SELECT years FROM table_name_11 WHERE engine_code = "m54b25" | During which years was the model with the Engine code of m54b25 manufactured? | CREATE TABLE table_name_11 (years VARCHAR, engine_code VARCHAR) |
SELECT championships_in_st_louis FROM table_21564794_3 WHERE sport = "Arena Football" | How many championships were won for arena football? | CREATE TABLE table_21564794_3 (championships_in_st_louis VARCHAR, sport VARCHAR) |
SELECT opponent FROM table_name_50 WHERE tournament = "auckland, new zealand" | Who was the Opponent in the Auckland, New Zealand Tournament? | CREATE TABLE table_name_50 (
opponent VARCHAR,
tournament VARCHAR
) |
SELECT model FROM table_name_72 WHERE years = "2001–2004" AND torque = "n·m (lb·ft) @ 3750" AND engine_code = "n42b18 / n46b18" | Which model was made from 2001–2004, with a Torque of n·m (lb·ft) @ 3750, and an Engine code of n42b18 / n46b18? | CREATE TABLE table_name_72 (model VARCHAR, engine_code VARCHAR, years VARCHAR, torque VARCHAR) |
SELECT COUNT(asian_team_classification) FROM table_21573750_2 WHERE asian_rider_classification = "Samai Amari" | When samai amari is the asian rider classification how many asian team classifications are there? | CREATE TABLE table_21573750_2 (asian_team_classification VARCHAR, asian_rider_classification VARCHAR) |
SELECT AVG(episode_number) FROM table_name_41 WHERE air_date = "29 june 2007" | What kind of Episode Number has a Air Date on 29 june 2007? | CREATE TABLE table_name_41 (
episode_number INTEGER,
air_date VARCHAR
) |
SELECT date FROM table_name_96 WHERE score = "1-12" | What was the date of the Mariners game that had a score of 1-12? | CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR) |
SELECT general_classification FROM table_21573750_2 WHERE stage = 4 | When 4 is the stage who is the general classification? | CREATE TABLE table_21573750_2 (general_classification VARCHAR, stage VARCHAR) |
SELECT COUNT("Games") FROM table_34107 WHERE "Drawn" < '1' AND "Lost" > '4' | How many Games have a Drawn smaller than 1, and a Lost larger than 4? | CREATE TABLE table_34107 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
) |
SELECT date FROM table_name_8 WHERE attendance = "6,707" | What was the date of the Mariners game that had an attendance of 6,707? | CREATE TABLE table_name_8 (date VARCHAR, attendance VARCHAR) |
SELECT no_in_season FROM table_2156758_4 WHERE written_by = "Chris Mitchell and Erik Wiese" | What is the number in season for the episode written by Chris Mitchell and Erik Wiese? | CREATE TABLE table_2156758_4 (no_in_season VARCHAR, written_by VARCHAR) |
SELECT * FROM Posts ORDER BY Posts.ViewCount DESC LIMIT 200000 | top 200,000 posts by viewcount. | CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDate time,
ApprovalModeratorId number,
DeactivationDate time,
DeactivationModeratorId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId number
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text,
LastEditDate time,
LastActivityDate time,
Title text,
Tags text,
AnswerCount number,
CommentCount number,
FavoriteCount number,
ClosedDate time,
CommunityOwnedDate time,
ContentLicense text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE SuggestedEdits (
Id number,
PostId number,
CreationDate time,
ApprovalDate time,
RejectionDate time,
OwnerUserId number,
Comment text,
Text text,
Title text,
Tags text,
RevisionGUID other
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
) |
SELECT date FROM table_name_77 WHERE loss = "segui (0-5)" | What was the date of the Mariners game that had a loss of Segui (0-5)? | CREATE TABLE table_name_77 (date VARCHAR, loss VARCHAR) |
SELECT title FROM table_2156758_4 WHERE no_in_series = "28" | What is the title for episode number in series of 28? | CREATE TABLE table_2156758_4 (title VARCHAR, no_in_series VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.