FR 5515 then FR 2063 at Madrid
Krakow → Madrid → Palma de Mallorca
Timetable, Madrid time
09:20FR 5515 from Krakow at the gate
06:00FR 2063 to Palma de Mallorca leaves the gate
20 h 40 apart on the timetable, overnight
FR 2063 leaves 20 h 40 after FR 5515 arrives on the timetable: more than half a day, so not a connection we count.