FR 1142 then FR 4024 at Lisbon
Berlin → Lisbon → Krakow
Timetable, Lisbon time
14:20FR 1142 from Berlin at the gate
13:45FR 4024 to Krakow leaves the gate
23 h 25 apart on the timetable, overnight
FR 4024 leaves 23 h 25 after FR 1142 arrives on the timetable: more than half a day, so not a connection we count.