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