A3 981 then A3 790 at Athens
Sofia → Athens → Ljubljana
Timetable, Athens time
12:30A3 981 from Sofia at the gate
07:55A3 790 to Ljubljana leaves the gate
19 h 25 apart on the timetable, overnight
A3 790 leaves 19 h 25 after A3 981 arrives on the timetable: more than half a day, so not a connection we count.