QR 3665 then SQ 388 at Barcelona
Cagliari → Barcelona → Madrid
Timetable, Barcelona time
11:00QR 3665 from Cagliari at the gatealso IB 5799, LL 5799, VY 6115
07:40SQ 388 to Madrid leaves the gate
20 h 40 apart on the timetable, overnight
SQ 388 leaves 20 h 40 after QR 3665 arrives on the timetable: more than half a day, so not a connection we count.