DY 3658 then QR 3516 at Barcelona
Copenhagen → Barcelona → Málaga
Timetable, Barcelona time
20:00DY 3658 from Copenhagen at the gate
19:45QR 3516 to Málaga leaves the gate
23 h 45 apart on the timetable, overnight
QR 3516 leaves 23 h 45 after DY 3658 arrives on the timetable: more than half a day, so not a connection we count.