FR 3040 then TP 1037 at Barcelona
Prague → Barcelona → Lisbon
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
18:05TP 1037 to Lisbon leaves the gate
20 h 50 apart on the timetable, overnight
TP 1037 leaves 20 h 50 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.