EW 520 then QR 3614 at Barcelona
Cologne → Barcelona → Berlin
Timetable, Barcelona time
16:50EW 520 from Cologne at the gate
14:50QR 3614 to Berlin leaves the gate
22 h apart on the timetable, overnight
QR 3614 leaves 22 h after EW 520 arrives on the timetable: more than half a day, so not a connection we count.