FR 726 then IB 797 at Madrid
Palermo → Madrid → Vienna
Timetable, Madrid time
21:15FR 726 from Palermo at the gate
19:55IB 797 to Vienna leaves the gate
22 h 40 apart on the timetable, overnight
IB 797 leaves 22 h 40 after FR 726 arrives on the timetable: more than half a day, so not a connection we count.