IB 1402 then QR 152 at Madrid
Valencia → Madrid → Doha
Timetable, Madrid time
01:35IB 1402 from Valencia at the gate
22:05QR 152 to Doha leaves the gate
20 h 30 apart on the timetable
QR 152 leaves 20 h 30 after IB 1402 arrives on the timetable: more than half a day, so not a connection we count.