Replace last relation (AppliedPiResult) with Rule (RuleApply)