That documentaiton isn't for Wolfram|Alpha.  Wolfram|Alpha doesn't usually interpret Wolfram Language Code. 
Wolfram|Alpha is a natural language engine and doesn't really have documentation. The closest thing is a pretty complete list of examples at wolframalpha.com/examples.
If you want to run code that's documented at reference.wolfram.com, try using the Wolfram Cloud: http://www.wolframcloud.com/