EC 7174 then FR 3035 at Barcelona
Berlin → Barcelona → Krakow
Timetable, Barcelona time
18:35EC 7174 from Berlin at the gate
17:30FR 3035 to Krakow leaves the gate
22 h 55 apart on the timetable, overnight
FR 3035 leaves 22 h 55 after EC 7174 arrives on the timetable: more than half a day, so not a connection we count.