PHOENIX (AP) - Miguel Montero had three hits and the Arizona Diamondbacks scored nine runs in the second and third innings to drive Matt Cain out of the game, dampening San Francisco's NL wild card chances with a 10-8 victory Tuesday night.
The Giants fell five games behind wild-card lead Colorado, which beat San Diego on Tuesday, and dropped into a three-way tie with Atlanta and Florida with 11 games to play.
Arizona third baseman Mark Reynolds struck out three times to break his own major league record for strikeouts in a season with 206. He had 204 last season.
San Francisco (81-70) built a 3-0 lead, the last two runs coming on Cain's first major league triple in the second inning, before Arizona scored three runs in its second and six more in the third to lead 9-4.
Cain (13-7) gave up seven runs and eight hits in 2 1-3 innings, his shortest start of the season not curtailed by injury. His ERA jumped to 2.99.
Montero had two RBIs and Brandon Allen had two hits and two RBIs for Arizona, which broke a three-game losing streak. Arizona (66-86) had won only four of its previous 17 games.
Rusty Ryal had three hits, including a home run off reliever Randy Johnson, and scored three runs.
Justin Upton had two hits and Gerardo Parra had a double and two RBIs.
Pablo Sandoval had three hits and three RBIs, and his two-run triple in the ninth inning off Juan Gutierrez cut Arizona's lead to 10-7. Sandoval scored on Randy Winn's sacrifice fly before Gutierrez retired the final two batters.
Sandoval has 18 hits in 34 at-bats at Chase Field this season.
Eugenio Velez and Andres Torres had three hits.
Doug Davis (8-13) settled down after giving up four runs in the first two innings. He allowed 10 hits and five runs in 7 1-3 innings to win for the first time since Aug. 10. He was 0-3 with four no-decisions in his previous seven starts.
The umpires used instant replay to change the ruling on a hit originally called a two-run home run by Parra in the third.
With Montero on first base, Parra hit a fly ball to deep right-center field that appeared to land just beyond the fence near the 413-foot sign. First base umpire Marty Foster signaled a home run.
San Francisco center fielder Aaron Rowand immediately ran toward
the infield to argue, and crew chief Wally Bell reversed the ruling after watching a replay that seemed to indicate the ball hit the top of the fence and bounced back onto the field.
Parra was given a double, but Montero was permitted to score.
Copyright 2014 Associated Press. All rights reserved. This material may not be published, broadcast, rewritten, or redistributed.