U2 806 then VY 7623 at Gatwick
Edinburgh → London → Barcelona
Timetable, London time
07:45U2 806 from Edinburgh at the gate
19:55VY 7623 to Barcelona leaves the gate
12 h 10 apart on the timetable
VY 7623 leaves 12 h 10 after U2 806 arrives on the timetable: more than half a day, so not a connection we count.