A throwing error by pitcher Jared Hughes on a sacrifice bunt by reliever Jean Machi allowed the San Francisco Giants to score the winning run in the 13th inning and overcome a six-run deficit to beat the Pittsburgh Pirates 11-10 Monday night.Pittsburgh Pirates' Pedro Alvarez hits a three-run home run off San Francisco Giants pitcher Yusmeiro Petit during the third inning of a baseball game in Pittsburgh Monday, May 5, 2014.Pittsburgh Pirates' Starling Marte, right, slides safely around the tag of San Francisco Giants shortstop Brandon Crawford, left, with a stolen base during the third inning of a baseball game in Pittsburgh Monday, May 5, 2014. Giants manager Bruce Bochy called for a replay and the safe call was upheld.San Francisco Giants shortstop Brandon Crawford (35) steps over a sliding Pittsburgh Pirates' Josh Harrison (5) after throwing to first to complete a first-inning double play on Pirates' Neil Walker during a baseball game in Pittsburgh Monday, May 5, 2014.San Francisco Giants' Buster Posey celebrates in the dugout after scoring on a double by Michael Morse during the first inning of a baseball game against the Pittsburgh Pirates in Pittsburgh Monday, May 5, 2014.