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