instruction: how many patients with quantitative g6pd lab test were admitted in the hospital for more than 16 days?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "16" AND lab.label = "Quantitative G6PD"