DL 126 then AY 5565 at Madrid
New York JFK → Madrid → Pamplona
Timetable, Madrid time
07:20DL 126 from New York JFK at the gatealso UX 3392, AF 3679, KL 6126
06:45AY 5565 to Pamplona leaves the gatealso VY 5613, AV 6062, QR 8059
23 h 25 apart on the timetable, overnight
AY 5565 leaves 23 h 25 after DL 126 arrives on the timetable: more than half a day, so not a connection we count.