FR 9840 then HV 5954 at Lisbon
Cologne → Lisbon → Amsterdam
Timetable, Lisbon time
23:30FR 9840 from Cologne at the gate
16:45HV 5954 to Amsterdam leaves the gate
17 h 15 apart on the timetable, overnight
HV 5954 leaves 17 h 15 after FR 9840 arrives on the timetable: more than half a day, so not a connection we count.