PHOENIX – Christian Koss hit a two-run double in a five-run 11th inning, and the San Francisco Giants spoiled a nine-inning, one-hit start by Arizona’s Brandon Pfaadt, beating the Diamondbacks 5-1 on Wednesday to end a four-game skid.

The Giants (76-76) moved within 2 1/2 games of the Mets, who played later Wednesday, for the final NL wild card, while the Diamondbacks (77-76) fell two games behind New York.

Pfaadt didn’t allow a hit until rookie Drew Gilbert’s one-out single in the sixth. Heliot Ramos hit into a double play two pitches later. The right-hander struck out seven and walked one, throwing 65 of 97 pitches for strikes in the longest of his 81 big league starts.

The Giants’ Justin Verlander allowed three hits and walked two, throwing 107 pitches in seven scoreless innings. Ver

See Full Page