Query parsing - identity and class/label.