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