FR 3040 then AD 7243 at Barcelona
Prague → Barcelona → Lisbon
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
21:10AD 7243 to Lisbon leaves the gatealso S4 8711
23 h 55 apart on the timetable, overnight
AD 7243 leaves 23 h 55 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.