HV 5956 then IB 1344 at Schiphol
Lisbon → Amsterdam → Madrid
Timetable, Amsterdam time
23:25HV 5956 from Lisbon at the gate
19:55IB 1344 to Madrid leaves the gate
20 h 30 apart on the timetable, overnight
IB 1344 leaves 20 h 30 after HV 5956 arrives on the timetable: more than half a day, so not a connection we count.