be beaten vs come out ahead

be beaten

come out ahead

How often have the words be beaten and come out ahead occurred in a corpus of books? (source: Google Ngram Viewer )