FR 3036 then QR 3619 at Barcelona
Krakow → Barcelona → Bari
Timetable, Barcelona time
20:35FR 3036 from Krakow at the gate
18:15QR 3619 to Bari leaves the gate
21 h 40 apart on the timetable, overnight
QR 3619 leaves 21 h 40 after FR 3036 arrives on the timetable: more than half a day, so not a connection we count.