BY 4733 then U2 871 at Gatwick
Palma de Mallorca → London → Glasgow
Timetable, London time
12:40BY 4733 from Palma de Mallorca at the gate
07:05U2 871 to Glasgow leaves the gate
18 h 25 apart on the timetable, overnight
U2 871 leaves 18 h 25 after BY 4733 arrives on the timetable: more than half a day, so not a connection we count.