FR 3813 then IB 1401 at Madrid
Bologna → Madrid → Valencia
Timetable, Madrid time
13:05FR 3813 from Bologna at the gate
11:30IB 1401 to Valencia leaves the gate
22 h 25 apart on the timetable, overnight
IB 1401 leaves 22 h 25 after FR 3813 arrives on the timetable: more than half a day, so not a connection we count.