do one’s duty vs live by

do one’s duty

live by

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