Modified reasoner queries to include query class in returned set it it is not anonymous.