have a hand vs have something to do with something

have a hand

have something to do with something

How often have the words have a hand and have something to do with something occurred in a corpus of books? (source: Google Ngram Viewer )