W6 4405 then QR 3683 at Barcelona
Sofia → Barcelona → Santander
Timetable, Barcelona time
18:55W6 4405 from Sofia at the gate
16:05QR 3683 to Santander leaves the gate
21 h 10 apart on the timetable, overnight
QR 3683 leaves 21 h 10 after W6 4405 arrives on the timetable: more than half a day, so not a connection we count.