LA 5742 then EC 7151 at Barcelona
Amsterdam → Barcelona → Milan
Timetable, Barcelona time
09:20LA 5742 from Amsterdam at the gate
07:30EC 7151 to Milan leaves the gate
22 h 10 apart on the timetable, overnight
EC 7151 leaves 22 h 10 after LA 5742 arrives on the timetable: more than half a day, so not a connection we count.