QR 147 then IB 1043 at Madrid
Doha → Madrid → Mahón
Timetable, Madrid time
06:35QR 147 from Doha at the gate
19:10IB 1043 to Mahón leaves the gate
12 h 35 apart on the timetable
IB 1043 leaves 12 h 35 after QR 147 arrives on the timetable: more than half a day, so not a connection we count.