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