FR 6945 then QR 3683 at Barcelona
Warsaw Modlin → Barcelona → Santander
Timetable, Barcelona time
17:00FR 6945 from Warsaw Modlin at the gate
16:05QR 3683 to Santander leaves the gate
23 h 05 apart on the timetable, overnight
QR 3683 leaves 23 h 05 after FR 6945 arrives on the timetable: more than half a day, so not a connection we count.