Fix errors in query documentation - there are still more to be fixed