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