FR 2064 then FR 5356 at Madrid
Palma de Mallorca → Madrid → Krakow
Timetable, Madrid time
23:00FR 2064 from Palma de Mallorca at the gate
14:45FR 5356 to Krakow leaves the gate
15 h 45 apart on the timetable, overnight
FR 5356 leaves 15 h 45 after FR 2064 arrives on the timetable: more than half a day, so not a connection we count.