IB 138 then SK 6707 at Madrid
Quito → Madrid → Amsterdam
Timetable, Madrid time
17:20IB 138 from Quito at the gate
17:00SK 6707 to Amsterdam leaves the gate
23 h 40 apart on the timetable, overnight
SK 6707 leaves 23 h 40 after IB 138 arrives on the timetable: more than half a day, so not a connection we count.