KL 904 then KL 1317 at Schiphol
Inverness → Amsterdam → Warsaw
Timetable, Amsterdam time
18:50KL 904 from Inverness at the gate
17:00KL 1317 to Warsaw leaves the gate
22 h 10 apart on the timetable, overnight
KL 1317 leaves 22 h 10 after KL 904 arrives on the timetable: more than half a day, so not a connection we count.