CommandFactory.newQuery typo in code snippets of doc

Spotted those other typos, so letting you know.
Ciao
MM