have relation vs have to do with

have relation

have to do with

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