Originally Posted by
-Heathcliff-
Sure, though Dubai/UAE is a different zone to DOH, which is in the "Middle East" in the EK zoning universe, whereas both MAD and BHD are within "Europe (West)" (as is MOW, curiously).
Although in your example, you could simply book the itinerary with the extra leg without any intention of actually flying it - provided you remember to short-check your luggage (if any).

Yes, but you know what I mean. Here's an example, which proves how complicated these things are, and I honestly have no idea how they work.
DOH-LHR-DOH is QR 3,000
DOH-LHR-MCT is QR 10,000 and it refuses to do the GCC sectors in Y - insists on doing those in J.
DOH-LHR-MCT-DOH is QR 4,800.
The complicated world of airline pricing.