instruction: How many patients admitted before the year 2125 have blood gas as the lab test category?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admityear < "2125" AND lab."CATEGORY" = "Blood Gas"