IB 5465 then IB 5062 at Barcelona
Lyon → Barcelona → Granada
Timetable, Barcelona time
17:40IB 5465 from Lyon at the gate
12:00IB 5062 to Granada leaves the gate
18 h 20 apart on the timetable, overnight
IB 5062 leaves 18 h 20 after IB 5465 arrives on the timetable: more than half a day, so not a connection we count.