BA 507 then BA 352 at Heathrow
Lisbon → London → Nice
Timetable, London time
18:40BA 507 from Lisbon at the gate
18:05BA 352 to Nice leaves the gate
23 h 25 apart on the timetable, overnight
BA 352 leaves 23 h 25 after BA 507 arrives on the timetable: more than half a day, so not a connection we count.