GQ 920 then IB 1039 at Madrid
Athens → Madrid → Mahón
Timetable, Madrid time
13:20GQ 920 from Athens at the gate
11:35IB 1039 to Mahón leaves the gatealso AA 8583
22 h 15 apart on the timetable, overnight
IB 1039 leaves 22 h 15 after GQ 920 arrives on the timetable: more than half a day, so not a connection we count.