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