Filtering for trait occupation equal prisoner