FR 270 then QR 3642 at Barcelona
Milan → Barcelona → Hamburg
Timetable, Barcelona time
17:55FR 270 from Milan at the gate
17:45QR 3642 to Hamburg leaves the gate
23 h 50 apart on the timetable, overnight
QR 3642 leaves 23 h 50 after FR 270 arrives on the timetable: more than half a day, so not a connection we count.