Evan Longoria homered early and hit a go-ahead, two-run single in the seventh inning as the San Francisco Giants rallied late again to beat the Oakland Athletics 5-4 on Sunday for a two-game sweep. Donovan Solano added four hits and an RBI for the Giants in Bruce Bochy's 4,000th game as a major league manager. Buster Posey struck out four times and grounded into a double play.