EC 7174 then EC 1010 at Barcelona
Berlin → Barcelona → Basel
Timetable, Barcelona time
23:05EC 7174 from Berlin at the gate
20:30EC 1010 to Basel leaves the gate
21 h 25 apart on the timetable, overnight
EC 1010 leaves 21 h 25 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.