FR 6409 then FR 690 at Madrid
Sofia → Madrid → Vienna
Timetable, Madrid time
20:10FR 6409 from Sofia at the gate
09:45FR 690 to Vienna leaves the gate
13 h 35 apart on the timetable, overnight
FR 690 leaves 13 h 35 after FR 6409 arrives on the timetable: more than half a day, so not a connection we count.