W4 6017 then AZ 2792 at Barcelona
Rome → Barcelona → Alava
Timetable, Barcelona time
09:15W4 6017 from Rome at the gate
09:00AZ 2792 to Alava leaves the gatealso V7 3700
23 h 45 apart on the timetable, overnight
AZ 2792 leaves 23 h 45 after W4 6017 arrives on the timetable: more than half a day, so not a connection we count.