Sentence:  He was not sure how much of this desire <WSD>was</WSD> due to his devotion to the church and how much was his own ego , demanding to be satisfied , for the two were intertwined and could not be separated . 
Meaning of the word marked with <WSD> tags:  be the result of