W4 7451 then IB 2296 at Madrid
Santiago de Compostela → Madrid → Melilla
Timetable, Madrid time
13:00W4 7451 from Santiago de Compostela at the gate
12:35IB 2296 to Melilla leaves the gatealso VY 5696
23 h 35 apart on the timetable, overnight
IB 2296 leaves 23 h 35 after W4 7451 arrives on the timetable: more than half a day, so not a connection we count.