W6 4401 then FR 725 at Madrid
Sofia → Madrid → Palermo
Timetable, Madrid time
19:50W6 4401 from Sofia at the gate
19:10FR 725 to Palermo leaves the gate
23 h 20 apart on the timetable, overnight
FR 725 leaves 23 h 20 after W6 4401 arrives on the timetable: more than half a day, so not a connection we count.