IB 5407 then IB 5798 at Barcelona
London Gatwick → Barcelona → Cagliari
Timetable, Barcelona time
17:40IB 5407 from London Gatwick at the gatealso LL 5407, VY 7611
07:15IB 5798 to Cagliari leaves the gatealso LL 5798, VY 6114
13 h 35 apart on the timetable, overnight
IB 5798 leaves 13 h 35 after IB 5407 arrives on the timetable: more than half a day, so not a connection we count.