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