DY 5502 then FR 4642 at Arlanda
Barcelona → Stockholm → Riga
Timetable, Stockholm time
18:25DY 5502 from Barcelona at the gate
16:45FR 4642 to Riga leaves the gate
22 h 20 apart on the timetable, overnight
FR 4642 leaves 22 h 20 after DY 5502 arrives on the timetable: more than half a day, so not a connection we count.