FR 3977 then QR 3642 at Barcelona
Dublin → Barcelona → Hamburg
Timetable, Barcelona time
21:10FR 3977 from Dublin at the gate
17:50QR 3642 to Hamburg leaves the gate
20 h 40 apart on the timetable, overnight
QR 3642 leaves 20 h 40 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.