FR 5691 then UX 1098 at Schiphol
Málaga → Amsterdam → Madrid
Timetable, Amsterdam time
18:30FR 5691 from Málaga at the gate
11:00UX 1098 to Madrid leaves the gate
16 h 30 apart on the timetable, overnight
UX 1098 leaves 16 h 30 after FR 5691 arrives on the timetable: more than half a day, so not a connection we count.