EC 7154 then AD 7285 at Barcelona
Milan → Barcelona → Lisbon
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:05AD 7285 to Lisbon leaves the gatealso S4 8715
18 h 50 apart on the timetable, overnight
AD 7285 leaves 18 h 50 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.