Hello,
(My understanding is that "database" should be replaced with the name of a database.)
However, the URL yields an error ("Document is empty"). At any rate, the documentation should be explicit about the evaluation context of REST calls with parameter "query" or "run". If the resource identified by the URL is a single document, the context item is fairly obvious. However, in case of a database or a database collection, the evaluation context is not obvious.
With kind regards
Hans-Jürgen