EC 7174 then EC 1298 at Barcelona
Berlin → Barcelona → Geneva
Timetable, Barcelona time
23:05EC 7174 from Berlin at the gate
21:15EC 1298 to Geneva leaves the gate
22 h 10 apart on the timetable, overnight
EC 1298 leaves 22 h 10 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.