That flight is probably eligible for miles on only CX or LH.
Most OW airlines required flights to be both marketed and operated by OW to earn miles. And miles post as marketing carrier
Most *A airlines requires the operating airline is *A to earn miles. Miles post using operating carriers earning table