EW 2520 then IB 5062 at Barcelona
Stuttgart → Barcelona → Granada
Timetable, Barcelona time
14:25EW 2520 from Stuttgart at the gate
12:00IB 5062 to Granada leaves the gate
21 h 35 apart on the timetable, overnight
IB 5062 leaves 21 h 35 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.