Simplify parent/ancenstor definitions/queries