FR 8859 then FR 4166 at Lisbon
Budapest → Lisbon → Vienna
Timetable, Lisbon time
17:30FR 8859 from Budapest at the gate
11:40FR 4166 to Vienna leaves the gate
18 h 10 apart on the timetable, overnight
FR 4166 leaves 18 h 10 after FR 8859 arrives on the timetable: more than half a day, so not a connection we count.