QR 107 then BA 974 at Heathrow
Doha → London → Berlin
Timetable, London time
06:35QR 107 from Doha at the gate
06:05BA 974 to Berlin leaves the gate
23 h 30 apart on the timetable, overnight
BA 974 leaves 23 h 30 after QR 107 arrives on the timetable: more than half a day, so not a connection we count.