to what end vs what for

to what end

adv
  • For what purpose, what for, why 

what for

adv
  • For what purpose. 

  • For what reason; why. 

noun
  • An unspecified punishment or rebuke 

How often have the words to what end and what for occurred in a corpus of books? (source: Google Ngram Viewer )