About expected equivalent queries (just using brackets and not using) not returning equivalent results

Hi all,

I’m confused about expected equivalent queries not returning equivalent results when I figured out to make some complex traversing assigning vertex filtered condition, edge filtered condition and the depth of traverse at the same time using brackets.

The test result is just as below:

(1) Why do the following queries not all return the same results?

a183fa17ed7d842d4b339c9acc6bbfdcfdd87e98.png

7e709c829bdc3db36f5b943668448802dfd46169.png

07ffda4bfaaf7f23d07e632d618d4f9dd1e8ea81.png

(2) And again, why do the three queries not return the same results?

fdb14e7cd4474858d8063613668d35f1caa2e81b.png

bf8e56e84223ae402eb3659b0316bcbcd83ca3ae.png

5557b83758dcf2acba338718e99c94d8fbc2e26c.png

cd23598af451649b5431883f0a2b33db47af8ade.png

Could anyone solve my problem?

Hi,
what version are you using?

Thanks
Regards,
Michela

The version of orientdb is 3.0.18