query solved for patient