added QueryRelatedDefn