FR 3036 then QR 3516 at Barcelona
Krakow → Barcelona → Málaga
Timetable, Barcelona time
20:35FR 3036 from Krakow at the gate
19:25QR 3516 to Málaga leaves the gate
22 h 50 apart on the timetable, overnight
QR 3516 leaves 22 h 50 after FR 3036 arrives on the timetable: more than half a day, so not a connection we count.