functioning as vs just for

functioning as

just for

How often have the words functioning as and just for occurred in a corpus of books? (source: Google Ngram Viewer )