QR 59 then UX 1518 at Munich
Doha → Munich → Madrid
Timetable, Munich time
06:05QR 59 from Doha at the gate
18:55UX 1518 to Madrid leaves the gate
12 h 50 apart on the timetable
UX 1518 leaves 12 h 50 after QR 59 arrives on the timetable: more than half a day, so not a connection we count.