Sentence:  Whatever his original assignment , the fictional private eye <WSD>ends</WSD> up by investigating and solving a crime , usually a murder . 
Meaning of the word marked with <WSD> tags:  finally be or do something