EW 8460 then BA 490 at Heathrow
Berlin → London → Gibraltar
Timetable, London time
08:00EW 8460 from Berlin at the gate
06:35BA 490 to Gibraltar leaves the gate
22 h 35 apart on the timetable, overnight
BA 490 leaves 22 h 35 after EW 8460 arrives on the timetable: more than half a day, so not a connection we count.