for example vs to give an example

for example

prep
  • introducing one or more parts of the group or topic just mentioned or typical of the options available 

prep
  • As an example. 

to give an example

How often have the words for example and to give an example occurred in a corpus of books? (source: Google Ngram Viewer )