[doc/book] fix rql syntax examples
"Any", not "ANY". "EXISTS" is a function.
--- a/doc/book/en/annexes/rql/language.rst Mon Jun 22 12:51:28 2015 +0200
+++ b/doc/book/en/annexes/rql/language.rst Tue Jun 23 15:17:31 2015 +0200
@@ -370,7 +370,7 @@
.. sourcecode:: sql
- DISTINCT ANY P WHERE V version_of P
+ DISTINCT Any P WHERE V version_of P
This will work, but is not efficient, as it will use the ``SELECT
DISTINCT`` SQL predicate, which needs to retrieve all projects, then
@@ -379,7 +379,7 @@
.. sourcecode:: sql
- ANY P WHERE EXISTS V version_of P
+ Any P WHERE EXISTS(V version_of P)
You can also use the question mark (`?`) to mark optional relations. This allows