has patient 87733 received a viral warts nos diagnosis until 2 years ago.
select count(*)>0 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'viral warts nos' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 87733 ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-2 year')