OAKLAND, Calif. (AP) — Dereck Rodriguez pitched three-hit ball into the seventh inning for his fourth consecutive win, and the San Francisco Giants beat the Oakland Athletics 5-1 on Friday night.

Pablo Sandoval and Ryder Jones homered for the Giants. Andrew McCutchen doubled, drove in a run and made a pair of sliding catches in right field.

Khris Davis doubled and scored for Oakland.

The A's had won 21 of 27, including six of seven at the Coliseum, before losing in front of their first sellout crowd of the season.

The Bay Area rivals are in the midst of playing six consecutive games against each other. Oakland won two of three at San Francisco during the final series before the All-Star break.

Rodriguez (5-1) was masterful in his first career interleague start. Used as a reliever against the Chicago Cubs on July 11 in between starts, the right-hander allowed one run in 6 1/3 innings. He struck out five, hit two batters with pitches and retired 13 of 14 during one stretch.

Two weeks ago, Rodriguez was fighting for a spot in the Giants' rotation amid a flurry of injuries to the team's top three starters and poor outings by others. The son of Hall of Fame catcher Ivan "Pudge" Rodriguez is likely to stay put now after lowering his ERA to 2.72 — second-lowest among San Francisco's starters.

Reyes Moronta retired two batters. Mark Melancon and Tony Watson pitched one inning apiece to complete the four-hitter.

Jones, called up from Triple-A Sacramento before the game, hit a go-ahead homer in the fourth. Sandoval went deep in the seventh. Both home runs came off A's starter Edwin Jackson (1-2).

McCutchen doubled and scored on Buster Posey's single in the fourth and had a sacrifice fly in the eighth. He did his best work in the field.

A Gold Glove winner as a center fielder in 2012, McCutchen has been uneven in right field this season but made a pair of sparkling defensive plays to take hits away from Matt Chapman in the fourth and Jonathan Lucroy in the fifth. McCutchen finished with eight putouts.

Jackson allowed three runs in 6 1/3 innings. He struck out six and walked one.

TRAINER'S ROOM

Giants: 1B Brandon Belt was placed on the paternity list. Jones started at third base while Sandoval replaced Belt at first. ... 3B Evan Longoria (broken hand) went 2 for 3 with a double and an RBI in a rehab game with Sacramento.

UP NEXT

Giants LHP Madison Bumgarner (3-3, 2.90 ERA) goes for his fifth win in seven career starts against the A's on Saturday night. RHP Trevor Cahill (1-2, 3.10) pitches for Oakland.

___

More AP baseball: https://apnews.com/tag/MLBbaseball