FR 9471 then FR 2061 at Madrid
Pisa → Madrid → Palma de Mallorca
Timetable, Madrid time
12:25FR 9471 from Pisa at the gate
06:00FR 2061 to Palma de Mallorca leaves the gate
17 h 35 apart on the timetable, overnight
FR 2061 leaves 17 h 35 after FR 9471 arrives on the timetable: more than half a day, so not a connection we count.