FR 3813 then TP 1015 at Madrid
Bologna → Madrid → Lisbon
Timetable, Madrid time
21:35FR 3813 from Bologna at the gate
14:55TP 1015 to Lisbon leaves the gate
17 h 20 apart on the timetable, overnight
TP 1015 leaves 17 h 20 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.