EC 7154 then VY 1074 at Barcelona
Milan → Barcelona → Berlin
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:00VY 1074 to Berlin leaves the gatealso QR 3613, IB 5018, LL 5018
18 h 45 apart on the timetable, overnight
VY 1074 leaves 18 h 45 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.