FR 3040 then QR 3683 at Barcelona
Prague → Barcelona → Santander
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
16:05QR 3683 to Santander leaves the gate
18 h 50 apart on the timetable, overnight
QR 3683 leaves 18 h 50 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.