FR 789 then TP 1038 at Lisbon
Bologna → Lisbon → Barcelona
Timetable, Lisbon time
18:15FR 789 from Bologna at the gate
17:25TP 1038 to Barcelona leaves the gate
23 h 10 apart on the timetable, overnight
TP 1038 leaves 23 h 10 after FR 789 arrives on the timetable: more than half a day, so not a connection we count.