BA 4288 then AY 5565 at Madrid
Almeria → Madrid → Pamplona
Timetable, Madrid time
08:25BA 4288 from Almeria at the gatealso VY 5590, AY 5618, QR 6533
07:55AY 5565 to Pamplona leaves the gatealso VY 5613, AV 6062, QR 8059, AA 8823
23 h 30 apart on the timetable, overnight
AY 5565 leaves 23 h 30 after BA 4288 arrives on the timetable: more than half a day, so not a connection we count.