FR 2494 then FR 333 at Barcelona
Palma de Mallorca → Barcelona → Gdansk
Timetable, Barcelona time
11:15FR 2494 from Palma de Mallorca at the gate
11:10FR 333 to Gdansk leaves the gate
23 h 55 apart on the timetable, overnight
FR 333 leaves 23 h 55 after FR 2494 arrives on the timetable: more than half a day, so not a connection we count.