QR 3716 then FR 149 at Barcelona
Rome → Barcelona → Berlin
Timetable, Barcelona time
14:25QR 3716 from Rome at the gate
14:20FR 149 to Berlin leaves the gate
23 h 55 apart on the timetable, overnight
FR 149 leaves 23 h 55 after QR 3716 arrives on the timetable: more than half a day, so not a connection we count.