HV 5952 then KL 1507 at Schiphol
Lisbon → Amsterdam → Madrid
Timetable, Amsterdam time
23:35HV 5952 from Lisbon at the gate
17:00KL 1507 to Madrid leaves the gate
17 h 25 apart on the timetable, overnight
KL 1507 leaves 17 h 25 after HV 5952 arrives on the timetable: more than half a day, so not a connection we count.