Ho Dennis, I recreate your schema with this graph:
<https://lh3.googleusercontent.com/-d9DazfbQ9aE/VYPP5QMAm6I/AAAAAAAAAFI/nCV01IZQkg0/s1600/Immagine.png> Now, if I understand your problem, try this query: select expand($c) let $a = (select from (select expand(in('AuthorOf')) from (select expand(out()) from Author where name="author2"))), $b = (select from (select expand(out()) from (select from (select expand(in('AuthorOf')) from (select expand(out()) from Author where name="author2"))))), $c = unionAll($a, $b) and obtain this table: <https://lh3.googleusercontent.com/-_x2klqlIOaY/VYPRisWjVdI/AAAAAAAAAFc/4ozjc9NOcyA/s1600/title.png> I'm not sure to have understand point 5, you want to find all books and articles related to the authors found in step 4, right? My query does exactly that. Bye, Giulia -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
