FR 3194 then QR 3619 at Barcelona
Riga → Barcelona → Bari
Timetable, Barcelona time
19:05FR 3194 from Riga at the gate
18:15QR 3619 to Bari leaves the gate
23 h 10 apart on the timetable, overnight
QR 3619 leaves 23 h 10 after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.