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