FR 835 then QR 3625 at Barcelona
Vilnius → Barcelona → Cagliari
Timetable, Barcelona time
09:15FR 835 from Vilnius at the gate
21:20QR 3625 to Cagliari leaves the gate
12 h 05 apart on the timetable
QR 3625 leaves 12 h 05 after FR 835 arrives on the timetable: more than half a day, so not a connection we count.