Filtering for trait code equal SOJP