QR 3522 then W6 1706 at Barcelona
Málaga → Barcelona → Gdansk
Timetable, Barcelona time
01:20QR 3522 from Málaga at the gate
20:20W6 1706 to Gdansk leaves the gate
19 h apart on the timetable
W6 1706 leaves 19 h after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.