Adds the BPRP dataset to a merge statement and corrects and mistyped 'if-then' statement