BA 965 then BA 247 at Heathrow
Hamburg → London → São Paulo
Timetable, London time
21:30BA 965 from Hamburg at the gate
21:15BA 247 to São Paulo leaves the gate
23 h 45 apart on the timetable, overnight
BA 247 leaves 23 h 45 after BA 965 arrives on the timetable: more than half a day, so not a connection we count.