例例文
I think his bad mood has something to do with the test results.
彼の機嫌が悪いのはテストの結果と何か関係があると思う。
EN英英で言うと
to be connected with someone or something in some way
源語源・イメージ

「~とともにする(関わる)ことが何かある」。
!入試ポイント
nothing / little / much / a lot に入れ替えて関係の度合いを表す。be related to ~ / be connected with ~ と同義。
「~と何か関係がある」。something の部分で関係の程度を表す(have a lot / much / little / nothing to do with)。疑問・否定では anything になることが多い(Does it have anything to do with ~?)。
VSここが違う!
have something to do with ~vshave nothing to do with ~
something は何らかの関係、nothing は全く無関係。同じ型の差し替え。見分け方:文脈で関係があるかないかを判断する。
His illness has something to do with stress. / I have nothing to do with it.
覚覚え方
「~と一緒にやるべきことを何か持っている」で何か関係がある。疑問・否定では something が anything に変わる、という some / any の原則がそのまま当てはまる。
Q入試形式の例題
His bad mood probably has to do with the argument with his boss; he was cheerful before it.
口論の前は機嫌がよかったので、不機嫌は口論と「何か関係がある」= something。肯定文なので anything は使えず、any は to do の前に置く名詞として不自然。nothing は後半の内容と矛盾する。