FR 4641 then FR 4626 at Arlanda
Riga → Stockholm → Krakow
Timetable, Stockholm time
14:00FR 4641 from Riga at the gate
10:40FR 4626 to Krakow leaves the gate
20 h 40 apart on the timetable, overnight
FR 4626 leaves 20 h 40 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.