IB 5387 then BT 684 at Barcelona
Bologna → Barcelona → Riga
Timetable, Barcelona time
14:20IB 5387 from Bologna at the gatealso LL 5387
14:05BT 684 to Riga leaves the gatealso IB 7848
23 h 45 apart on the timetable, overnight
BT 684 leaves 23 h 45 after IB 5387 arrives on the timetable: more than half a day, so not a connection we count.