มีผู้ป่วยจำนวนเท่าใดที่ได้รับ opn/oth rep aort vlv-tis สองครั้งขึ้นไปในช่วงหนึ่งปีก่อน? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
what number of patients were given opn/oth rep aort vlv-tis two or more times during a year before?It is not neccessary to use all the tables.
 diagnoses_icd:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icd9_code [ text]  charttime [ time] 
SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, COUNT(*) AS c1 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 = 'opn/oth rep aort vlv-tis') AND DATETIME(procedures_icd.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') GROUP BY admissions.subject_id) AS t1 WHERE t1.c1 >= 2