ขอทราบจำนวนผู้ป่วยที่ปีเสียชีวิตน้อยกว่าหรือเท่ากับ 2,126 และรหัสขั้นตอน icd9 คือ 3964 ครับ ไม่จำเป็นต้องใช้ตารางทั้งหมดครับ
give me the number of patients whose year of death is less than or equal to 2126 and procedure icd9 code is 3964?It is not neccessary to use all the tables.
 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 COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2126.0" AND procedures.icd9_code = "3964"