context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, ...
what was the name of the drug that was prescribed to patient 60180 within 2 days after having had a lower limb endarterect procedure in 09/last year?
SELECT t2.drug FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE admissions.subject_id = 60180 AND procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = ...
mimic_iii
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 varch...
Are there multiple professors who teach ECON 631 in Spring-Summer 2003 ?
SELECT COUNT(DISTINCT instructor.instructor_id) FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'ECON' AND course.number = 631 AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructor.offer...
advising
CREATE TABLE table_5877 ( "Rank" text, "Quarterback" text, "Streak start" text, "Streak end" text, "Teams" text, "Regular season" real, "Playoffs" real, "Total" real )
What rank has 123 as the total?
SELECT "Rank" FROM table_5877 WHERE "Total" = '123'
wikisql
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), ...
For all employees who have the letters D or S in their first name, for salary, hire_date, visualize the trend, and could you order by the x axis from high to low?
SELECT HIRE_DATE, SALARY FROM employees WHERE FIRST_NAME LIKE '%D%' OR FIRST_NAME LIKE '%S%' ORDER BY HIRE_DATE DESC
nvbench
CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCAT...
For those employees who did not have any job in the past, show me about the distribution of hire_date and the average of employee_id bin hire_date by weekday in a bar chart.
SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history)
nvbench
CREATE TABLE table_24264 ( "Competition" text, "Round" text, "Opponent" text, "Result" text, "Score" text, "Home/Away" text, "Venue" text, "Attendance" real, "Date" text )
How many results were there on 19/06/2009?
SELECT COUNT("Result") FROM table_24264 WHERE "Date" = '19/06/2009'
wikisql
CREATE TABLE table_19771 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" real )
what's the game site with result being l 24 34
SELECT "Game Site" FROM table_19771 WHERE "Result" = 'L 24–34'
wikisql
CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZDZZBM...
检验报告单的编码为00805364143的报告人工号以及姓名是谁?
SELECT zyjybgb.BGRGH, zyjybgb.BGRXM FROM zyjybgb WHERE zyjybgb.BGDH = '00805364143' UNION SELECT mzjybgb.BGRGH, mzjybgb.BGRXM FROM mzjybgb WHERE mzjybgb.BGDH = '00805364143'
css
CREATE TABLE table_67196 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real )
Which rider has the time of +31.426?
SELECT "Rider" FROM table_67196 WHERE "Time/Retired" = '+31.426'
wikisql
CREATE TABLE customer ( cust_id text, cust_name text, acc_type text, acc_bal number, no_of_loans number, credit_score number, branch_id number, state text ) CREATE TABLE bank ( branch_id number, bname text, no_of_customers number, city text, state text ) CREATE TABL...
What is the average number of customers across banks in the state of Utah?
SELECT AVG(no_of_customers) FROM bank WHERE state = 'Utah'
spider
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 n...
Questions in need of a friendly/helpful comment.
SELECT q.Title, q.Tags, 'https://codereview.stackexchange.com/questions/' + CAST(q.Id AS VARCHAR) AS URL FROM Posts AS q WHERE (SELECT COUNT(*) FROM Posts AS a WHERE a.ParentId = q.Id AND a.Score > 0) = 0 AND (SELECT COUNT(*) FROM Comments AS c WHERE c.PostId = q.Id) = 0 AND q.Score <= 0 AND q.CommunityOwnedDate IS NUL...
sede
CREATE TABLE gwyjzb ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, ...
排出对于王志尚病人就医记录中医疗费总额不少于5598.78元的入院诊断疾病序号是什么和名称叫什么?
SELECT gwyjzb.IN_DIAG_DIS_CD, gwyjzb.IN_DIAG_DIS_NM FROM gwyjzb WHERE gwyjzb.PERSON_NM = '王志尚' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc24.MED_CLINIC_ID FROM t_kc24 WHERE t_kc24.MED_AMOUT >= 5598.78) UNION SELECT fgwyjzb.IN_DIAG_DIS_CD, fgwyjzb.IN_DIAG_DIS_NM FROM fgwyjzb WHERE fgwyjzb.PERSON_NM = '王志尚' AND fgwyjzb.MED_...
css
CREATE TABLE table_203_749 ( id number, "call sign" text, "frequency" text, "city of license" text, "licensee" text, "format" text )
what is the first listed news talk information station ?
SELECT "call sign" FROM table_203_749 WHERE "format" = 'news talk information' LIMIT 1
squall
CREATE TABLE employee ( emp_fname VARCHAR, emp_num VARCHAR ) CREATE TABLE course ( crs_description VARCHAR, crs_code VARCHAR ) CREATE TABLE CLASS ( prof_num VARCHAR, crs_code VARCHAR )
Find the first names of all instructors who have taught some course and the course description.
SELECT T2.emp_fname, T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code
sql_create_context
CREATE TABLE table_name_89 ( venue VARCHAR, against VARCHAR )
Which Venue has Against of 25?
SELECT venue FROM table_name_89 WHERE against = 25
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, ...
how many patients whose procedure long title is excision or destruction of other lesion or tissue of heart, open approach and lab test fluid is cerebrospinal fluid (csf)?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE procedures.long_title = "Excision or destruction of other lesion or tissue of heart, open approach" AND lab.fluid = "Cerebrospinal Fl...
mimicsql_data
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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype tex...
what is the number of patients who had been diagnosed with renal vascular disorder during this year?
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT diagnoses_icd.hadm_id FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'renal vascular disorder') AND DATETIME(diagnoses_icd.chart...
mimic_iii
CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMENT_ID decimal(...
For those employees who was hired before 2002-06-21, visualize a bar chart about the distribution of hire_date and the sum of manager_id bin hire_date by weekday.
SELECT HIRE_DATE, SUM(MANAGER_ID) FROM employees WHERE HIRE_DATE < '2002-06-21'
nvbench
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,...
how many patients whose gender is m and diagnoses icd9 code is 5119?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.gender = "M" AND diagnoses.icd9_code = "5119"
mimicsql_data
CREATE TABLE table_name_83 ( location VARCHAR, name VARCHAR )
Where was the third bridge over panama canal?
SELECT location FROM table_name_83 WHERE name = "third bridge over panama canal"
sql_create_context
CREATE TABLE EMPLOYEE ( EMP_NUM int, EMP_LNAME varchar(15), EMP_FNAME varchar(12), EMP_INITIAL varchar(1), EMP_JOBCODE varchar(5), EMP_HIREDATE datetime, EMP_DOB datetime ) CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NU...
Find the number of professors for each first name with a bar chart, I want to show from high to low by the bar.
SELECT EMP_FNAME, COUNT(EMP_FNAME) FROM PROFESSOR AS T1 JOIN EMPLOYEE AS T2 ON T1.EMP_NUM = T2.EMP_NUM GROUP BY EMP_FNAME ORDER BY EMP_FNAME DESC
nvbench
CREATE TABLE table_train_135 ( "id" int, "loss_of_consciousness" bool, "systolic_blood_pressure_sbp" int, "head_injury" bool, "heart_disease" bool, "stroke" bool, "renal_disease" bool, "hepatic_disease" bool, "hydrocephalus" bool, "peptic_ulcer_disease" bool, "blood_glucose" ...
history of alcoholism, drug abuse, liver disease, peptic ulcer disease
SELECT * FROM table_train_135 WHERE alcohol_abuse = 1 OR drug_abuse = 1 OR liver_disease = 1 OR peptic_ulcer_disease = 1
criteria2sql
CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZDZZBM...
以前有什么门诊诊断过患者33787678么?
SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_inf...
css
CREATE TABLE table_1891 ( "No. in series" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text )
Name the total number for number in series that got 3.62 viewers
SELECT COUNT("No. in series") FROM table_1891 WHERE "U.S. viewers (million)" = '3.62'
wikisql
CREATE TABLE table_name_52 ( tie_no VARCHAR, home_team VARCHAR )
When the Altrincham was the home team what was the tie no?
SELECT tie_no FROM table_name_52 WHERE home_team = "altrincham"
sql_create_context
CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Per...
Return a bar chart about the distribution of ACC_Road and the sum of Team_ID , and group by attribute ACC_Road, and display by the total number in asc.
SELECT ACC_Road, SUM(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY SUM(Team_ID)
nvbench
CREATE TABLE table_20621 ( "Missouri vs." text, "Overall Record" text, "at Columbia" text, "at Opponents Venue" text, "at Neutral Site" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text, "Since Joining SEC" text )
What is the record of wins/losses that were played at opponents venue (uf, 1-0)
SELECT "Overall Record" FROM table_20621 WHERE "at Opponents Venue" = 'UF, 1-0'
wikisql
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, ...
how much does patient 004-13127's temperature change from the value measured at 2105-12-31 22:54:00 compared to the value measured at 2105-12-31 22:49:00?
SELECT (SELECT vitalperiodic.temperature FROM vitalperiodic WHERE vitalperiodic.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-13127')) AND NOT vitalperiodic.temperature ...
eicu
CREATE TABLE table_76522 ( "Season" text, "Skip" text, "Third" text, "Second" text, "Lead" text )
Which Second has a Lead of ben hebert?
SELECT "Second" FROM table_76522 WHERE "Lead" = 'ben hebert'
wikisql
CREATE TABLE table_name_21 ( lost VARCHAR, drawn VARCHAR, points_1 VARCHAR )
What is the total number of losses for a draw of 7, and 1 points less than 33?
SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33
sql_create_context
CREATE TABLE constructorstandings ( constructorstandingsid number, raceid number, constructorid number, points number, position number, positiontext text, wins number ) CREATE TABLE drivers ( driverid number, driverref text, number number, code text, forename text, s...
What are the names of all races that occurred after 12:00:00 or before 09:00:00?
SELECT name FROM races WHERE time > "12:00:00" OR time < "09:00:00"
spider
CREATE TABLE All_Documents ( Document_ID INTEGER, Date_Stored DATETIME, Document_Type_Code CHAR(15), Document_Name CHAR(255), Document_Description CHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), ...
Bar chart x axis location code y axis how many location code, display by the y-axis from high to low.
SELECT Location_Code, COUNT(Location_Code) FROM Document_Locations GROUP BY Location_Code ORDER BY COUNT(Location_Code) DESC
nvbench
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, wa...
what were the three most frequent drugs prescribed in the same month to the encephalopathy - metabolic male patients of age 30s after they were diagnosed with encephalopathy - metabolic since 2103?
SELECT t3.drugname FROM (SELECT t2.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT patient.uniquepid, diagnosis.diagnosistime FROM diagnosis JOIN patient ON diagnosis.patientunitstayid = patient.patientunitstayid WHERE diagnosis.diagnosisname = 'encephalopathy - metabolic' AND STRFTIME('%y', dia...
eicu
CREATE TABLE table_name_86 ( gold VARCHAR, nation VARCHAR, total VARCHAR )
How many golds have denmark as the nation, with a total less than 1?
SELECT COUNT(gold) FROM table_name_86 WHERE nation = "denmark" AND total < 1
sql_create_context
CREATE TABLE table_name_60 ( player VARCHAR, score VARCHAR )
What is Player, when Score is '76-73-73=222'?
SELECT player FROM table_name_60 WHERE score = 76 - 73 - 73 = 222
sql_create_context
CREATE TABLE table_name_58 ( crowd VARCHAR, venue VARCHAR )
What was the attendance when the VFL played Junction Oval?
SELECT COUNT(crowd) FROM table_name_58 WHERE venue = "junction oval"
sql_create_context
CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( ...
how many patients of black/haitian ethnicity are below 63 years of age?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.age < "63"
mimicsql_data
CREATE TABLE table_2562572_41 ( cyrillic_name_other_names VARCHAR, settlement VARCHAR )
What is the Deliblato village known as in Cyrillic?
SELECT cyrillic_name_other_names FROM table_2562572_41 WHERE settlement = "Deliblato"
sql_create_context
CREATE TABLE table_11964 ( "Race" text, "Date" text, "Location" text, "Pole Position" text, "Fastest Lap" text, "Race Winner" text, "Constructor" text, "Report" text )
What is the Pole Position of the Brazilian Grand Prix race?
SELECT "Pole Position" FROM table_11964 WHERE "Race" = 'brazilian grand prix'
wikisql
CREATE TABLE table_name_7 ( region VARCHAR, catalog VARCHAR )
Which region is identified as 38xa-3 in the catalog?
SELECT region FROM table_name_7 WHERE catalog = "38xa-3"
sql_create_context
CREATE TABLE table_204_568 ( id number, "pennant" text, "name" text, "hull builder" text, "ordered" text, "laid down" text, "launched" text, "accepted into service" text, "commissioned" text, "est. building cost" text, "fate" text )
how many ships were laid down in september ?
SELECT COUNT(*) FROM table_204_568 WHERE "laid down" = 9
squall
CREATE TABLE table_name_18 ( nominee VARCHAR, category VARCHAR )
Who was nominated for Best Theatre Choreographer?
SELECT nominee FROM table_name_18 WHERE category = "best theatre choreographer"
sql_create_context
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description t...
What users have visited asking or answering only once posting links?. Helps identify H&R's, possibly spammers?
SELECT OwnerUserId AS "user_link", Score, Id AS "post_link" FROM Posts WHERE OwnerUserId IN (SELECT OwnerUserId FROM Posts GROUP BY OwnerUserId HAVING COUNT(*) = 1) AND PostTypeId = 2 AND Score <= 0 AND Body LIKE '%http%' ORDER BY Score LIMIT 2500
sede
CREATE TABLE table_27700375_8 ( high_rebounds VARCHAR, high_points VARCHAR )
Who got the high rebounds if Brook Lopez (15) earned the high points?
SELECT high_rebounds FROM table_27700375_8 WHERE high_points = "Brook Lopez (15)"
sql_create_context
CREATE TABLE table_name_10 ( round VARCHAR, time VARCHAR, opponent VARCHAR )
What is the total number of rounds when Drew Fickett was the opponent and the time is 5:00?
SELECT COUNT(round) FROM table_name_10 WHERE time = "5:00" AND opponent = "drew fickett"
sql_create_context
CREATE TABLE table_74533 ( "Rider" text, "Bike" text, "Laps" real, "Time" text, "Grid" real )
What is the total grid number when Fonsi Nieto had more than 22 laps?
SELECT COUNT("Grid") FROM table_74533 WHERE "Rider" = 'fonsi nieto' AND "Laps" > '22'
wikisql
CREATE TABLE table_name_94 ( years_exp VARCHAR, height VARCHAR )
What is Years Exp, when Height is '7-2'?
SELECT years_exp FROM table_name_94 WHERE height = "7-2"
sql_create_context
CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) C...
GCP Questions Tags by Month.
SELECT COUNT(*) AS count, CONCAT(MONTH(p.CreationDate), '/', YEAR(p.CreationDate)) AS date, t.TagName FROM Posts AS p, Tags AS t, PostTags AS pt WHERE pt.PostId = p.Id AND pt.TagId = t.Id AND LOWER(t.TagName) IN ('google-cloud-dataflow', 'google-cloud-datastore', 'google-cloud-dns', 'google-cloud-endpoints', 'google-cl...
sede
CREATE TABLE table_8052 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School" text )
What is the position of pick 32?
SELECT "Position" FROM table_8052 WHERE "Pick" = '32'
wikisql
CREATE TABLE table_38495 ( "Number" real, "Station" text, "Japanese" text, "Distance (km)" real, "Stop" text, "Location" text )
What is the number of the station in Suzuka that is smaller than 11.1 km and has an l stop?
SELECT SUM("Number") FROM table_38495 WHERE "Location" = 'suzuka' AND "Distance (km)" < '11.1' AND "Stop" = 'l'
wikisql
CREATE TABLE trained_in ( physician number, treatment number, certificationdate time, certificationexpires time ) CREATE TABLE procedures ( code number, name text, cost number ) CREATE TABLE block ( blockfloor number, blockcode number ) CREATE TABLE undergoes ( patient number,...
Return the name of each physician and the number of patients he or she treats.
SELECT T1.name, COUNT(*) FROM physician AS T1 JOIN patient AS T2 ON T1.employeeid = T2.pcp GROUP BY T1.employeeid
spider
CREATE TABLE table_11827596_2 ( film_name VARCHAR, co_singer VARCHAR )
what are the film names with the co-singer vinod rathod?
SELECT film_name FROM table_11827596_2 WHERE co_singer = "Vinod Rathod"
sql_create_context
CREATE TABLE table_70557 ( "Catalog #" text, "Title" text, "Year" text, "Composer" text, "Released" real )
What CD has a catalog # of PCR 502?
SELECT "Title" FROM table_70557 WHERE "Catalog #" = 'pcr 502'
wikisql
CREATE TABLE table_150343_3 ( rank VARCHAR, country_territory VARCHAR )
What is the United States rank?
SELECT COUNT(rank) FROM table_150343_3 WHERE country_territory = "United States"
sql_create_context
CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC...
在03年1月5日到10年11月6日期间,病患20286940的所有检验结果指标记录的检测人为58375381的检验指标流水号分别是多少?
SELECT jyjgzbb.JYZBLSH FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '20286940' AND jyjgzbb.JYRQ BETWEEN '2003-01-0...
css
CREATE TABLE table_58721 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text )
What country does Jeff Sluman play for?
SELECT "Country" FROM table_58721 WHERE "Player" = 'jeff sluman'
wikisql
CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, OVE_PAY numb...
按照科室的不同名字和入院诊断的不同编码算算看医院5532316所有记载里患者的平均年纪
SELECT MED_ORG_DEPT_NM, IN_DIAG_DIS_CD, AVG(PERSON_AGE) FROM t_kc21 WHERE MED_SER_ORG_NO = '5532316' GROUP BY MED_ORG_DEPT_NM, IN_DIAG_DIS_CD
css
CREATE TABLE table_name_91 ( launched VARCHAR, laid_down VARCHAR )
when was the destroyer launched when it was laid down on 14 august 1942?
SELECT launched FROM table_name_91 WHERE laid_down = "14 august 1942"
sql_create_context
CREATE TABLE table_75755 ( "Game" real, "Date" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Result (sets)" text, "Result (Pts)" text )
What is the result of the game with a set 1 of 26-24?
SELECT "Result (Pts)" FROM table_75755 WHERE "Set 1" = '26-24'
wikisql
CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREAT...
Give me a histogram for how many students are older than 20 in each dorm?
SELECT dorm_name, COUNT(*) FROM Student AS T1 JOIN Lives_in AS T2 ON T1.stuid = T2.stuid JOIN Dorm AS T3 ON T3.dormid = T2.dormid WHERE T1.Age > 20 GROUP BY T3.dorm_name
nvbench
CREATE TABLE table_697 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text )
Who were the candidates in district Wisconsin 1?
SELECT "Candidates" FROM table_697 WHERE "District" = 'Wisconsin 1'
wikisql
CREATE TABLE table_name_44 ( current_champion_s_ VARCHAR, championship VARCHAR )
Who is the current champion in the NECW Heavyweight Championship?
SELECT current_champion_s_ FROM table_name_44 WHERE championship = "necw heavyweight champion"
sql_create_context
CREATE TABLE table_name_51 ( player VARCHAR, pick__number VARCHAR )
What is the name of the player that is pick #69?
SELECT player FROM table_name_51 WHERE pick__number = "69"
sql_create_context
CREATE TABLE table_29332810_14 ( general_classification VARCHAR, winner VARCHAR, young_rider_classification VARCHAR )
Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?
SELECT general_classification FROM table_29332810_14 WHERE winner = "Ben Swift" AND young_rider_classification = "Cameron Meyer"
sql_create_context
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
在09年1月4日至2012年6月1日之中医疗机构2157657的医疗费之和是多少钱?
SELECT SUM(t_kc24.MED_AMOUT) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '2157657' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2009-01-04' AND '2012-06-01' UNION SELECT SUM(t_kc24.MED_AMOUT) FROM gyb JOIN t_kc24 ON gyb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO...
css
CREATE TABLE table_39517 ( "Source" text, "Date" text, "DeSUS" text, "Zares" text, "NLPD" text )
What is the percentage for Zares on May 21 22?
SELECT "Zares" FROM table_39517 WHERE "Date" = 'may 21–22'
wikisql
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic (...
how many patients of hispanic/latino and use the base drug type?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.ethnicity = "HISPANIC OR LATINO" AND prescriptions.drug_type = "BASE"
mimicsql_data
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number...
get me the top five most frequent lab tests?
SELECT t1.labname FROM (SELECT lab.labname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM lab GROUP BY lab.labname) AS t1 WHERE t1.c1 <= 5
eicu
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefin...
Algerian top stackoverflow users.
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", u.Id AS "user_link", u.Reputation, u.Age, u.Location, u.WebsiteUrl AS Wesbite, u.LastAccessDate AS LastSeen, u.CreationDate FROM Users AS u WHERE Reputation >= '##MinimalReputation:int?11##' AND (UPPER(Location) LIKE UPPER('%tunis%') OR UPPER(Location) LIKE UP...
sede
CREATE TABLE table_27603 ( "#" real, "Name" text, "Position" text, "Height" text, "Weight" real, "Year" text, "Home Town" text, "Last School" text )
Name the height for demetrius jemison
SELECT "Height" FROM table_27603 WHERE "Name" = 'Demetrius Jemison'
wikisql
CREATE TABLE table_name_78 ( attendance VARCHAR, date VARCHAR )
What was the attendance of the Browns' September 7, 1953 game?
SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953"
sql_create_context
CREATE TABLE table_13328239_4 ( round VARCHAR, score VARCHAR )
How many rounds ended with a score of 16-52?
SELECT COUNT(round) FROM table_13328239_4 WHERE score = "16-52"
sql_create_context
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABL...
please list the flights from PITTSBURGH to BALTIMORE arriving 5 7
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, date_day, days, flight, state WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BALTIMORE' AND date_day.day_number = 6 AND date_day.month_number =...
atis
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, ...
how many patients whose age is less than 50 and admission year is less than 2112?
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "50" AND demographic.admityear < "2112"
mimicsql_data
CREATE TABLE table_name_10 ( visiting_team VARCHAR, stadium VARCHAR )
What team visited the Jacksonville Municipal Stadium?
SELECT visiting_team FROM table_name_10 WHERE stadium = "jacksonville municipal stadium"
sql_create_context
CREATE TABLE table_24541 ( "University" text, "Established as a university" real, "First establishment" real, "Student population ( FTE , 2009)" real, "Research grants (2009, in billion SEK )" text )
what is the first establishement where research grants is 2.033?
SELECT "First establishment" FROM table_24541 WHERE "Research grants (2009, in billion SEK )" = '2.033'
wikisql
CREATE TABLE table_73664 ( "Circuit" text, "Difficulty" text, "Turns" real, "Direction" text, "Setting" text, "Conditions" text, "Unlock Order" real, "Unlocks" text, "Unlocked by" text )
What is the difficulty of the athens circuit?
SELECT "Difficulty" FROM table_73664 WHERE "Circuit" = 'Athens'
wikisql
CREATE TABLE table_12891 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location/Attendance" text, "Record" text, "Streak" text )
Which Record has a Location/Attendance of ford center, a Game larger than 30, and a Score of 87 79?
SELECT "Record" FROM table_12891 WHERE "Location/Attendance" = 'ford center' AND "Game" > '30' AND "Score" = '87–79'
wikisql
CREATE TABLE county ( county_id number, county_name text, population number, zip_code text ) CREATE TABLE party ( party_id number, year number, party text, governor text, lieutenant_governor text, comptroller text, attorney_general text, us_senate text ) CREATE TABLE el...
Find the committees that have delegates both from from the democratic party and the liberal party.
SELECT T1.committee FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id WHERE T2.party = "Democratic" INTERSECT SELECT T1.committee FROM election AS T1 JOIN party AS T2 ON T1.party = T2.party_id WHERE T2.party = "Liberal"
spider
CREATE TABLE table_name_30 ( score VARCHAR, date VARCHAR, home VARCHAR, visitor VARCHAR )
What is the Score of the Chicago Black Hawks Home game with the Visiting Vancouver Canucks on November 17?
SELECT score FROM table_name_30 WHERE home = "chicago black hawks" AND visitor = "vancouver canucks" AND date = "november 17"
sql_create_context
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREA...
how many hours have elapsed since patient 011-55642 was admitted to the hospital?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', patient.hospitaladmittime)) FROM patient WHERE patient.uniquepid = '011-55642' AND patient.hospitaldischargetime IS NULL
eicu
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_proje...
What is the number of 100 -level classes available in Fall and Winter term ?
SELECT COUNT(DISTINCT course.course_id, semester.semester) FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'department0' AND course.number BETWEEN 100 AND 100 + 100 AND semester.semester IN ('FA', 'WN') AND semester.semester_id = course_offering.semester...
advising
CREATE TABLE table_20608 ( "Missouri vs." text, "Overall Record" text, "at Columbia" text, "at Opponents Venue" text, "at Neutral Site" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text )
What is the record at the opponent's venue against the team for which the record for the last 5 meetings is mu, 4-1 and the record at the neutral site is tied, 0-0?
SELECT "at Opponents Venue" FROM table_20608 WHERE "Last 5 Meetings" = 'MU, 4-1' AND "at Neutral Site" = 'Tied, 0-0'
wikisql
CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE...
show me the flights from PHILADELPHIA to DALLAS
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PHILADELPHIA' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'D...
atis
CREATE TABLE table_name_92 ( length VARCHAR, engine_type VARCHAR, numbers VARCHAR )
What is the length for a diesel engine with numbers of tbd (13 buses)?
SELECT length FROM table_name_92 WHERE engine_type = "diesel" AND numbers = "tbd (13 buses)"
sql_create_context
CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, ...
what procedure did patient 027-135082 last receive in the previous year?
SELECT treatment.treatmentname FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '027-135082')) AND DATETIME(treatment.treatmenttime, 'start of yea...
eicu
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...
what is the average number of patients diagnosed with cardiac arrest daily in 2102?
SELECT AVG(t1.c1) FROM (SELECT COUNT(DISTINCT diagnosis.patientunitstayid) AS c1 FROM diagnosis WHERE diagnosis.diagnosisname = 'cardiac arrest' AND STRFTIME('%y', diagnosis.diagnosistime) = '2102' GROUP BY STRFTIME('%y-%m-%d', diagnosis.diagnosistime)) AS t1
eicu
CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, JCZBJGDX text, JCZBMC text, JLDW text, JYRQ time, JYZBLSH text, ...
潘乐山这位患者的补体C3在2003年5月12日到2009年10月10日期间的情况
SELECT * FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE person_info.XM = '潘乐山'...
css
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE...
what are the three most commonly prescribed drugs for patients who were also prescribed ferrous sulfate at the same time?
SELECT t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'ferrous sulfate') AS t1 JOIN (SELECT admissions.subject_id, presc...
mimic_iii
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 ) CRE...
Rate of Questions with Accepted Answers.
SELECT COUNT(*) AS "total_questions", SUM(CASE WHEN q.AcceptedAnswerId != '' THEN 1 ELSE 0 END) AS "questions_with_accepted_answers", SUM(CASE WHEN q.AcceptedAnswerId != '' THEN 1 ELSE 0 END) * 100.0 / COUNT(*) AS "percentage_accepted" FROM Posts AS q WHERE q.PostTypeId = 1
sede
CREATE TABLE table_24935743_2 ( school VARCHAR, nickname VARCHAR )
What school is nicknamed the panthers?
SELECT school FROM table_24935743_2 WHERE nickname = "Panthers"
sql_create_context
CREATE TABLE table_name_86 ( home_team VARCHAR, venue VARCHAR )
What was the home team score at junction oval?
SELECT home_team AS score FROM table_name_86 WHERE venue = "junction oval"
sql_create_context
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 lab ( labid number, pa...
count the number of patients who in this year received anticonvulsants - phenytoin.
SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'anticonvulsants - phenytoin' AND DATETIME(treatment.treatmenttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year'))
eicu
CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, JCZBJGDX text, JCZBMC text, JLDW text, JYRQ time, JYZBLSH text, ...
患者朱湛英曾经去过什么地方看病?
SELECT zzmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN zzmzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE person_info.XM = '朱湛英' UNION SELECT fzzmzjzjlb.YLJGDM FROM person_info JOIN hz_info JOIN fzzmzjzjlb ON person_...
css
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 ) CREATE TABLE intakeoutput ( intakeou...
how many days has it been since patient 017-88691 last received an intake of tube feeding flush (ml) on the current icu visit?
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', intakeoutput.intakeoutputtime)) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid =...
eicu
CREATE TABLE table_31647 ( "Tournament" text, "1987" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text...
What Tournament of monte carlo had 1996 and a 1987 of nme?
SELECT "1996" FROM table_31647 WHERE "1987" = 'nme' AND "Tournament" = 'monte carlo'
wikisql
CREATE TABLE table_11652 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
How many people were in the crowd when Carlton was the away team?
SELECT COUNT("Crowd") FROM table_11652 WHERE "Away team" = 'carlton'
wikisql
CREATE TABLE table_name_85 ( position VARCHAR, pick VARCHAR, school_club_team VARCHAR )
Which Position has a Pick smaller than 29, and a School/Club Team of arizona?
SELECT position FROM table_name_85 WHERE pick < 29 AND school_club_team = "arizona"
sql_create_context
CREATE TABLE table_name_7 ( score VARCHAR, team VARCHAR )
What is Score, when Team is 'Indiana'?
SELECT score FROM table_name_7 WHERE team = "indiana"
sql_create_context
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 medication ( medi...
what is the monthly minimum effluent output that patient 035-3496 has had?
SELECT MIN(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-3496')) AND intakeoutput.celllabel = 'efflue...
eicu