Evan Longoria homered twice and drove in five runs as the San Francisco Giants beat the Arizona Diamondbacks 10-4 Friday night for their 10th win in 11 games. Mike Yastrzemski and Austin Wynns also went deep as San Francisco Giants (79-78) moved above .500 for the first time since Aug. 17. The Giants also kept their slim wild-card hopes going with five games remaining, though a loss or a win by Philadelphia will eliminate them.