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