TP 1017 then FR 1798 at Lisbon
Madrid → Lisbon → Toulouse
Timetable, Lisbon time
18:25TP 1017 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 TP 1017 arrives on the timetable: more than half a day, so not a connection we count.