EC 7646 then FR 1798 at Lisbon
Madrid → Lisbon → Toulouse
Timetable, Lisbon time
18:25EC 7646 from Madrid at the gate
15:30FR 1798 to Toulouse leaves the gate
21 h 05 apart on the timetable, overnight
FR 1798 leaves 21 h 05 after EC 7646 arrives on the timetable: more than half a day, so not a connection we count.