EW 8602 then FR 8858 at Lisbon
Berlin → Lisbon → Budapest
Timetable, Lisbon time
13:50EW 8602 from Berlin at the gate
06:40FR 8858 to Budapest leaves the gate
16 h 50 apart on the timetable, overnight
FR 8858 leaves 16 h 50 after EW 8602 arrives on the timetable: more than half a day, so not a connection we count.