added parsing of QueryRelatedDefn