NEW YORK (AP) — Nick Markakis had an RBI single in the ninth inning against fill-in closer Shawn Kelley, and the Baltimore Orioles rallied for a 5-4 victory Wednesday night over the New York Yankees after wasting a three-run lead against Masahiro Tanaka.

Jonathan Schoop hit a three-run homer off Tanaka in the second inning of his first start at Yankee Stadium but Carlos Beltran and Kelly Johnson connected against Miguel Gonzalez in the bottom of the inning.

The Orioles, who managed seven hits while striking out 10 times against Tananka in seven innings, lined four straight singles to center field off Kelley (0-1).

Tommy Hunter gave up a run before getting Yangervis Solarte to ground into a double play for his third save. Brian Matusz got two outs (1-0) for the win.

More From 104.5 THE TEAM