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