FR 3194 then IB 5298 at Barcelona
Riga → Barcelona → Palma de Mallorca
Timetable, Barcelona time
23:45FR 3194 from Riga at the gate
23:00IB 5298 to Palma de Mallorca leaves the gate
23 h 15 apart on the timetable, overnight
IB 5298 leaves 23 h 15 after FR 3194 arrives on the timetable: more than half a day, so not a connection we count.