Does Google Take Action On Automatically Generated Pages That Provide No Added Value?

In this video, Matt Cutts answers the following question: "What does Google do against sites that have a script that automatically picks up the search query and makes a page about it? Ex: you Google [risks of drinking caffeine], end up at a page: "we have no articles for DRINKING CAFFEINE" with lots of ads." [...]