SECOND AMENDED AND RESTATED CREDIT AGREEMENT dated as of July 28, 2017 among AMC NETWORKS INC., as the Company and an initial Borrower, AMC NETWORK ENTERTAINMENT LLC, as an initial Borrower, CERTAIN SUBSIDIARIES OF THE COMPANY, as Restricted...