how+to+make+wolfram+alpha+treat+a+word+as+a+variable

just put the variable name in quotes like "apples" Note that the variable name cannot have an underline character