GQ 840 then OS 405 at Vienna
Athens → Vienna → Barcelona
Timetable, Vienna time
17:50GQ 840 from Athens at the gate
17:25OS 405 to Barcelona leaves the gate
23 h 35 apart on the timetable, overnight
OS 405 leaves 23 h 35 after GQ 840 arrives on the timetable: more than half a day, so not a connection we count.