ยาสามชนิดที่พบบ่อยที่สุดที่จ่ายภายใน 2 เดือนให้กับผู้ป่วยหญิงอายุ 60 ปีขึ้นไป หลังจากได้รับการวินิจฉัยว่าเป็น ch obst asth w (ac) exac ในปี 2100 คืออะไร ไม่จำเป็นต้องใช้ตารางทั้งหมด
what are the three most frequent medicines that were prescribed within 2 months to the female patients of age 60 or above after they have been diagnosed with ch obst asth w (ac) exac in 2100?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 t3.drug FROM (SELECT t2.drug, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'ch obst asth w (ac) exac') AND STRFTIME('%y', diagnoses_icd.charttime) = '2100') AS t1 JOIN (SELECT admissions.subject_id, prescriptions.drug, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE admissions.subject_id IN (SELECT patients.subject_id FROM patients WHERE patients.gender = 'f') AND admissions.age >= 60 AND STRFTIME('%y', prescriptions.startdate) = '2100') AS t2 ON t1.subject_id = t2.subject_id WHERE t1.charttime < t2.startdate AND DATETIME(t2.startdate) BETWEEN DATETIME(t1.charttime) AND DATETIME(t1.charttime, '+2 month') GROUP BY t2.drug) AS t3 WHERE t3.c1 <= 3