Down 2-1, Adrian Beltre socked a two run homer in the fifth, putting the Rangers on top, then drove in another run with an infield single as the Rangers tacked on six runs in the seventh inning.

The Astros, finished second in the division and will be the second wild card, losing to Arizona, 5-3, on Sunday. Both the Astros and Yankees backed into the playoffs, but moreso the Yankees, as they lost for the sixth time in their last seven games, demolished by the Orioles, 9-4, losing three straight to the Orioles at Camden Yards.

The Astros travel to play the Yankees in the wild card game, Tuesday night at Yankees stadium.

National League

The Pittsburgh Pirates will face the Chicago Cubs at PNC Park in Pittsburgh on Wednesday as the Pirates finished one game better than the Cubs in the NL Central, taking home field for the wild card game, with a 4-0 win over Cincinnati.

J.A. Happ held the Reds scoreless on three hits over six innings to get the win, improving to 7-2 on the year. The Pirates scored single runs in the first, fourth, sixth and seventh innings. Pedro Alvarez socked his 27th homer of the season in the fourth.

The Cubs did their part to make the final day of the season interesting, whipping the Brewers 3-1. Chicago enters the post-season red-hot, winners of their last eight in a row.

Chicago finished 97-65. Pittsburgh was 98-64. Despite their designation as wild cards, the Pirates and Cubs had the second and third-best records in the league behind St. Louis, which ended the season with the best record in the majors, at 100-62, despite dropping both ends of a double-header at Atlanta on Sunday.