Deletion queries for patients and questionnaires