FR 3167 then QR 3522 at Barcelona
Palermo → Barcelona → Hamburg
Timetable, Barcelona time
07:50FR 3167 from Palermo at the gate
07:25QR 3522 to Hamburg leaves the gate
23 h 35 apart on the timetable, overnight
QR 3522 leaves 23 h 35 after FR 3167 arrives on the timetable: more than half a day, so not a connection we count.