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