Joc Pederson delivered a three-run home run in the seventh inning to help the Arizona Diamondbacks rally for a 6-5 win against the host Pittsburgh Pirates on Sunday.