Doc: Fix syntax for queries

fixes #423