FR 7350 then FR 3193 at Barcelona
Vienna → Barcelona → Riga
Timetable, Barcelona time
18:30FR 7350 from Vienna at the gate
16:20FR 3193 to Riga leaves the gate
21 h 50 apart on the timetable, overnight
FR 3193 leaves 21 h 50 after FR 7350 arrives on the timetable: more than half a day, so not a connection we count.