DY 8480 then FR 4616 at Arlanda
Riga → Stockholm → Gdansk
Timetable, Stockholm time
09:10DY 8480 from Riga at the gate
06:05FR 4616 to Gdansk leaves the gate
20 h 55 apart on the timetable, overnight
FR 4616 leaves 20 h 55 after DY 8480 arrives on the timetable: more than half a day, so not a connection we count.