EW 7520 then LA 5788 at Barcelona
Hamburg → Barcelona → Santiago de Compostela
Timetable, Barcelona time
18:20EW 7520 from Hamburg at the gate
13:35LA 5788 to Santiago de Compostela leaves the gate
19 h 15 apart on the timetable, overnight
LA 5788 leaves 19 h 15 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.