HV 5131 then UX 937 at Barcelona
Amsterdam → Barcelona → Madrid
Timetable, Barcelona time
13:35HV 5131 from Amsterdam at the gate
10:45UX 937 to Madrid leaves the gate
21 h 10 apart on the timetable, overnight
UX 937 leaves 21 h 10 after HV 5131 arrives on the timetable: more than half a day, so not a connection we count.