EC 7174 then IB 5940 at Barcelona
Berlin → Barcelona → Nice
Timetable, Barcelona time
23:05EC 7174 from Berlin at the gate
19:50IB 5940 to Nice leaves the gatealso LL 5940, VY 8136
20 h 45 apart on the timetable, overnight
IB 5940 leaves 20 h 45 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.