DY 5503 then QR 3525 at Barcelona
Stockholm → Barcelona → Granada
Timetable, Barcelona time
22:15DY 5503 from Stockholm at the gate
20:20QR 3525 to Granada leaves the gate
22 h 05 apart on the timetable, overnight
QR 3525 leaves 22 h 05 after DY 5503 arrives on the timetable: more than half a day, so not a connection we count.