QR 3702 then EW 2523 at Barcelona
Milan → Barcelona → Stuttgart
Timetable, Barcelona time
21:05QR 3702 from Milan at the gate
20:40EW 2523 to Stuttgart leaves the gate
23 h 35 apart on the timetable, overnight
EW 2523 leaves 23 h 35 after QR 3702 arrives on the timetable: more than half a day, so not a connection we count.