EW 520 then VY 1630 at Barcelona
Cologne → Barcelona → Santiago de Compostela
Timetable, Barcelona time
16:50EW 520 from Cologne at the gate
16:00VY 1630 to Santiago de Compostela leaves the gatealso QR 3539, IB 5209, LL 5209
23 h 10 apart on the timetable, overnight
VY 1630 leaves 23 h 10 after EW 520 arrives on the timetable: more than half a day, so not a connection we count.