FR 5316 then IB 2326 at Madrid
Rome → Madrid → La Seu d'Urgell
Timetable, Madrid time
23:40FR 5316 from Rome at the gate
14:45IB 2326 to La Seu d'Urgell leaves the gatealso VY 5726
15 h 05 apart on the timetable, overnight
IB 2326 leaves 15 h 05 after FR 5316 arrives on the timetable: more than half a day, so not a connection we count.