FR 5691 then IB 1346 at Schiphol
Málaga → Amsterdam → Madrid
Timetable, Amsterdam time
18:30FR 5691 from Málaga at the gate
15:50IB 1346 to Madrid leaves the gate
21 h 20 apart on the timetable, overnight
IB 1346 leaves 21 h 20 after FR 5691 arrives on the timetable: more than half a day, so not a connection we count.