PITTSBURGH Gorkys Hernandez homered off Ivan Nova to spark a five-run sixth inning, Nick Hundley added a three-run drive and the San Francisco Giants beat the Pittsburgh Pirates 5-0 Sunday to stop a season-high six game-losing streak.