instruction: has there been any microbiological test on the sputum, expectorated of patient 031-15417 until 06/2103?
response: SELECT COUNT(*) FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-15417')) AND microlab.culturesite = 'sputum, expectorated' AND STRFTIME('%y-%m', microlab.culturetakentime) <= '2103-06'