IB 138 then UX 7703 at Madrid
Quito → Madrid → Barcelona
Timetable, Madrid time
17:20IB 138 from Quito at the gate
15:15UX 7703 to Barcelona leaves the gate
21 h 55 apart on the timetable, overnight
UX 7703 leaves 21 h 55 after IB 138 arrives on the timetable: more than half a day, so not a connection we count.