Filtering for trait rank equal general with two command pins