HV 5955 then IB 1142 at Lisbon
Amsterdam → Lisbon → Madrid
Timetable, Lisbon time
18:30HV 5955 from Amsterdam at the gate
12:30IB 1142 to Madrid leaves the gate
18 h apart on the timetable, overnight
IB 1142 leaves 18 h after HV 5955 arrives on the timetable: more than half a day, so not a connection we count.