FR 5383 then EW 3181 at Madrid
Valletta → Madrid → Prague
Timetable, Madrid time
20:05FR 5383 from Valletta at the gate
13:55EW 3181 to Prague leaves the gate
17 h 50 apart on the timetable, overnight
EW 3181 leaves 17 h 50 after FR 5383 arrives on the timetable: more than half a day, so not a connection we count.