(aql-query
   ( select "s1" ( property any "root" subject ) )
   ( select "p1" ( property any "root" predicate ) )

   ( select "s2" ( property any "outerj" subject ) )
   ( select "p2" ( property any "outerj" predicate ) )
   ( select "o2" ( property any "outerj" object ) )

   ( select "s3" ( property any "innerj" subject ) )
   ( select "p3" ( property any "innerj" predicate ) )
   ( select "o3" ( property any "innerj" object ) )
	
   (join left ("outerj") (and (comp-eq (property any "root" object) (property IRI "outerj" subject))
                             (comp-eq (property IRI "outerj" predicate) (literal IRI "http://test1.aql-testdata/p/sequel-of")))
         (join left ("innerj") (and (comp-eq (property any "outerj" object) (property any "innerj" subject))
                                   (comp-eq (property IRI "innerj" predicate) (literal IRI "http://test1.aql-testdata/p/isbn")))))

   (criterion (comp-eq (property IRI "root" predicate) (literal IRI "http://test1.aql-testdata/p/author-of")))
)
