FR 6814 then LO 4763 at Madrid
Manchester → Madrid → Lisbon
Timetable, Madrid time
23:55FR 6814 from Manchester at the gate
18:00LO 4763 to Lisbon leaves the gate
18 h 05 apart on the timetable, overnight
LO 4763 leaves 18 h 05 after FR 6814 arrives on the timetable: more than half a day, so not a connection we count.