GQ 681 then A3 4034 at Athens
Sofia → Athens → Madrid
Timetable, Athens time
21:55GQ 681 from Sofia at the gate
17:00A3 4034 to Madrid leaves the gate
19 h 05 apart on the timetable, overnight
A3 4034 leaves 19 h 05 after GQ 681 arrives on the timetable: more than half a day, so not a connection we count.