FR 3813 then FR 404 at Madrid
Bologna → Madrid → Palma de Mallorca
Timetable, Madrid time
21:35FR 3813 from Bologna at the gate
20:00FR 404 to Palma de Mallorca leaves the gate
22 h 25 apart on the timetable, overnight
FR 404 leaves 22 h 25 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.