Jones leads Pirates past the Giants, 6-5 |

Jones leads Pirates past the Giants, 6-5

SAN FRANCISCO (AP) – Garrett Jones had three hits and two RBIs, including the go-ahead run in the eighth inning, and the Pittsburgh Pirates beat the San Francisco Giants 6-5 on Tuesday night.

Akinori Iwamura and Andy LaRoche homered for the Pirates, who ended a six-game losing streak at AT&T Park. It was their first victory in San Francisco since September 2008.

Evan Meek (1-0) pitched two scoreless innings for the win and Octavio Dotel held on for his second save in two opportunities.

Eugenio Velez hit a two-run homer off Dotel in the ninth but the closer responded by retiring three straight, getting Pablo Sandoval to line out to first to end the game.

Matt Cain allowed three runs and five hits in six innings for the Giants, who lost for just the second time. Cain retired the last 10 batters he faced.

Paul Maholm pitched five-plus innings for the Pirates, yielding three runs and eight hits.

Pittsburgh went in front for good in the eighth. With one out and a runner on first, Lastings Milledge hit a comebacker to Jeremy Affeldt but shortstop Edgar Renteria couldn’t handle the throw to second. Jones then grounded a single into right field to give the Pirates a 4-3 lead.

For the Giants, Sandoval had an RBI single in the bottom half, Mark DeRosa added a run-scoring double in the fifth.