IB 138 then IB 1299 at Madrid
Quito → Madrid → Brussels
Timetable, Madrid time
11:40IB 138 from Quito at the gate
11:15IB 1299 to Brussels leaves the gate
23 h 35 apart on the timetable, overnight
IB 1299 leaves 23 h 35 after IB 138 arrives on the timetable: more than half a day, so not a connection we count.