FR 4097 then FR 5271 at Manchester
Riga → Manchester → Barcelona
Timetable, Manchester time
10:10FR 4097 from Riga at the gate
08:00FR 5271 to Barcelona leaves the gate
21 h 50 apart on the timetable, overnight
FR 5271 leaves 21 h 50 after FR 4097 arrives on the timetable: more than half a day, so not a connection we count.