U2 848 then EC 8065 at Gatwick
Inverness → London → Barcelona
Timetable, London time
16:45U2 848 from Inverness at the gate
15:35EC 8065 to Barcelona leaves the gate
22 h 50 apart on the timetable, overnight
EC 8065 leaves 22 h 50 after U2 848 arrives on the timetable: more than half a day, so not a connection we count.