be up to vs have the ability to

be up to

verb
  • To do or be involved in doing; to do (often something mischievous or inappropriate). 

  • To depend on, to be the choice of. 

have the ability to

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