ally (oneself) with vs uphold

ally (oneself) with

uphold

verb
  • To keep erect; to support; to sustain; to keep from falling 

  • To hold up; to lift on high; to elevate. 

  • To support by approval or encouragement, to confirm (something which has been questioned) 

How often have the words ally (oneself) with and uphold occurred in a corpus of books? (source: Google Ngram Viewer )