implemented equals for queryresponse