U2 860 then VY 7625 at Gatwick
Edinburgh → London → Barcelona
Timetable, London time
08:35U2 860 from Edinburgh at the gate
20:45VY 7625 to Barcelona leaves the gate
12 h 10 apart on the timetable
VY 7625 leaves 12 h 10 after U2 860 arrives on the timetable: more than half a day, so not a connection we count.