QR 3767 then BT 684 at Barcelona
Palermo → Barcelona → Riga
Timetable, Barcelona time
14:25QR 3767 from Palermo at the gate
14:05BT 684 to Riga leaves the gate
23 h 40 apart on the timetable, overnight
BT 684 leaves 23 h 40 after QR 3767 arrives on the timetable: more than half a day, so not a connection we count.