W6 2377 then QR 3646 at Barcelona
Budapest → Barcelona → Almeria
Timetable, Barcelona time
20:05W6 2377 from Budapest at the gate
12:35QR 3646 to Almeria leaves the gate
16 h 30 apart on the timetable, overnight
QR 3646 leaves 16 h 30 after W6 2377 arrives on the timetable: more than half a day, so not a connection we count.