Missing hashCode and equals

BasicQuery has no equals and it fails back to base Query.equals which
is lead to incorrect behavior – every two BasicQuery objects are
identical regardless the actual underlying
queryObject/fieldsObject/sortObject