EW 7520 then QR 4686 at Barcelona
Hamburg → Barcelona → Lisbon
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
15:40QR 4686 to Lisbon leaves the gatealso IB 5114, LL 5114
21 h 20 apart on the timetable, overnight
QR 4686 leaves 21 h 20 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.