U2 8784 then VY 7617 at Gatwick
Prague → London → Barcelona
Timetable, London time
22:10U2 8784 from Prague at the gate
16:25VY 7617 to Barcelona leaves the gate
18 h 15 apart on the timetable, overnight
VY 7617 leaves 18 h 15 after U2 8784 arrives on the timetable: more than half a day, so not a connection we count.