KL 864 then U2 7837 at Schiphol
Tokyo → Amsterdam → Edinburgh
Timetable, Amsterdam time
15:00KL 864 from Tokyo at the gate
11:40U2 7837 to Edinburgh leaves the gate
20 h 40 apart on the timetable, overnight
U2 7837 leaves 20 h 40 after KL 864 arrives on the timetable: more than half a day, so not a connection we count.