SQ 387 then VY 1208 at Barcelona
Madrid → Barcelona → Stuttgart
Timetable, Barcelona time
11:15SQ 387 from Madrid at the gate
06:30VY 1208 to Stuttgart leaves the gatealso IB 5394, LL 5394
19 h 15 apart on the timetable, overnight
VY 1208 leaves 19 h 15 after SQ 387 arrives on the timetable: more than half a day, so not a connection we count.