EC 1297 then QR 3516 at Barcelona
Geneva → Barcelona → Málaga
Timetable, Barcelona time
20:40EC 1297 from Geneva at the gate
18:05QR 3516 to Málaga leaves the gate
21 h 25 apart on the timetable, overnight
QR 3516 leaves 21 h 25 after EC 1297 arrives on the timetable: more than half a day, so not a connection we count.