คำนวณจำนวนผู้ป่วยโรคหลอดเลือดหัวใจหรือหลอดเลือดหัวใจตีบ sda เป็นโรคหลัก ไม่จำเป็นต้องใช้ตารางทั้งหมด
Calculate the number of patients who had coronary artery disease or coronary artery bypass graft sda as their primary disease.It is not neccessary to use all the tables.
 lab:  subject_id [ text]  hadm_id [ text]  itemid [ text]  charttime [ text]  flag [ text]  value_unit [ text]  label [ text]  fluid [ text] 
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "HOME" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT /SDA"