“To have sth to do with” in Chinese is 有关 (yǒuguān).
我爱听有关动物的笑话。
I love animal jokes.
Example sentence from Tatoeba (CC BY 2.0).