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