EW 2520 then QR 3625 at Barcelona
Stuttgart → Barcelona → Cagliari
Timetable, Barcelona time
08:35EW 2520 from Stuttgart at the gate
21:20QR 3625 to Cagliari leaves the gate
12 h 45 apart on the timetable
QR 3625 leaves 12 h 45 after EW 2520 arrives on the timetable: more than half a day, so not a connection we count.