While what Vincent said about StackExchange wanting to be the reference that shows up on Google is true, I disagree with the sentiment that any answer that references a search query should be a comment.
I think if an answer is primarily a reference to a search query (Google or otherwise), then it is better suited as a comment. However, if the answer is useful in its own right and then provides a search query in addition that the OP/viewers may not have searched, I think that is valid and should stay in answers. Often times I will include a search query in my answers, especially when dealing with terminology and style identification requests. Three I found very quickly are these: 1, 2, 3.
In the answer linked in the question, the query included isn't all that useful so I wouldn't mind it being omitted or edited out, but in general including a search query shouldn't be banned.