 Complete the following phrase:  The Cubs finished the season with the third-best record in baseball 9765 which was also the third-best in their division, finishing one game behind the Pittsburgh Pirates 9864 and three games behind the division winner, the rival St. Louis Cardinals 10062. As a result, they qualified for the second wild card spot for the postseason, their first postseason appearance since 2008, and defeated the Pirates in the National League Wild Card Game to advance to the National League Division Series against the Cardinals. The Cubs defeated St. Louis three games to one to advance to the 