QR 3665 then IB 406 at Barcelona
Cagliari → Barcelona → Madrid
Timetable, Barcelona time
11:00QR 3665 from Cagliari at the gatealso IB 5799, LL 5799, VY 6115
09:45IB 406 to Madrid leaves the gatealso LL 3006, VY 5038, LA 5436, AV 6001, QR 6850, BA 7079, AA 8680
22 h 45 apart on the timetable, overnight
IB 406 leaves 22 h 45 after QR 3665 arrives on the timetable: more than half a day, so not a connection we count.