EC 7152 then QR 3577 at Barcelona
Milan → Barcelona → Berlin
Timetable, Barcelona time
16:55EC 7152 from Milan at the gate
14:00QR 3577 to Berlin leaves the gate
21 h 05 apart on the timetable, overnight
QR 3577 leaves 21 h 05 after EC 7152 arrives on the timetable: more than half a day, so not a connection we count.