Store all occurrences of qvar in query.