In fact, Clever Hans was picking up subtle cues from the individual who asked him a question (and consequently knew the answer to that question.
For example, if the question was problem was "What is 10 + 10?", Hans was able to pick up on subtle cues people emitted when he was approaching 20 hoofbeats on the floor.