EW 7520 then IB 5312 at Barcelona
Hamburg → Barcelona → Palma de Mallorca
Timetable, Barcelona time
18:45EW 7520 from Hamburg at the gate
11:20IB 5312 to Palma de Mallorca leaves the gate
16 h 35 apart on the timetable, overnight
IB 5312 leaves 16 h 35 after EW 7520 arrives on the timetable: more than half a day, so not a connection we count.