มีผู้ป่วยกี่คนที่ได้รับการรักษาด้วย pros rep atrial def-opn ในหนึ่งปีก่อน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many patients have been treated with pros rep atrial def-opn in a year before?It is not neccessary to use all the tables.
 cost:  row_id [ number]  subject_id [ number]  hadm_id [ number]  event_type [ text]  event_id [ number]  chargetime [ time]  cost [ number] 
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT procedures_icd.hadm_id FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'pros rep atrial def-opn') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'))