FR 3040 then FR 2889 at Barcelona
Prague → Barcelona → Palma de Mallorca
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
20:55FR 2889 to Palma de Mallorca leaves the gate
23 h 40 apart on the timetable, overnight
FR 2889 leaves 23 h 40 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.