EW 2520 then VY 1006 at Barcelona
Stuttgart → Barcelona → Madrid
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
07:30VY 1006 to Madrid leaves the gatealso QR 5524, IB 5990, LL 5990
17 h 05 apart on the timetable, overnight
VY 1006 leaves 17 h 05 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.