updated patient_pregnant query