FR 835 then FR 3174 at Barcelona
Vilnius → Barcelona → Ibiza
Timetable, Barcelona time
10:30FR 835 from Vilnius at the gate
07:45FR 3174 to Ibiza leaves the gate
21 h 15 apart on the timetable, overnight
FR 3174 leaves 21 h 15 after FR 835 arrives on the timetable: more than half a day, so not a connection we count.