FR 2052 then FR 997 at Madrid
Palma de Mallorca → Madrid → Wroclaw
Timetable, Madrid time
16:50FR 2052 from Palma de Mallorca at the gate
11:05FR 997 to Wroclaw leaves the gate
18 h 15 apart on the timetable, overnight
FR 997 leaves 18 h 15 after FR 2052 arrives on the timetable: more than half a day, so not a connection we count.