GQ 841 then IB 834 at Athens
Vienna → Athens → Madrid
Timetable, Athens time
17:10GQ 841 from Vienna at the gate
15:50IB 834 to Madrid leaves the gate
22 h 40 apart on the timetable, overnight
IB 834 leaves 22 h 40 after GQ 841 arrives on the timetable: more than half a day, so not a connection we count.