chase a rainbow vs tilt at windmills

chase a rainbow

verb
  • To pursue something illusory, impractical, or impossible. 

tilt at windmills

verb
  • To go on a wild-goose chase; to persistently engage in a futile activity. 

  • To attack imaginary enemies. 

How often have the words chase a rainbow and tilt at windmills occurred in a corpus of books? (source: Google Ngram Viewer )