ผู้ป่วย 17667 ทำการทดสอบไบคาร์บอเนตกี่ครั้ง?ไม่จำเป็นต้องใช้ตารางทั้งหมด
how many times does patient 17667 have a bicarbonate test?It is not neccessary to use all the tables.
 d_icd_procedures:  row_id [ number]  icd9_code [ text]  short_title [ text]  long_title [ text] 
SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667)