for $a in collection() where $a//a/b/c/d return $a