I'm not sure I understand what you mean.
Wolfram|Alpha does translate your input into Mathematica code. But fundamentally, you have to ask Wolfram|Alpha to do that. There are several ways of doing this.
SemanticInterpretation["Population of Chicago", _, Hold]