You could also do something like 70k for SFO - AUH in EY J and then another 42.5k for QR AUH - DOH - MAD in J so 112.5k AA or alternatively 70k for SFO - AUH in EY J and then use UA miles for AUH - MAD at 45k (e.g., AUH - IST - MAD on TK J)
Sounds like really cool adventure

how would you transfer the points the for the first leg ?