answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT depth FROM table_26950408_1 WHERE time___utc__ = "12:19:36" | What is the depth at the UTC time of 12:19:36? | CREATE TABLE table_26950408_1 (depth VARCHAR, time___utc__ VARCHAR) |
SELECT year_startup FROM table_name_41 WHERE operator = "apache energy/inpex" | What was the startup year for the project with apache energy/inpex as the operator? | CREATE TABLE table_name_41 (year_startup VARCHAR, operator VARCHAR) |
SELECT COUNT(*) AS Bounty_Num, SUM(Votes.BountyAmount) AS Bounty_Amt, Tags.TagName FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.Id = PostTags.PostId AND Posts.PostTypeId = 1 AND Posts.CreationDate >= DATEADD(day, -30, GETDATE()) AND Posts.CreationDate <= GETDATE() INNER JOIN Votes ON Votes.PostId = Posts.Id AND Votes.VoteTypeId = 8 GROUP BY TagName ORDER BY Bounty_Num DESC | Which tags had the most bounties offered in past 30 days?. | CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE VoteTypes (
Id number,
Name text
)
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 FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskStates (
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress 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 ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId 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 PostHistory (
Id number,
PostHistoryTypeId number,
PostId number,
RevisionGUID other,
CreationDate time,
UserId number,
UserDisplayName text,
Comment text,
Text text,
ContentLicense text
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostTags (
PostId number,
TagId 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 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 CloseReasonTypes (
Id number,
Name text,
Description text
)
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 PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId 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
) |
SELECT date__yyyy_mm_dd_ FROM table_26950408_1 WHERE time___utc__ = "03:15:46" | What is the date for the UTC time of 03:15:46? | CREATE TABLE table_26950408_1 (date__yyyy_mm_dd_ VARCHAR, time___utc__ VARCHAR) |
SELECT year_startup FROM table_name_18 WHERE operator = "albian sands" AND project_name = "jackpine mine (ph 2)" | What was the startup year for the Jackpine Mine (ph 2) project with an albian sands operator? | CREATE TABLE table_name_18 (year_startup VARCHAR, operator VARCHAR, project_name VARCHAR) |
SELECT COUNT("Victory Margin (in lengths)") FROM table_1500 WHERE "Date" = '8/3/08' | With a date of 8/3/08, what was the length of the victory margin? | CREATE TABLE table_1500 (
"Finish" text,
"Race" text,
"Distance" text,
"Jockey" text,
"Time" text,
"Victory Margin (in lengths)" text,
"Runner up" text,
"Track" text,
"Surface" text,
"Date" text
) |
SELECT title FROM table_26952212_1 WHERE no_in_total = "30" | What is the title for episode number 30? | CREATE TABLE table_26952212_1 (title VARCHAR, no_in_total VARCHAR) |
SELECT year_startup FROM table_name_89 WHERE operator = "nioc" | What was the startup year for the project with a nioc operator? | CREATE TABLE table_name_89 (year_startup VARCHAR, operator VARCHAR) |
SELECT MIN(year) FROM table_name_60 WHERE chassis = "mp4-17d" AND points < 142 | What is the earliest year with a mp4-17d chassis and less than 142 points. | CREATE TABLE table_name_60 (
year INTEGER,
chassis VARCHAR,
points VARCHAR
) |
SELECT MAX(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE genus_ & _species = "Mus musculus" | What is the % identity to C7orf38 of the animal whose genus & species is Mus Musculus? | CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, genus_ VARCHAR, _species VARCHAR) |
SELECT project_name FROM table_name_38 WHERE peak = "40" AND country = "usa" | What was the name of the project that peaked at 40 and was in the USA? | CREATE TABLE table_name_38 (project_name VARCHAR, peak VARCHAR, country VARCHAR) |
SELECT regular_season_champion_s_ FROM table_name_16 WHERE record = "9–0" AND tournament_champion = "north carolina" | Which Regular Season Champion(s) has a Record of 9 0, and a Tournament Champion of north carolina? | CREATE TABLE table_name_16 (
regular_season_champion_s_ VARCHAR,
record VARCHAR,
tournament_champion VARCHAR
) |
SELECT MIN(length__aa_) FROM table_26957063_3 WHERE ncbi_accession_number = "CAM15594.1" | What is the length (AA) of the animal whose NCBI accession number is CAM15594.1? | CREATE TABLE table_26957063_3 (length__aa_ INTEGER, ncbi_accession_number VARCHAR) |
SELECT country FROM table_name_53 WHERE operator = "shell" AND project_name = "bonga sw; aparo" | What country did the project, Bonga SW; Aparo with a shell operator take place? | CREATE TABLE table_name_53 (country VARCHAR, operator VARCHAR, project_name VARCHAR) |
SELECT tickets_sold___available FROM table_name_44 WHERE gross_revenue__2011_ = "$366,916" | How many tickets were sold/available when the gross revenue (2011) was $366,916? | CREATE TABLE table_name_44 (
tickets_sold___available VARCHAR,
gross_revenue__2011_ VARCHAR
) |
SELECT MAX(_percentage_similarity_to_c7orf38) FROM table_26957063_3 WHERE _percentage_identity_to_c7orf38 = 81 | What is the % similarity to C7orf38 of the animal whose % identity to C7orf38 is 81? | CREATE TABLE table_26957063_3 (_percentage_similarity_to_c7orf38 INTEGER, _percentage_identity_to_c7orf38 VARCHAR) |
SELECT 1 AS st_prize___$__ FROM table_name_56 WHERE winner = "ken green (4)" | What is the amount of the 1st prize when the Winner was ken green (4)? | CREATE TABLE table_name_56 (winner VARCHAR) |
SELECT place FROM table_name_74 WHERE score = 66 - 74 - 68 - 73 = 281 | what place has score 66-74-68-73=281 | CREATE TABLE table_name_74 (
place VARCHAR,
score VARCHAR
) |
SELECT common_name FROM table_26957063_3 WHERE length__aa_ = 1323 | What is the common name of the animal whose length (AA) is 1323? | CREATE TABLE table_26957063_3 (common_name VARCHAR, length__aa_ VARCHAR) |
SELECT date FROM table_name_27 WHERE tournament = "los angeles open" | What is the date of the Los Angeles open? | CREATE TABLE table_name_27 (date VARCHAR, tournament VARCHAR) |
SELECT T2.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY T2.Name | For those records from the products and each product's manufacturer, show me about the distribution of name and the sum of revenue , and group by attribute name in a bar chart, I want to list by the Name in ascending please. | CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) |
SELECT MIN(_percentage_identity_to_c7orf38) FROM table_26957063_3 WHERE common_name = "Rat" | What is the % identity to C7orf38 of the animal whose common name is rat? | CREATE TABLE table_26957063_3 (_percentage_identity_to_c7orf38 INTEGER, common_name VARCHAR) |
SELECT tournament FROM table_name_36 WHERE date = "oct 23" | What is the name of the Tournament on oct 23? | CREATE TABLE table_name_36 (tournament VARCHAR, date VARCHAR) |
SELECT home_team AS score FROM table_16388478_4 WHERE home_team = "Fremantle" | What is the home team score where the home team is Fremantle? | CREATE TABLE table_16388478_4 (
home_team VARCHAR
) |
SELECT genus_ & _species FROM table_26957063_3 WHERE ncbi_accession_number = "XP_002439156.1" | What is the genus & species of the animal whose accession number is XP_002439156.1? | CREATE TABLE table_26957063_3 (genus_ VARCHAR, _species VARCHAR, ncbi_accession_number VARCHAR) |
SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = "1941" AND title = "one night in lisbon" | Who created One Night in Lisbon in 1941? | CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR) |
SELECT t3.diagnosisname FROM (SELECT t2.diagnosisname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, treatment.treatmenttime FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antihyperlipidemic agent - hmg-coa reductase inhibitor' AND STRFTIME('%y', treatment.treatmenttime) >= '2105') AS t1 JOIN (SELECT patient.uniquepid, diagnosis.diagnosisname, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE STRFTIME('%y', diagnosis.diagnosistime) >= '2105') AS t2 ON t1.uniquepid = t2.uniquepid WHERE t1.treatmenttime < t2.diagnosistime AND DATETIME(t1.treatmenttime, 'start of month') = DATETIME(t2.diagnosistime, 'start of month') GROUP BY t2.diagnosisname) AS t3 WHERE t3.c1 <= 5 | what was the top five most frequent diagnoses that patients were given after receiving antihyperlipidemic agent - hmg-coa reductase inhibitor in the same month since 2105? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT COUNT(directed_by) FROM table_26961951_4 WHERE written_by = "Alison McDonald" | How many episodes were written by Alison McDonald? | CREATE TABLE table_26961951_4 (directed_by VARCHAR, written_by VARCHAR) |
SELECT date FROM table_name_36 WHERE loss = "reuschel (12-3)" | what date did reuschel (12-3) lose? | CREATE TABLE table_name_36 (date VARCHAR, loss VARCHAR) |
SELECT acquisition_via FROM table_name_82 WHERE school_club_team = "state" | Which is the acquisition via that has a school or club team of state? | CREATE TABLE table_name_82 (
acquisition_via VARCHAR,
school_club_team VARCHAR
) |
SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald" | How many viewers in millions did the Alison McDonald episode get? | CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR) |
SELECT COUNT(draw) FROM table_name_44 WHERE televote > 18 AND artist = "elizabeth anastasiou" AND jury > 4 | How much Draw has a Televote larger than 18, and an Artist of elizabeth anastasiou, and a Jury larger than 4? | CREATE TABLE table_name_44 (draw VARCHAR, jury VARCHAR, televote VARCHAR, artist VARCHAR) |
SELECT AVG("Rank") FROM table_40981 WHERE "Name" = 'viktors dobrecovs' AND "Matches" < '325' | What is the Rank for Viktors Dobrecovs with less than 325 Matches? | CREATE TABLE table_40981 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
) |
SELECT MIN(p_max___bar__) FROM table_26967904_2 WHERE f_bolt___kgf__ = 6876 | What is the p max ( bar ) for the 6876 f bolt ( kgf )? | CREATE TABLE table_26967904_2 (p_max___bar__ INTEGER, f_bolt___kgf__ VARCHAR) |
SELECT MAX(place) FROM table_name_65 WHERE artist = "nikolas metaxas" AND televote > 60 | Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60? | CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR) |
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 200 AND 200 + 100 AND semester.semester IN ('SP', 'SU', 'SS') AND semester.semester_id = course_offering.semester AND semester.year = 2016 | The 200 -level classes , are they available in Spring or Summer terms ? | CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE gsi (
course_offering_id int,
student_id int
)
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varchar
)
CREATE TABLE instructor (
instructor_id int,
name varchar,
uniqname varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
good_feedback int,
tough_tests int,
heavy_papers int,
cares_for_students int,
heavy_assignments int,
respected int,
participation int,
heavy_reading int,
tough_grader int,
hilarious int,
would_take_again int,
good_lecture int,
no_skip int
)
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varchar,
friday varchar,
saturday varchar,
sunday varchar,
has_final_project varchar,
has_final_exam varchar,
textbook varchar,
class_address varchar,
allow_audit varchar
)
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE comment_instructor (
instructor_id int,
student_id int,
score int,
comment_text varchar
)
CREATE TABLE requirement (
requirement_id int,
requirement varchar,
college varchar
)
CREATE TABLE student_record (
student_id int,
course_id int,
semester int,
grade varchar,
how varchar,
transfer_source varchar,
earn_credit varchar,
repeat_term varchar,
test_id varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
description varchar,
num_semesters int,
num_enrolled int,
has_discussion varchar,
has_lab varchar,
has_projects varchar,
has_exams varchar,
num_reviews int,
clarity_score int,
easiness_score int,
helpfulness_score int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE program (
program_id int,
name varchar,
college varchar,
introduction varchar
)
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE offering_instructor (
offering_instructor_id int,
offering_id int,
instructor_id int
) |
SELECT p1_diameter__mm_ FROM table_26967904_2 WHERE chambering = ".300 Lapua Magnum" | What is the p1 diameter (mm) when .300 lapua magnum is the chambering? | CREATE TABLE table_26967904_2 (p1_diameter__mm_ VARCHAR, chambering VARCHAR) |
SELECT AVG(total) FROM table_name_99 WHERE place < 2 AND draw < 5 | Which average Total has a Place smaller than 2, and a Draw smaller than 5? | CREATE TABLE table_name_99 (total INTEGER, place VARCHAR, draw VARCHAR) |
SELECT "Term start" FROM table_47383 WHERE "Political Party" = 'progressive party' | What is the Term Start date of the Progressive Party Prime Minister? | CREATE TABLE table_47383 (
"Name" text,
"Born-Died" text,
"Term start" text,
"Term end" text,
"Political Party" text
) |
SELECT chambering FROM table_26967904_2 WHERE f_bolt___kgf__ = 8339 | What is the chambering for the 8339 f bolt ( kgf )? | CREATE TABLE table_26967904_2 (chambering VARCHAR, f_bolt___kgf__ VARCHAR) |
SELECT date FROM table_name_14 WHERE record = "0-2" | Which Date has a Record of 0-2? | CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR) |
SELECT p.Id AS "post_link", p.CreationDate FROM Comments AS c JOIN Posts AS p ON c.PostId = p.Id JOIN PostTags AS pt ON pt.PostId = p.Id JOIN Tags AS t ON t.Id = pt.TagId WHERE c.Text LIKE '%possible duplicate%' AND p.ClosedDate IS NULL AND p.PostTypeId = 1 AND t.TagName = @Tag ORDER BY p.Id | Find suggested duplicates that haven't led to question closure in a tag. Locate old dupe suggestions where the flag has timed out | 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 PostTags (
PostId number,
TagId number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId 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 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 Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId 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 ReviewTaskResultTypes (
Id number,
Name text,
Description text
)
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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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 VoteTypes (
Id number,
Name text
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description 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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
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
) |
SELECT f_bolt FROM table_26967904_2 WHERE p1_diameter__mm_ = "11.35" | What is the f bolt for 11.35 p1 diameter (mm)? | CREATE TABLE table_26967904_2 (f_bolt VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT record FROM table_name_92 WHERE match_report = "recap" AND result = "l 30–20" | Which Record has a Match Report of recap, and a Result of l 30–20? | CREATE TABLE table_name_92 (record VARCHAR, match_report VARCHAR, result VARCHAR) |
SELECT "Mobile" FROM table_66073 WHERE "Chrome" = '9.00%' | What percentage of users were using mobile browsers during the period in which 9.00% were using Chrome? | CREATE TABLE table_66073 (
"Period" text,
"Internet Explorer" text,
"Firefox" text,
"Chrome" text,
"Safari" text,
"Opera" text,
"Other Mozilla" text,
"Mobile" text
) |
SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum" | How many external (cm 2 ) are there for the .338 lapua magnum chambering? | CREATE TABLE table_26967904_2 (a_external__cm_2__ VARCHAR, chambering VARCHAR) |
SELECT match_report FROM table_name_83 WHERE date = "october 26, 2008" | Which Match Report has a Date of october 26, 2008? | CREATE TABLE table_name_83 (match_report VARCHAR, date VARCHAR) |
SELECT "Opponent" FROM table_66747 WHERE "Time" = '3:59' | Who was the opponent with the time 3:59? | CREATE TABLE table_66747 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." real,
"Record" text
) |
SELECT chambering FROM table_26967904_1 WHERE f_bolt = "N (lbf)" AND p_max___bar__ = 3900 | With what type of chambering is the F bolt n (lbf) and the P max (bar) 3900? | CREATE TABLE table_26967904_1 (chambering VARCHAR, f_bolt VARCHAR, p_max___bar__ VARCHAR) |
SELECT opponent FROM table_name_83 WHERE record = "0-3" | Which Opponent has a Record of 0-3? | CREATE TABLE table_name_83 (opponent VARCHAR, record VARCHAR) |
SELECT "Team Classification" FROM table_73724 WHERE "General Classification" = 'Brett Lancaster' | When Brett Lancaster won the general classification, who won the team calssification? | CREATE TABLE table_73724 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Youth Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Most Courageous" text,
"Team Classification" text
) |
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "9.70" | What is the p max (bar) of the pistol with a P1 diameter of 9.70 mm? | CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT record FROM table_name_41 WHERE kickoff = "12:00pm cst" AND game_site = "arrowhead stadium" AND week = "15" | Which Record has a Kickoff of 12:00pm cst, and a Game site of arrowhead stadium, and a Week of 15? | CREATE TABLE table_name_41 (record VARCHAR, week VARCHAR, kickoff VARCHAR, game_site VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "79" AND lab.fluid = "Urine" | How many patients aged below 79 years have lab test fluid as urine? | 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 diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title 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 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 MAX(p_max___bar__) FROM table_26967904_1 WHERE chambering = ".45 ACP" | What is the p max (bar) in the pistol where the chambering is .45 ACP? | CREATE TABLE table_26967904_1 (p_max___bar__ INTEGER, chambering VARCHAR) |
SELECT result FROM table_name_33 WHERE opponent = "new england patriots" | What was the result when the new england patriots played? | CREATE TABLE table_name_33 (result VARCHAR, opponent VARCHAR) |
SELECT SUM("Year") FROM table_42497 WHERE "School" = 'army' AND "Position" = 'halfback' AND "% of Points Possible" = '39.01%' | What is the year of the winner from the army school, plays the halfback position, and has a % of points possible of 39.01%? | CREATE TABLE table_42497 (
"Year" real,
"Winner" text,
"School" text,
"Position" text,
"Points" text,
"% of Points Possible" text
) |
SELECT p_max___bar__ FROM table_26967904_1 WHERE p1_diameter__mm_ = "12.09" | What is the P max (bar) of the pistol with a P1 diameter of 12.09 mm? | CREATE TABLE table_26967904_1 (p_max___bar__ VARCHAR, p1_diameter__mm_ VARCHAR) |
SELECT SUM(year) FROM table_name_42 WHERE budget = "$39 million" | How many years had budgets of $39 million? | CREATE TABLE table_name_42 (year INTEGER, budget VARCHAR) |
SELECT romaji_title FROM table_name_94 WHERE japanese_title = "菊次郎とさき 3" | Which romaji title, has Japanese title of 3? | CREATE TABLE table_name_94 (
romaji_title VARCHAR,
japanese_title VARCHAR
) |
SELECT incoming_manager FROM table_26976615_3 WHERE date_of_appointment = "15 January 2011" | Who was the incoming manager for the date of appointment of 15 january 2011? | CREATE TABLE table_26976615_3 (incoming_manager VARCHAR, date_of_appointment VARCHAR) |
SELECT MAX(year) FROM table_name_89 WHERE director = "christopher kulikowski" | What is the most recent year featuring the director Christopher Kulikowski? | CREATE TABLE table_name_89 (year INTEGER, director VARCHAR) |
SELECT "Artist" FROM table_49456 WHERE "Year" = '2003' | Which artist was 2003? | CREATE TABLE table_49456 (
"Year" real,
"Album" text,
"Artist" text,
"Song" text,
"Note" text
) |
SELECT date_of_appointment FROM table_26976615_3 WHERE date_of_vacancy = "22 August 2010" | What is the date of appointment for the date of vacancy of 22 august 2010? | CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT director FROM table_name_97 WHERE gross__worldwide_ = "$30,471" | Which director had a worldwide gross of $30,471? | CREATE TABLE table_name_97 (director VARCHAR, gross__worldwide_ VARCHAR) |
SELECT "Language" FROM table_36337 WHERE "Frequency" = '3 times per year' AND "ISSN" = '1136-7385' | What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? | CREATE TABLE table_36337 (
"ISSN" text,
"Language" text,
"Country" text,
"Frequency" text,
"Publication range" text,
"Status" text,
"Document Type" text
) |
SELECT outgoing_manager FROM table_26976615_3 WHERE team = "Târgu Mureş" | Who was the outgoing manager for the team of târgu mureş? | CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, team VARCHAR) |
SELECT budget FROM table_name_4 WHERE year = 2005 | What is 2005's budget figure? | CREATE TABLE table_name_4 (budget VARCHAR, year VARCHAR) |
SELECT tournament FROM table_name_14 WHERE date = "august 17, 2008" | what is the tournament on august 17, 2008? | CREATE TABLE table_name_14 (
tournament VARCHAR,
date VARCHAR
) |
SELECT COUNT(date_of_appointment) FROM table_26976615_3 WHERE date_of_vacancy = "2 October 2010" | How many date of appointments are there when the date of vacancy was 2 october 2010? | CREATE TABLE table_26976615_3 (date_of_appointment VARCHAR, date_of_vacancy VARCHAR) |
SELECT airport FROM table_name_59 WHERE iata = "bkk" | Which airport has IATA of BKK? | CREATE TABLE table_name_59 (airport VARCHAR, iata VARCHAR) |
SELECT Q.Id AS QId, Q.Title AS QTitle, Q.Body AS QBody, G.Id AS GId, G.Body AS GBody, Q.Score AS QScore, G.Score AS GScore, Q.ViewCount AS QViewCount, G.ViewCount AS GViewCount, Q.Tags AS QTags, G.Title AS GTitle FROM Posts AS G, (SELECT * FROM Posts WHERE ParentId IS NULL AND AnswerCount >= 5) AS Q WHERE G.ParentId = Q.Id | Questions with answers more than 5. | 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 SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResultTypes (
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 TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewTaskStates (
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 PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewTasks (
Id number,
ReviewTaskTypeId number,
CreationDate time,
DeletionDate time,
ReviewTaskStateId number,
PostId number,
SuggestedEditId number,
CompletedByReviewTaskId 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 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 PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
OwnerUserId number,
DeletionUserId number
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Comments (
Id number,
PostId number,
Score number,
Text text,
CreationDate time,
UserDisplayName text,
UserId number,
ContentLicense text
)
CREATE TABLE PostFeedback (
Id number,
PostId number,
IsAnonymous boolean,
VoteTypeId number,
CreationDate time
)
CREATE TABLE Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress 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 ReviewTaskTypes (
Id number,
Name text,
Description text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE VoteTypes (
Id number,
Name text
) |
SELECT outgoing_manager FROM table_26976615_3 WHERE incoming_manager = "Laurenţiu Reghecampf" | Who was the outgoing manager when the incoming manager was laurenţiu reghecampf? | CREATE TABLE table_26976615_3 (outgoing_manager VARCHAR, incoming_manager VARCHAR) |
SELECT iata FROM table_name_14 WHERE airport = "beijing capital international airport" | What is the IATA for Beijing Capital International Airport? | CREATE TABLE table_name_14 (iata VARCHAR, airport VARCHAR) |
SELECT MIN("Winners share ($)") FROM table_25549 WHERE "Champion" = 'Se Ri Pak (2)' | What was the winner share (in $) in the year when Se Ri Pak (2) was the champion? | CREATE TABLE table_25549 (
"Year" real,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Margin of victory" text,
"Tournament location" text,
"Purse ( $ )" real,
"Winners share ($)" real
) |
SELECT manner_of_departure FROM table_26976615_3 WHERE outgoing_manager = "Andrea Mandorlini" | What was the manner of departure when the outgoing manager was andrea mandorlini? | CREATE TABLE table_26976615_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR) |
SELECT airport FROM table_name_33 WHERE country = "singapore" | Which airport is located in Singapore? | CREATE TABLE table_name_33 (airport VARCHAR, country VARCHAR) |
SELECT call_sign FROM table_name_35 WHERE frequency_mhz < 94.9 AND erp_w = 170 | What is the call sign of the MHz Frequency less than 94.9 and an ERP W of 170? | CREATE TABLE table_name_35 (
call_sign VARCHAR,
frequency_mhz VARCHAR,
erp_w VARCHAR
) |
SELECT capacity FROM table_26980923_2 WHERE team = "Dundee United" | What is the capacity for dundee united? | CREATE TABLE table_26980923_2 (capacity VARCHAR, team VARCHAR) |
SELECT country FROM table_name_88 WHERE icao = "wadd" | What is the country of the airport with ICAO of WADD? | CREATE TABLE table_name_88 (country VARCHAR, icao VARCHAR) |
SELECT AVG(michelle) FROM table_name_39 WHERE discipline = "archery" | How did michelle do in archery? | CREATE TABLE table_name_39 (
michelle INTEGER,
discipline VARCHAR
) |
SELECT total FROM table_26980923_2 WHERE stadium = "Rugby Park" | What was the total attendance at rugby park? | CREATE TABLE table_26980923_2 (total VARCHAR, stadium VARCHAR) |
SELECT city FROM table_name_98 WHERE airport = "newcastle airport" | Which city holds Newcastle Airport? | CREATE TABLE table_name_98 (city VARCHAR, airport VARCHAR) |
SELECT COUNT(reset_points) FROM table_28498999_6 WHERE player = "Charley Hoffman" | what is the number of pieces where the person is charley hoffman | CREATE TABLE table_28498999_6 (
reset_points VARCHAR,
player VARCHAR
) |
SELECT MIN(total) FROM table_26980923_2 WHERE team = "Kilmarnock" | What is the total attended for kilmarnock? | CREATE TABLE table_26980923_2 (total INTEGER, team VARCHAR) |
SELECT AVG(capacity) FROM table_name_14 WHERE stadium = "kadrioru stadium" AND current_manager = "sergei ratnikov" | What is the capacity for the stadium of kadrioru stadium and a current manager of sergei ratnikov? | CREATE TABLE table_name_14 (capacity INTEGER, stadium VARCHAR, current_manager VARCHAR) |
SELECT COUNT(*) > 0 FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-85328')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.celllabel = 'output (ml)-urethral catheter diana acuna, rn latex;straight-tip 14 fr.' AND STRFTIME('%y-%m', intakeoutput.intakeoutputtime) >= '2105-09' | did patient 027-85328 excreted any output (ml)-urethral catheter diana acuna, rn latex;straight-tip 14 fr. since 09/2105? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) |
SELECT COUNT(mon_23_aug) FROM table_26986076_1 WHERE fri_27_aug = "19' 38.87 115.219mph" | How many times was the time 19' 38.87 115.219mph on Fri Aug 27? | CREATE TABLE table_26986076_1 (mon_23_aug VARCHAR, fri_27_aug VARCHAR) |
SELECT others__number FROM table_name_59 WHERE bush__percentage = "63.98%" | What was the other number with 63.98% bush? | CREATE TABLE table_name_59 (others__number VARCHAR, bush__percentage VARCHAR) |
SELECT patient.hospitaladmittime FROM patient WHERE patient.uniquepid = '018-20179' AND patient.hospitaladmitsource = 'operating room' AND DATETIME(patient.hospitaladmittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY patient.hospitaladmittime LIMIT 1 | when was patient 018-20179 first admitted to the hospital through the operating room since 1 year ago? | CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid number,
wardid number,
admissionheight number,
admissionweight number,
dischargeweight number,
hospitaladmittime time,
hospitaladmitsource text,
unitadmittime time,
unitdischargetime time,
hospitaldischargetime time,
hospitaldischargestatus text
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
) |
SELECT fri_27_aug FROM table_26986076_1 WHERE tues_24_aug = "20' 49.46 108.709mph" | If the time on Tues Aug 24 is 20' 49.46 108.709mph, what is the time on Fri Aug 27? | CREATE TABLE table_26986076_1 (fri_27_aug VARCHAR, tues_24_aug VARCHAR) |
SELECT purpose FROM table_name_18 WHERE band = "am" AND frequency = "0 846" | Band of am, and a Frequency of 0 846 has what purpose? | CREATE TABLE table_name_18 (purpose VARCHAR, band VARCHAR, frequency VARCHAR) |
SELECT to_par FROM table_name_28 WHERE finish = "t31" | When the finish was t31 what was the To par? | CREATE TABLE table_name_28 (
to_par VARCHAR,
finish VARCHAR
) |
SELECT sat_21_aug FROM table_26986076_1 WHERE wed_25_aug = "—— No Time" | If Wed Aug 25 is —— no time, what is Sat aug 21? | CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, wed_25_aug VARCHAR) |
SELECT on_air_id FROM table_name_87 WHERE frequency = "100.1" | Frequency of 100.1 has what on-air id? | CREATE TABLE table_name_87 (on_air_id VARCHAR, frequency VARCHAR) |
SELECT "gold" + "silver" FROM table_204_775 WHERE "nation" = 'china' | how many gold and silver medals in total did china receive ? | CREATE TABLE table_204_775 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
) |
SELECT sat_28_aug FROM table_26986076_1 WHERE rank = 10 | If the Rank is 10, what was the time on Sat aug 28? | CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, rank VARCHAR) |
SELECT purpose FROM table_name_34 WHERE callsign = "6nan" | Callsign of 6nan has what purpose? | CREATE TABLE table_name_34 (purpose VARCHAR, callsign VARCHAR) |
SELECT date_test_taken, COUNT(date_test_taken) FROM Student_Tests_Taken WHERE test_result = "Pass" ORDER BY date_test_taken | Which tests have 'Pass' results? Return the dates when the tests were taken, and count them by a line chart, and I want to display by the X-axis in asc. | CREATE TABLE Courses (
course_id INTEGER,
author_id INTEGER,
subject_id INTEGER,
course_name VARCHAR(120),
course_description VARCHAR(255)
)
CREATE TABLE Student_Course_Enrolment (
registration_id INTEGER,
student_id INTEGER,
course_id INTEGER,
date_of_enrolment DATETIME,
date_of_completion DATETIME
)
CREATE TABLE Student_Tests_Taken (
registration_id INTEGER,
date_test_taken DATETIME,
test_result VARCHAR(255)
)
CREATE TABLE Students (
student_id INTEGER,
date_of_registration DATETIME,
date_of_latest_logon DATETIME,
login_name VARCHAR(40),
password VARCHAR(10),
personal_name VARCHAR(40),
middle_name VARCHAR(40),
family_name VARCHAR(40)
)
CREATE TABLE Subjects (
subject_id INTEGER,
subject_name VARCHAR(120)
)
CREATE TABLE Course_Authors_and_Tutors (
author_id INTEGER,
author_tutor_ATB VARCHAR(3),
login_name VARCHAR(40),
password VARCHAR(40),
personal_name VARCHAR(80),
middle_name VARCHAR(80),
family_name VARCHAR(80),
gender_mf VARCHAR(1),
address_line_1 VARCHAR(80)
) |
SELECT COUNT(sat_21_aug) FROM table_26986076_1 WHERE thurs_26_aug = "20' 05.19 112.703mph" | How many times was the time 20' 05.19 112.703mph on Thurs Aug 26th? | CREATE TABLE table_26986076_1 (sat_21_aug VARCHAR, thurs_26_aug VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.