W6 2047 then QR 3516 at Barcelona
Krakow → Barcelona → Málaga
Timetable, Barcelona time
08:25W6 2047 from Krakow at the gate
20:55QR 3516 to Málaga leaves the gate
12 h 30 apart on the timetable
QR 3516 leaves 12 h 30 after W6 2047 arrives on the timetable: more than half a day, so not a connection we count.