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