EC 7154 then QR 3637 at Barcelona
Milan → Barcelona → Rome
Timetable, Barcelona time
23:15EC 7154 from Milan at the gate
18:25QR 3637 to Rome leaves the gatealso IB 5768, LL 5768
19 h 10 apart on the timetable, overnight
QR 3637 leaves 19 h 10 after EC 7154 arrives on the timetable: more than half a day, so not a connection we count.