fix ambiguous rankId query by filtering on treedef.