EW 2522 then U2 8058 at Barcelona
Stuttgart → Barcelona → London Gatwick
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
19:45U2 8058 to London Gatwick leaves the gate
23 h 45 apart on the timetable, overnight
U2 8058 leaves 23 h 45 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.