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