EW 7520 then QR 3513 at Barcelona
Hamburg → Barcelona → Granada
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
14:30QR 3513 to Granada leaves the gate
19 h 45 apart on the timetable, overnight
QR 3513 leaves 19 h 45 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.