EC 7174 then IB 422 at Barcelona
Berlin → Barcelona → Madrid
Timetable, Barcelona time
23:05EC 7174 from Berlin at the gate
19:55IB 422 to Madrid leaves the gatealso LA 1588, CX 1820, LL 3022, VY 5096, AV 6149, QR 8069
20 h 50 apart on the timetable, overnight
IB 422 leaves 20 h 50 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.