LA 5741 then QR 3720 at Barcelona
Lisbon → Barcelona → Hamburg
Timetable, Barcelona time
23:55LA 5741 from Lisbon at the gate
17:05QR 3720 to Hamburg leaves the gate
17 h 10 apart on the timetable, overnight
QR 3720 leaves 17 h 10 after LA 5741 arrives on the timetable: more than half a day, so not a connection we count.