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