Pagination using ROW_NUMBER with a CTE In SQL Server