Brendan Ryan scored on a wild pitch before John Ryan Murphy capped a two-run 13th inning with an RBI single, and the New York Yankees beat the Cubs 4-2 Wednesday after Chicago wasted another dominant start by Jeff Samardzija.

Junior Lake #21 of the Chicago Cubs steals second base as Derek Jeter #2 of the New York Yankees makes a tag during the first inning on May 21, 2014 at Wrigley Field in Chicago, Illinois. (Photo by David Banks/Getty Images)

New York scored two in the ninth against Hector Rondon to wipe out a 2-0 deficit. Samardzija pitched four-hit ball over seven innings.

Ryan started the winning rally with a leadoff single against Jose Veras (0-1). Yangervis Solarte walked, and the runners moved up on a sacrifice bunt by Preston Claiborne (2-0) toward third.

Ryan came home when Veras threw a pitch over Murphy's head, and Murphy drove in Solarte with a single to right to make it 4-2. The Yankees had runners on second and third with two out when Derek Jeter grounded out to end the rally.

© 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed. Learn more about our Privacy Policy and Terms of Use.