VS 412 then BA 988 at Heathrow
Lagos → London → Berlin
Timetable, London time
15:20VS 412 from Lagos at the gate
15:10BA 988 to Berlin leaves the gate
23 h 50 apart on the timetable, overnight
BA 988 leaves 23 h 50 after VS 412 arrives on the timetable: more than half a day, so not a connection we count.