FR 5322 then QS 1057 at Madrid
Milan → Madrid → Prague
Timetable, Madrid time
19:45FR 5322 from Milan at the gate
13:55QS 1057 to Prague leaves the gatealso UX 3853
18 h 10 apart on the timetable, overnight
QS 1057 leaves 18 h 10 after FR 5322 arrives on the timetable: more than half a day, so not a connection we count.