egotistical vs smarty pants

egotistical

adj
  • Egoistical (advocating egoism). 

  • Believing oneself to be better and more important than others due to one's position, popularity, wealth, appearance, etc. 

  • Tending to talk excessively about oneself. 

smarty pants

noun
  • A smart aleck or know-it-all. 

How often have the words egotistical and smarty pants occurred in a corpus of books? (source: Google Ngram Viewer )