chasing a rainbow vs tilt at windmills

chasing a rainbow

tilt at windmills

verb
  • To attack imaginary enemies. 

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

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