QR 3759 then FR 5252 at Barcelona
Amsterdam → Barcelona → Krakow
Timetable, Barcelona time
21:55QR 3759 from Amsterdam at the gate
19:05FR 5252 to Krakow leaves the gate
21 h 10 apart on the timetable, overnight
FR 5252 leaves 21 h 10 after QR 3759 arrives on the timetable: more than half a day, so not a connection we count.