(Q19) Find titles of books in which both sailing and windsurfing are mentioned in the same paragraph.

FOR $b IN //book
WHERE SOME $p IN $b//para SATISFIES
   contains($p, "sailing") 
   AND contains($p, "windsurfing")
RETURN $b/title
  • This query introduces the SOME operator, or the "existential quantifier".
<<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15    >>>