HV 5956 then VY 1059 at Schiphol
Lisbon → Amsterdam → Barcelona
Timetable, Amsterdam time
23:25HV 5956 from Lisbon at the gate
16:35VY 1059 to Barcelona leaves the gate
17 h 10 apart on the timetable, overnight
VY 1059 leaves 17 h 10 after HV 5956 arrives on the timetable: more than half a day, so not a connection we count.