HV 5132 then IB 1346 at Schiphol
Barcelona → Amsterdam → Madrid
Timetable, Amsterdam time
16:50HV 5132 from Barcelona at the gate
15:50IB 1346 to Madrid leaves the gate
23 h apart on the timetable, overnight
IB 1346 leaves 23 h after HV 5132 arrives on the timetable: more than half a day, so not a connection we count.