answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', labevents.charttime)) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'anion gap') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 19428 AND admissions.dischtime IS NULL) ORDER BY labevents.charttime DESC LIMIT 1 | how many hours does it have been since patient 19428 last received a anion gap lab test in the current hospital encounter? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
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 inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
SELECT COUNT(single) FROM table_26400075_2 WHERE artist = "Lisa Stansfield" | How many singles does Lisa Stansfield have? | CREATE TABLE table_26400075_2 (single VARCHAR, artist VARCHAR) |
SELECT SUM(_number_100) FROM table_name_33 WHERE season = "1990" AND against = "warwickshire" | Which sum of # 100 has a Season of 1990, and an Against of warwickshire? | CREATE TABLE table_name_33 (_number_100 INTEGER, season VARCHAR, against VARCHAR) |
SELECT course_name FROM courses ORDER BY course_name | List the names of courses in alphabetical order? | CREATE TABLE courses (
course_name VARCHAR
) |
SELECT weeks_in_top_10 FROM table_26400075_2 WHERE artist = "Beats International" | How many weeks in the top-10 did Beats International have? | CREATE TABLE table_26400075_2 (weeks_in_top_10 VARCHAR, artist VARCHAR) |
SELECT against FROM table_name_98 WHERE season = "1987/88" AND _number_100 > 13 AND score = "139" | Which Against has a Season of 1987/88, and a # 100 larger than 13, and a Score of 139? | CREATE TABLE table_name_98 (against VARCHAR, score VARCHAR, season VARCHAR, _number_100 VARCHAR) |
SELECT COUNT(year) FROM table_26368963_1 WHERE under_15 = "Arturo Salazar Martinez" AND under_19 = "Moises Galvez" | How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez? | CREATE TABLE table_26368963_1 (
year VARCHAR,
under_15 VARCHAR,
under_19 VARCHAR
) |
SELECT final_score FROM table_26401898_2 WHERE opponent = "Barcelona Dragons" | Name the final score for barcelona dragons | CREATE TABLE table_26401898_2 (final_score VARCHAR, opponent VARCHAR) |
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37 | What is the highest earnings for the golfer who has more than 37 wins? | CREATE TABLE table_name_90 (earnings___ INTEGER, wins INTEGER) |
SELECT STRFTIME('%j', patient.unitdischargetime) - STRFTIME('%j', patient.unitadmittime) FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-93519') AND NOT patient.unitadmittime IS NULL ORDER BY patient.unitadmittime LIMIT 1 | calculate the length of stay of patient 006-93519's first stay in the icu for. | 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 lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime 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 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 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 microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
) |
SELECT MIN(week) FROM table_26401898_2 WHERE final_score = "L 26β42" | Name the least week for l 26β42 | CREATE TABLE table_26401898_2 (week INTEGER, final_score VARCHAR) |
SELECT webcast FROM table_name_2 WHERE format = "tejano" AND callsign = "kbdr" | What Tejano webcast has a callsign of KBDR? | CREATE TABLE table_name_2 (webcast VARCHAR, format VARCHAR, callsign VARCHAR) |
SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported < (SELECT MIN(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte") | What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte? | CREATE TABLE problem_category_codes (
problem_category_code text,
problem_category_description text
)
CREATE TABLE problems (
problem_id number,
product_id number,
closure_authorised_by_staff_id number,
reported_by_staff_id number,
date_problem_reported time,
date_problem_closed time,
problem_description text,
other_problem_details text
)
CREATE TABLE problem_status_codes (
problem_status_code text,
problem_status_description text
)
CREATE TABLE problem_log (
problem_log_id number,
assigned_to_staff_id number,
problem_id number,
problem_category_code text,
problem_status_code text,
log_entry_date time,
log_entry_description text,
log_entry_fix text,
other_log_details text
)
CREATE TABLE staff (
staff_id number,
staff_first_name text,
staff_last_name text,
other_staff_details text
)
CREATE TABLE product (
product_id number,
product_name text,
product_details text
) |
SELECT game_site FROM table_26401898_2 WHERE final_score = "L 26β42" | Name the game site for l 26β42 | CREATE TABLE table_26401898_2 (game_site VARCHAR, final_score VARCHAR) |
SELECT MAX(frequency) FROM table_name_4 WHERE callsign = "kbdr" | What's the highest frequency of the KBDR callsign? | CREATE TABLE table_name_4 (frequency INTEGER, callsign VARCHAR) |
SELECT "Player" FROM table_71029 WHERE "Place" = 't10' AND "Score" = '80-70-72-72=294' | What Player with a Place of T10 had a Score of 80-70-72-72=294? | CREATE TABLE table_71029 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
) |
SELECT MIN(attendance) FROM table_26401898_2 | Name the most attendance | CREATE TABLE table_26401898_2 (attendance INTEGER) |
SELECT website FROM table_name_81 WHERE webcast = "listen live" AND frequency = 99.3 | What's the website for the Listen Live webcast on the 99.3 frequency? | CREATE TABLE table_name_81 (website VARCHAR, webcast VARCHAR, frequency VARCHAR) |
SELECT COUNT("state") FROM table_203_9 WHERE "last execution date" = 'never used' | what is the total number of states that have never used capital punishment ? | CREATE TABLE table_203_9 (
id number,
"state" text,
"last execution date" text,
"name" text,
"crime" text,
"method" text
) |
SELECT incumbent FROM table_26416704_1 WHERE elected = "2004" AND status = "Re-elected" AND party = "Republican" | Who is the incumbent when the elected year is 2004, the status is re-elected and the party is republican? | CREATE TABLE table_26416704_1 (incumbent VARCHAR, party VARCHAR, elected VARCHAR, status VARCHAR) |
SELECT webcast FROM table_name_46 WHERE website = "digital1073.com" | Which Webcast has the digital1073.com website? | CREATE TABLE table_name_46 (webcast VARCHAR, website VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Anxiety state NOS" AND prescriptions.route = "ORAL" | provide the number of patients whose diagnoses short title is anxiety state nos and drug route is oral? | 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE diagnoses (
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 lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
) |
SELECT written_by FROM table_26409328_1 WHERE directed_by = "Joe Daniello" AND production_code = "6AJN05" | who wrote the episode having joe daniello as director with production code 6ajn05? | CREATE TABLE table_26409328_1 (written_by VARCHAR, directed_by VARCHAR, production_code VARCHAR) |
SELECT date FROM table_name_14 WHERE tournament = "at&t pebble beach national pro-am" AND margin_of_victory = "1 stroke" AND to_par = "β11" | Which Date has a Tournament of at&t pebble beach national pro-am, and a Margin of victory of 1 stroke, and a To par of β11? | CREATE TABLE table_name_14 (date VARCHAR, to_par VARCHAR, tournament VARCHAR, margin_of_victory VARCHAR) |
SELECT "Outcome" FROM table_68556 WHERE "Surface" = 'clay' AND "Score" = '4β6, 7β5, 2β6' | Which outcome has a Surface of clay and a Score of 4 6, 7 5, 2 6? | CREATE TABLE table_68556 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
) |
SELECT title FROM table_26409328_1 WHERE production_code = "6AJN08" | what title was given to the episode with production code 6ajn08? | CREATE TABLE table_26409328_1 (title VARCHAR, production_code VARCHAR) |
SELECT tournament FROM table_name_39 WHERE margin_of_victory = "1 stroke" AND date = "oct 7, 1990" | Which Tournament has a Margin of victory of 1 stroke, and a Date of oct 7, 1990? | CREATE TABLE table_name_39 (tournament VARCHAR, margin_of_victory VARCHAR, date VARCHAR) |
SELECT MIN(area_km_2) FROM table_name_61 WHERE member_state = "czech republic" AND population_in_millions < 10.3 | What is the lowest area km2 of the member state of the Czech Republic and has a population in millions lesss than 10.3? | CREATE TABLE table_name_61 (
area_km_2 INTEGER,
member_state VARCHAR,
population_in_millions VARCHAR
) |
SELECT production_code FROM table_26409328_1 WHERE us_viewers__millions_ = "5.36" | what is the production code of the episode viewed by 5.36 million u.s. people? | CREATE TABLE table_26409328_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT date FROM table_name_31 WHERE winning_score = 69 - 68 - 68 - 70 = 275 | Which Date has a Winning score of 69-68-68-70=275? | CREATE TABLE table_name_31 (date VARCHAR, winning_score VARCHAR) |
SELECT team FROM table_name_71 WHERE previous_team = "san diego rockets" AND pos = "f" | Which Team has a Previous team of san diego rockets, and a Position of f? | CREATE TABLE table_name_71 (
team VARCHAR,
previous_team VARCHAR,
pos VARCHAR
) |
SELECT COUNT(hometown) FROM table_26419467_1 WHERE fresh_meat_partner = "Sydney Walker" | How many cast members had sydney walker as their fresh meat partner? | CREATE TABLE table_26419467_1 (hometown VARCHAR, fresh_meat_partner VARCHAR) |
SELECT to_par FROM table_name_22 WHERE winning_score = 64 - 68 - 66 - 63 = 261 | Which To par has a Winning score of 64-68-66-63=261? | CREATE TABLE table_name_22 (to_par VARCHAR, winning_score VARCHAR) |
SELECT "Visitor" FROM table_77554 WHERE "Date" = 'january 10' | Which team was the visitor on January 10? | CREATE TABLE table_77554 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
) |
SELECT alumni FROM table_26419467_1 WHERE fresh_meat_partner = "Noor Jehangir" | What alumni had noor jehangir as their fresh meat partner? | CREATE TABLE table_26419467_1 (alumni VARCHAR, fresh_meat_partner VARCHAR) |
SELECT winning_score FROM table_name_67 WHERE tournament = "walt disney world/oldsmobile classic" | Which Winning score has a Tournament of walt disney world/oldsmobile classic? | CREATE TABLE table_name_67 (winning_score VARCHAR, tournament VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.gender = "F" AND demographic.diagnosis = "GASTROINTESTINAL BLEED" | give me the number of patients whose gender is f and primary disease is gastrointestinal bleed? | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid 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 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 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 alumni FROM table_26419467_1 WHERE original_season = "RW: Cancun" | What alumni were in rw: cancun as their original season? | CREATE TABLE table_26419467_1 (alumni VARCHAR, original_season VARCHAR) |
SELECT COUNT(silver) FROM table_name_91 WHERE gold < 0 | What is the number in total of silver with a gold smaller than 0? | CREATE TABLE table_name_91 (silver VARCHAR, gold INTEGER) |
SELECT "Replaced by" FROM table_47921 WHERE "Team" = 'arminia bielefeld' | Who replaced the manager of team arminia bielefeld? | CREATE TABLE table_47921 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
) |
SELECT COUNT(age) FROM table_26419467_1 WHERE hometown = "Portland, OR" | How many people were from portland, or? | CREATE TABLE table_26419467_1 (age VARCHAR, hometown VARCHAR) |
SELECT SUM(gold) FROM table_name_98 WHERE rank = "3" AND silver > 7 | What is the sum of gold with a rank that is 3 and a silver larger than 7? | CREATE TABLE table_name_98 (gold INTEGER, rank VARCHAR, silver VARCHAR) |
SELECT "Away captain" FROM table_40014 WHERE "Result" = 'eng by 1 wkt' | Who was the away captain with a result of Eng by 1 wkt? | CREATE TABLE table_40014 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
) |
SELECT conference FROM table_26423157_2 WHERE school = "Tennessee" | What conference is Tennessee? | CREATE TABLE table_26423157_2 (conference VARCHAR, school VARCHAR) |
SELECT AVG(total) FROM table_name_54 WHERE nation = "thailand" AND gold < 17 | What is the average total with a nation of thailand with a gold smaller than 17? | CREATE TABLE table_name_54 (total INTEGER, nation VARCHAR, gold VARCHAR) |
SELECT abstract FROM publication WHERE title = 'Making database systems usable' | return me the abstract of ' Making database systems usable ' . | CREATE TABLE publication (
abstract varchar,
cid int,
citation_num int,
jid int,
pid int,
reference_num int,
title varchar,
year int
)
CREATE TABLE domain_conference (
cid int,
did int
)
CREATE TABLE domain_keyword (
did int,
kid int
)
CREATE TABLE domain (
did int,
name varchar
)
CREATE TABLE cite (
cited int,
citing int
)
CREATE TABLE author (
aid int,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain_author (
aid int,
did int
)
CREATE TABLE publication_keyword (
kid int,
pid int
)
CREATE TABLE conference (
cid int,
homepage varchar,
name varchar
)
CREATE TABLE journal (
homepage varchar,
jid int,
name varchar
)
CREATE TABLE organization (
continent varchar,
homepage varchar,
name varchar,
oid int
)
CREATE TABLE domain_journal (
did int,
jid int
)
CREATE TABLE domain_publication (
did int,
pid int
)
CREATE TABLE keyword (
keyword varchar,
kid int
)
CREATE TABLE writes (
aid int,
pid int
) |
SELECT seed FROM table_26423157_2 WHERE school = "California" | What seed was California? | CREATE TABLE table_26423157_2 (seed VARCHAR, school VARCHAR) |
SELECT AVG(gold) FROM table_name_17 WHERE bronze < 5 AND rank = "8" | What is the average gold with a bronze smaller than 5 with a rank of 8? | CREATE TABLE table_name_17 (gold INTEGER, bronze VARCHAR, rank VARCHAR) |
SELECT winner FROM table_name_81 WHERE year > 2011 | Who was the winner after 2011? | CREATE TABLE table_name_81 (
winner VARCHAR,
year INTEGER
) |
SELECT Ξ΅__m_β1_cm_β1__ FROM table_26428602_1 WHERE color = "red" | What is the Ξ΅ (m β1 cm β1 ) of the red dye? | CREATE TABLE table_26428602_1 (Ξ΅__m_β1_cm_β1__ VARCHAR, color VARCHAR) |
SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing" | What is the earliest launch that was from Beijing? | CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR) |
SELECT COUNT("Production code") FROM table_22589 WHERE "Written by" = 'David Richardson' AND "Directed by" = 'Todd Holland' | Name the total number of production code by david richardson and todd holland | CREATE TABLE table_22589 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
) |
SELECT MIN(absorb__nm_) FROM table_26428602_1 WHERE color = "orange" | How much absorption in nm does the orange dye have? | CREATE TABLE table_26428602_1 (absorb__nm_ INTEGER, color VARCHAR) |
SELECT name FROM table_name_19 WHERE hanzi = "ζ·±ε³ε«θ§" | With a Hanzi of ζ·±ε³ε«θ§, what is the name? | CREATE TABLE table_name_19 (name VARCHAR, hanzi VARCHAR) |
SELECT T2.student_id FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "statistics" ORDER BY T2.date_of_attendance | List the id of students who attended statistics courses in the order of attendance date. | CREATE TABLE candidates (
candidate_id number,
candidate_details text
)
CREATE TABLE students (
student_id number,
student_details text
)
CREATE TABLE candidate_assessments (
candidate_id number,
qualification text,
assessment_date time,
asessment_outcome_code text
)
CREATE TABLE addresses (
address_id number,
line_1 text,
line_2 text,
city text,
zip_postcode text,
state_province_county text,
country text
)
CREATE TABLE people_addresses (
person_address_id number,
person_id number,
address_id number,
date_from time,
date_to time
)
CREATE TABLE people (
person_id number,
first_name text,
middle_name text,
last_name text,
cell_mobile_number text,
email_address text,
login_name text,
password text
)
CREATE TABLE student_course_attendance (
student_id number,
course_id number,
date_of_attendance time
)
CREATE TABLE courses (
course_id text,
course_name text,
course_description text,
other_details text
)
CREATE TABLE student_course_registrations (
student_id number,
course_id number,
registration_date time
) |
SELECT Ξ΅__m_β1_cm_β1__ FROM table_26428602_1 WHERE color = "orange" | What is the Ξ΅ (m β1 cm β1 ) of the orange flourescent dye? | CREATE TABLE table_26428602_1 (Ξ΅__m_β1_cm_β1__ VARCHAR, color VARCHAR) |
SELECT owner FROM table_name_30 WHERE launch > 1997 AND hanzi = "ε¦ι¨ε«θ§" | Who is the owner of the object launched after 1997 and a Hanzi of ε¦ι¨ε«θ§? | CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR) |
SELECT SUM("Win percentage") FROM table_34190 WHERE "Name" = 'red kelly' | Which Win percentage has a Name of red kelly? | CREATE TABLE table_34190 (
"Name" text,
"Term" text,
"Games" real,
"Record (W\u2013L\u2013T / OTL)" text,
"Points" real,
"Win percentage" real
) |
SELECT MIN(absorb__nm_) FROM table_26428602_1 | What is the lowest dye absoprtion in nm? | CREATE TABLE table_26428602_1 (absorb__nm_ INTEGER) |
SELECT MAX(week) FROM table_name_91 WHERE date = "november 18, 1951" | What was the latest week that had a game on November 18, 1951? | CREATE TABLE table_name_91 (week INTEGER, date VARCHAR) |
WITH Rankings AS (SELECT Id, Ranking = ROW_NUMBER() OVER (ORDER BY Reputation DESC) FROM Users WHERE UPPER(Users.Location) LIKE UPPER('##Country##')), Counts AS (SELECT Count = COUNT(*) FROM Users WHERE Reputation > '##ReputationCutoff##') SELECT Id, Ranking, 100 - (100 * (CAST(Ranking AS FLOAT(20, 5)) / (SELECT Count FROM Counts))) AS Percentile FROM Rankings WHERE Id = '##UserId##' | StackOverflow Rank and Percentile by Tag. | 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 ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
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 PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
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 PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE ReviewTaskTypes (
Id number,
Name text,
Description 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 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 Badges (
Id number,
UserId number,
Name text,
Date time,
Class number,
TagBased boolean
)
CREATE TABLE PostHistoryTypes (
Id number,
Name 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 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 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 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 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 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
) |
SELECT title FROM table_26429771_1 WHERE no_in_season = 8 | What is the name of chapter 8 of season 4? | CREATE TABLE table_26429771_1 (title VARCHAR, no_in_season VARCHAR) |
SELECT opponent FROM table_name_18 WHERE date = "november 11, 1951" | Who was the opponent on November 11, 1951? | CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) |
SELECT "To par" FROM table_61609 WHERE "Country" = 'australia' AND "Player" = 'peter senior' | What is the To Par of Peter Senior from Australia? | CREATE TABLE table_61609 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT COUNT(production_code) FROM table_26429543_1 WHERE us_viewers__millions_ = "4.69" | How many different production codes are there for the episode with 4.69 million US viewers? | CREATE TABLE table_26429543_1 (production_code VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT COUNT(attendance) FROM table_name_13 WHERE result = "w 31-21" AND week < 9 | What was the total attendance with a result of W 31-21 before week 9? | CREATE TABLE table_name_13 (attendance VARCHAR, result VARCHAR, week VARCHAR) |
SELECT "Score" FROM table_29786 WHERE "Team" = 'Detroit' | What was the team's score against detroit? | CREATE TABLE table_29786 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT 2005 AS _film FROM table_26436_2 WHERE role = "Mark Cohen" | Who was in the 2005 film with the role mark cohen? | CREATE TABLE table_26436_2 (role VARCHAR) |
SELECT lifespan FROM table_name_37 WHERE majors > 1 AND name = "fuzzy zoeller" | What lifespan has a majors greater than 1, and fuzzy zoeller as the name? | CREATE TABLE table_name_37 (lifespan VARCHAR, majors VARCHAR, name VARCHAR) |
SELECT rank__week_ FROM table_23177573_1 WHERE written_by = "Thomas L. Moran" AND directed_by = "Andrew Bernstein" | What was the week ranking of the episode written by Thomas L. Moran and directed by Andrew Bernstein? | CREATE TABLE table_23177573_1 (
rank__week_ VARCHAR,
written_by VARCHAR,
directed_by VARCHAR
) |
SELECT 2005 AS _film FROM table_26436_2 WHERE original_broadway_cast = "Jesse L. Martin" | who was in the 2005 role when the original broadway cast was played by jesse l. martin? | CREATE TABLE table_26436_2 (original_broadway_cast VARCHAR) |
SELECT visitor FROM table_name_15 WHERE date = "november 27" | what visitor came on november 27 | CREATE TABLE table_name_15 (visitor VARCHAR, date VARCHAR) |
SELECT "Home team score" FROM table_1448 WHERE "Home team" = 'Carlton' | What were the home team scores when carlton was the home team? | CREATE TABLE table_1448 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
) |
SELECT written_by FROM table_26448179_3 WHERE production_code = "202" | Who wrote the episode that is production code 202? | CREATE TABLE table_26448179_3 (written_by VARCHAR, production_code VARCHAR) |
SELECT visitor FROM table_name_33 WHERE home = "chicago" | what team was the visitor in the chicago game | CREATE TABLE table_name_33 (visitor VARCHAR, home VARCHAR) |
SELECT T1.Code, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Name | For those records from the products and each product's manufacturer, visualize the relationship between code and price , and group by attribute name. | CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) |
SELECT title FROM table_26448179_3 WHERE us_viewers__millions_ = "3.8" | What title was watched by 3.8 million US viewers? | CREATE TABLE table_26448179_3 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT record FROM table_name_40 WHERE home = "chicago" | what game was in chicago | CREATE TABLE table_name_40 (record VARCHAR, home VARCHAR) |
SELECT grape, appelation FROM wine | List the grapes and appelations of all wines. | CREATE TABLE appellations (
no number,
appelation text,
county text,
state text,
area text,
isava text
)
CREATE TABLE grapes (
id number,
grape text,
color text
)
CREATE TABLE wine (
no number,
grape text,
winery text,
appelation text,
state text,
name text,
year number,
price number,
score number,
cases number,
drink text
) |
SELECT MIN(no_in_season) FROM table_26448179_3 WHERE production_code = "210" | What season number in the season has production code 210? | CREATE TABLE table_26448179_3 (no_in_season INTEGER, production_code VARCHAR) |
SELECT player FROM table_name_24 WHERE date = "may 10, 1999" | Which player is associated with the date May 10, 1999? | CREATE TABLE table_name_24 (player VARCHAR, date VARCHAR) |
SELECT allergy.allergyname FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '025-44495')) AND DATETIME(allergy.allergytime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') | what is the allergy that patient 025-44495 has had this month? | CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime 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 medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellvaluenumeric number,
intakeoutputtime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code 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 treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE lab (
labid number,
patientunitstayid number,
labname text,
labresult number,
labresulttime time
) |
SELECT written_by FROM table_26448179_2 WHERE production_code = "102" | He wrote production number 102? | CREATE TABLE table_26448179_2 (written_by VARCHAR, production_code VARCHAR) |
SELECT player FROM table_name_93 WHERE date = "july 6, 1949" | Which player is associated with the date July 6, 1949? | CREATE TABLE table_name_93 (player VARCHAR, date VARCHAR) |
SELECT street_address FROM table_name_27 WHERE name = "union bank of california tower" | What's the address of the union bank of California tower? | CREATE TABLE table_name_27 (
street_address VARCHAR,
name VARCHAR
) |
SELECT title FROM table_26448179_4 WHERE us_viewers__millions_ = "3.2" | What is the title of the episode watched by 3.2 million viewers? | CREATE TABLE table_26448179_4 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT date FROM table_name_40 WHERE player = "wilbert robinson" | Which date is associated with the player Wilbert Robinson? | CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) |
SELECT round FROM table_name_99 WHERE venue = "ullevaal" | What Round is in Ullevaal? | CREATE TABLE table_name_99 (
round VARCHAR,
venue VARCHAR
) |
SELECT title FROM table_26448179_4 WHERE production_code = 305 | What is the title of the episode with production code 305? | CREATE TABLE table_26448179_4 (title VARCHAR, production_code VARCHAR) |
SELECT player FROM table_name_63 WHERE date = "june 14, 1969" | Which player is associated with the date June 14, 1969? | CREATE TABLE table_name_63 (player VARCHAR, date VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Hx traumatic fracture" AND lab.fluid = "Joint Fluid" | how many patients with hx traumatic fracture had a lab test for joint fluid? | 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 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 procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
) |
SELECT COUNT(original_air_date) FROM table_26448179_4 WHERE us_viewers__millions_ = "3.2" | How many air dates had 3.2 million viewers? | CREATE TABLE table_26448179_4 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946" | When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs? | CREATE TABLE table_name_79 (rbis INTEGER, team VARCHAR, date VARCHAR) |
SELECT MIN("Joined") FROM table_2116 WHERE "Nickname" = 'Lions' | In what year did the Lions join? | CREATE TABLE table_2116 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real
) |
SELECT MAX(production_code) FROM table_26448179_4 | What is the highest production code? | CREATE TABLE table_26448179_4 (production_code INTEGER) |
SELECT SUM(game) FROM table_name_77 WHERE record = "33-13-3" | What is the sum of games for a record of 33-13-3? | CREATE TABLE table_name_77 (game INTEGER, record VARCHAR) |
SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'elderly multigravida-del') AND DATETIME(diagnoses_icd.charttime) >= DATETIME(CURRENT_TIME(), '-3 year')) AS t1 JOIN (SELECT admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE DATETIME(diagnoses_icd.charttime) >= DATETIME(CURRENT_TIME(), '-3 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.icd9_code) AS t3 WHERE t3.c1 <= 3) | since 3 years ago what are the top three most frequent diagnoses given to patients during the same month after the diagnosis of elderly multigravida-del? | 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 patients (
row_id number,
subject_id number,
gender text,
dob time,
dod time
)
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 outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
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 d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
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 labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
) |
SELECT points FROM table_26454128_9 WHERE athlete = "Barney Berlinger" | What are the point value(s) for when the athlete was Barney Berlinger? | CREATE TABLE table_26454128_9 (points VARCHAR, athlete VARCHAR) |
SELECT SUM(january) FROM table_name_36 WHERE record = "27-12-3" AND game < 42 | What was the sum of January values with a record of 27-12-3 for a game less than 42? | CREATE TABLE table_name_36 (january INTEGER, record VARCHAR, game VARCHAR) |
SELECT t3.spec_type_desc FROM (SELECT t2.spec_type_desc, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'oth extraoc mus-tend op') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t1 JOIN (SELECT admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime FROM microbiologyevents JOIN admissions ON microbiologyevents.hadm_id = admissions.hadm_id WHERE DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')) AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND DATETIME(t1.charttime, 'start of month') = DATETIME(t2.charttime, 'start of month') GROUP BY t2.spec_type_desc) AS t3 WHERE t3.c1 <= 3 | what were the three most ordered microbiology tests for patients who have previously received oth extraoc mus-tend op within the same month during the last year? | CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE d_items (
row_id number,
itemid number,
label text,
linksto text
)
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 procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
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 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 d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title 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 diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE patients (
row_id number,
subject_id number,
gender text,
dob time,
dod 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 microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name 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 cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
value number
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.