have the upper hand over vs have the whip hand over

have the upper hand over

have the whip hand over

How often have the words have the upper hand over and have the whip hand over occurred in a corpus of books? (source: Google Ngram Viewer )