QR 3766 then IB 424 at Barcelona
Palma de Mallorca → Barcelona → Madrid
Timetable, Barcelona time
21:45QR 3766 from Palma de Mallorca at the gatealso VY 3909, LL 5299
21:15IB 424 to Madrid leaves the gatealso IB 424S, LA 1589, LL 3024, VY 5100, AY 5576, AV 6173, BA 7084, QR 8067
23 h 30 apart on the timetable, overnight
IB 424 leaves 23 h 30 after QR 3766 arrives on the timetable: more than half a day, so not a connection we count.