FR 9704 then FR 790 at Lisbon
Vienna → Lisbon → Bologna
Timetable, Lisbon time
10:05FR 9704 from Vienna at the gate
09:00FR 790 to Bologna leaves the gate
22 h 55 apart on the timetable, overnight
FR 790 leaves 22 h 55 after FR 9704 arrives on the timetable: more than half a day, so not a connection we count.