be a party to vs have to do with

be a party to

have to do with

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