Pinch-hitter Evan Longoria had a go-ahead, two-run single in the eighth inning and the San Francisco Giants went on to beat the Arizona Diamondbacks 3-2 on Sunday. Brandon Crawford led off the Giants eighth with a single against Luis Frias (1-1) and advanced to second on Cooper Hummel's passed ball. One out later, Jason Vosler walked, and another passed ball moved the runners to second and third.