FR 4097 then FR 6814 at Manchester
Riga → Manchester → Madrid
Timetable, Manchester time
22:25FR 4097 from Riga at the gate
15:55FR 6814 to Madrid leaves the gate
17 h 30 apart on the timetable, overnight
FR 6814 leaves 17 h 30 after FR 4097 arrives on the timetable: more than half a day, so not a connection we count.