8F 508 then EW 7603 at Lisbon
Sao Tome → Lisbon → Hamburg
Timetable, Lisbon time
14:058F 508 from Sao Tome at the gate
10:45EW 7603 to Hamburg leaves the gate
20 h 40 apart on the timetable, overnight
EW 7603 leaves 20 h 40 after 8F 508 arrives on the timetable: more than half a day, so not a connection we count.