EC 7154 then IB 5078 at Barcelona
Milan → Barcelona → Lisbon
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
19:20IB 5078 to Lisbon leaves the gate
20 h 05 apart on the timetable, overnight
IB 5078 leaves 20 h 05 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.