DY 2030 then EW 4600 at Arlanda
Riga → Stockholm → Berlin
Timetable, Stockholm time
14:55DY 2030 from Riga at the gate
13:00EW 4600 to Berlin leaves the gate
22 h 05 apart on the timetable, overnight
EW 4600 leaves 22 h 05 after DY 2030 arrives on the timetable: more than half a day, so not a connection we count.