be loyal to vs do one’s duty

be loyal to

do one’s duty

How often have the words be loyal to and do one’s duty occurred in a corpus of books? (source: Google Ngram Viewer )