have the rag on vs up on blocks

have the rag on

up on blocks

How often have the words have the rag on and up on blocks occurred in a corpus of books? (source: Google Ngram Viewer )