EW 7520 then VY 1146 at Barcelona
Hamburg → Barcelona → Lisbon
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
12:15VY 1146 to Lisbon leaves the gatealso QR 4685
17 h 30 apart on the timetable, overnight
VY 1146 leaves 17 h 30 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.