FR 5383 then FR 997 at Madrid
Valletta → Madrid → Wroclaw
Timetable, Madrid time
12:20FR 5383 from Valletta at the gate
05:45FR 997 to Wroclaw leaves the gate
17 h 25 apart on the timetable, overnight
FR 997 leaves 17 h 25 after FR 5383 arrives on the timetable: more than half a day, so not a connection we count.