EC 1009 then QR 3683 at Barcelona
Basel → Barcelona → Santander
Timetable, Barcelona time
19:45EC 1009 from Basel at the gate
16:05QR 3683 to Santander leaves the gate
20 h 20 apart on the timetable, overnight
QR 3683 leaves 20 h 20 after EC 1009 arrives on the timetable: more than half a day, so not a connection we count.