FR 4584 then QR 3720 at Barcelona
Porto → Barcelona → Hamburg
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
17:05QR 3720 to Hamburg leaves the gate
22 h 30 apart on the timetable, overnight
QR 3720 leaves 22 h 30 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.