FR 9170 then QR 3771 at Barcelona
Stockholm → Barcelona → Basel
Timetable, Barcelona time
14:55FR 9170 from Stockholm at the gate
08:45QR 3771 to Basel leaves the gate
17 h 50 apart on the timetable, overnight
QR 3771 leaves 17 h 50 after FR 9170 arrives on the timetable: more than half a day, so not a connection we count.