FR 1587 then FR 3766 at Vienna
Valletta → Vienna → Sofia
Timetable, Vienna time
16:00FR 1587 from Valletta at the gate
13:25FR 3766 to Sofia leaves the gate
21 h 25 apart on the timetable, overnight
FR 3766 leaves 21 h 25 after FR 1587 arrives on the timetable: more than half a day, so not a connection we count.