A3 981 then GQ 874 at Athens
Sofia → Athens → Berlin
Timetable, Athens time
12:30A3 981 from Sofia at the gate
12:00GQ 874 to Berlin leaves the gate
23 h 30 apart on the timetable, overnight
GQ 874 leaves 23 h 30 after A3 981 arrives on the timetable: more than half a day, so not a connection we count.