QR 183 then FR 689 at Vienna
Doha → Vienna → Madrid
Timetable, Vienna time
13:10QR 183 from Doha at the gate
06:00FR 689 to Madrid leaves the gate
16 h 50 apart on the timetable, overnight
FR 689 leaves 16 h 50 after QR 183 arrives on the timetable: more than half a day, so not a connection we count.