(AP) Angel Pagan singled home the winning run in the bottom of the 11th inning to lead the San Francisco Giants past the Arizona Diamondbacks 3-2 on Sunday.
Pagan singled sharply off Joe Thatcher (3-2) after Hector Sanchez singled and Gregor Blanco reached safely on a fielder's choice. Pinch runner Ehire Adrianza beat the throw home.
Javier Lopez (3-2) got the win. Sanchez also drove in a run for the Giants, who split the series with Arizona.
Eric Chavez and A.J. Pollack each drove in runs for the Diamondbacks, who had won three of their last four.
Giants starter Madison Bumgarner threw six shutout innings, allowing four hits. He struck out nine and did not walk a batter. Bumgarner remains winless over his last seven starts.
Diamondbacks starter Wade Miley went seven innings, allowing two runs on five hits. He walked two and struck out three.
Arizona manager Kirk Gibson was ejected from the game for arguing a call at first base in which Tom Hallion reversed his call after consulting with the other umpires.
Joaquin Arias singled to lead off the eighth for the Giants and went to second on Tony Abreu's sacrifice bunt. He was left there.
Matt Davidson walked to lead off the ninth for the Diamondbacks but pinch runner Tony Campana was caught stealing. Miguel Montero followed with a single but was stranded.
Miley retired nine of the first 10 hitters he faced before running into trouble in the fourth.
Tony Abreu walked and Buster Posey doubled to open the inning. One out later, Sanchez bumped a single into right field to score one run. Posey scored on a wild pitch later in the inning.
Pollack doubled with one out in the first, the furthest any Diamondback advanced against Bumgarner, who proceeded to strike out five in a row. He set down 10 of the final 11 batters he faced.
The Diamondbacks rallied against Santiago Casilla in the eighth. Chris Owings singled and went to second on a wild pitch. Adam Eaton followed with a single and advanced to second on the throw.
Chavez hit a sacrifice fly, his sixth pinch hit RBI. Pollack singled to drive in the tying run.
NOTES: OF Hunter Pence needs a home run to become the first Giants player to record at least 20 home runs and 20 steals in a season since Barry Bonds did it in 1998. ... The Giants sold out their 237th regular season home game despite the San Francisco 49ers hosting the Green Bay Packers in their regular-season opener. ... RHP Tim Lincecum (9-13, 4.50) makes the start for the Giants on Monday night when the Colorado Rockies come to two to open a three-game set. He's 0-2 with an 8.00 ERA against the Rockies this year. ... Bumgarner is 17-1 when getting at least two runs of support and striking out at least eight. ... The Diamondbacks will start RHP Randall Delgado (4-5, 3.69) in their opener against the Dodgers in Los Angeles on Monday. He's allowed three earned runs or less in 12 of his 15 career starts. ... Arizona IF Martin Prado missed his second straight game with an illness. ... Diamondbacks' IF Cliff Pennington returned to Arizona after the game to be with his wife, who will undergo induced labor on Monday.