to do with vs with reference to

to do with

prep
  • Used after a pronoun or determiner without the verb have or have got. 

  • Used after the verb have or have got and a pronoun or determiner. 

  • Used directly after the verb have or have got. 

with reference to

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