FB 471 then QS 1057 at Madrid
Sofia → Madrid → Prague
Timetable, Madrid time
17:55FB 471 from Sofia at the gate
13:55QS 1057 to Prague leaves the gate
20 h apart on the timetable, overnight
QS 1057 leaves 20 h after FB 471 arrives on the timetable: more than half a day, so not a connection we count.