FR 8385 then BT 684 at Barcelona
Budapest → Barcelona → Riga
Timetable, Barcelona time
17:20FR 8385 from Budapest at the gate
17:00BT 684 to Riga leaves the gatealso IB 7848
23 h 40 apart on the timetable, overnight
BT 684 leaves 23 h 40 after FR 8385 arrives on the timetable: more than half a day, so not a connection we count.