apply oneself to vs have a shot at

apply oneself to

have a shot at

How often have the words apply oneself to and have a shot at occurred in a corpus of books? (source: Google Ngram Viewer )