UX 1042 then FR 2766 at Madrid
Rome → Madrid → Prague
Timetable, Madrid time
18:30UX 1042 from Rome at the gatealso AD 6905
17:35FR 2766 to Prague leaves the gate
23 h 05 apart on the timetable, overnight
FR 2766 leaves 23 h 05 after UX 1042 arrives on the timetable: more than half a day, so not a connection we count.