FR 4641 then FR 7678 at Arlanda
Riga → Stockholm → Poznan
Timetable, Stockholm time
14:00FR 4641 from Riga at the gate
12:45FR 7678 to Poznan leaves the gate
22 h 45 apart on the timetable, overnight
FR 7678 leaves 22 h 45 after FR 4641 arrives on the timetable: more than half a day, so not a connection we count.