U2 3217 then QR 3683 at Barcelona
Edinburgh → Barcelona → Santander
Timetable, Barcelona time
18:40U2 3217 from Edinburgh at the gate
16:05QR 3683 to Santander leaves the gate
21 h 25 apart on the timetable, overnight
QR 3683 leaves 21 h 25 after U2 3217 arrives on the timetable: more than half a day, so not a connection we count.