จำนวนผู้ป่วยที่ได้รับ cont inv mec ven <96 ชม. ในระหว่างการรักษาตัวในโรงพยาบาลเดียวกัน หลังจากได้รับการใส่ท่อช่วยหายใจตั้งแต่ปี 2104 เป็นเท่าใด ไม่จำเป็นที่จะต้องใช้โต๊ะทั้งหมด
what are the number of patients who received cont inv mec ven <96 hrs during the same hospital encounter after having received insert endotracheal tube since 2104?It is not neccessary to use all the tables.
 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] 
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id 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 = 'insert endotracheal tube') AND STRFTIME('%y', procedures_icd.charttime) >= '2104') AS t1 JOIN (SELECT admissions.subject_id, procedures_icd.charttime, admissions.hadm_id 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 = 'cont inv mec ven <96 hrs') AND STRFTIME('%y', procedures_icd.charttime) >= '2104') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.charttime AND t1.hadm_id = t2.hadm_id