Type-ARQuE example transformation: test/ssws2010/filter-depth-reduction.rq (simple-inline)

SPARQL Query

SELECT ?a ?d ?e ?g
WHERE {
  ?a ?b ?c
  OPTIONAL {
    ?a ?d ?e
    OPTIONAL {
      ?e ?f ?g
      FILTER (?c=45.1)
    }
  }
}

Query translated into AQL

(aql-query ("triple_1_1")
           (select "a" (property (string IRI double integer boolean datetime)
                                 "triple_1_1" subject))
           (select "d" (property (string IRI double integer boolean datetime)
                                 "triple_2_1" predicate))
           (select "e" (property (string IRI double integer boolean datetime)
                                 "triple_2_1" object))
           (select "g" (property (string IRI double integer boolean datetime)
                                 "triple_3_1" object))
           (join left ("triple_2_1")
                      (comp-eq (property (string IRI double integer boolean datetime)
                                         "triple_2_1" subject)
                               (property (string IRI double integer boolean datetime)
                                         "triple_1_1" subject))
                      (join left ("triple_3_1")
                                 (and (comp-eq (property (string IRI double integer boolean datetime)
                                                         "triple_3_1" subject)
                                               (property (string IRI double integer boolean datetime)
                                                         "triple_2_1" object))
                                      (comp-eq (property (string IRI double integer boolean datetime)
                                                         "triple_1_1" object)
                                               (literal double 45.1)))))
           (criterion))

Lowered and optimized AQL

(aql-query ("triple_1_1")
           (select "a" (custom (IRI)
                               FlexibleSQLLayout::SQLAccessExpr INLINE subj_value USING JOIN triple_1_1))
           (select "d" (custom (IRI)
                               FlexibleSQLLayout::SQLAccessExpr INLINE pred_value USING JOIN triple_2_1))
           (select "e" (custom (string)
                               FlexibleSQLLayout::SQLAccessExpr INLINE obj_value USING JOIN triple_2_1))
           (select "g" (custom (string)
                               FlexibleSQLLayout::SQLAccessExpr INLINE obj_value USING JOIN triple_3_1))
           (join left ("triple_2_1")
                      (function"builtin:comp-eq" (boolean) ### variant [(reference) (reference)] : (boolean)
                                                           (custom (integer)
                                                                   FlexibleSQLLayout::SQLAccessExpr INLINE subj_value USING JOIN triple_2_1)
                                                           (custom (integer)
                                                                   FlexibleSQLLayout::SQLAccessExpr INLINE subj_value USING JOIN triple_1_1))
# Inference map = {
#  triple_2_1.subject: (IRI)
#  triple_2_1.predicate: (IRI)
#  triple_2_1.object: (string IRI double integer boolean datetime)
                                                            )
           (join left ("triple_3_1")
                      (function"builtin:and" (boolean) ### variant [(boolean) (boolean) (boolean)] : (boolean)
                                                       (function"builtin:comp-eq" (boolean) ### variant [(reference) (reference)] : (boolean)
                                                                                            (custom (integer)
                                                                                                    FlexibleSQLLayout::SQLAccessExpr INLINE subj_value USING JOIN triple_3_1)
                                                                                            (custom (integer)
                                                                                                    FlexibleSQLLayout::SQLAccessExpr INLINE obj_value USING JOIN triple_2_1))
                                                       (function"builtin:comp-eq" (boolean) ### variant [(double) (double)] : (boolean)
                                                                                            (function"builtin:to-double" (double) ### variant [(string IRI double integer boolean datetime)] : (double)
                                                                                                                                  (custom (string)
                                                                                                                                          FlexibleSQLLayout::SQLAccessExpr INLINE obj_value USING JOIN triple_1_1))
                                                                                            (literal double 45.1))
                                                       (function"builtin:is-not-null" (boolean) ### variant [(string IRI double integer boolean datetime)] : (boolean)
                                                                                                (custom (integer)
                                                                                                        FlexibleSQLLayout::SQLAccessExpr INLINE subj_value USING JOIN triple_2_1)))
# Inference map = {
#  triple_3_1.subject: (IRI)
#  triple_3_1.predicate: (IRI)
#  triple_3_1.object: (string IRI double integer boolean datetime)
                                                        )
           (criterion (literal boolean true))
# Inference map = {
#  triple_1_1.subject: (IRI)
#  triple_1_1.predicate: (IRI)
#  triple_1_1.object: (string IRI double integer boolean datetime)
                       )

SQL

SELECT triple_1_1.subj_value AS c0,
       triple_2_1.pred_value AS c1,
       triple_2_1.obj_value AS c2,
       triple_3_1.obj_value AS c3
  FROM InlinedTriples AS triple_1_1
       LEFT JOIN InlinedTriples AS triple_2_1 ON triple_2_1.subj_value=triple_1_1.subj_value
       LEFT JOIN InlinedTriples AS triple_3_1 ON triple_3_1.subj_value=triple_2_1.obj_value AND aqltosql_any_to_double(triple_1_1.obj_value)=45.1 AND triple_2_1.subj_value IS NOT NULL
 WHERE TRUE

Execution result

| a                                 | d                                               | e                                      | g                                    |
=======================================================================================================================================================================
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/title               | Bar-Master (bootleg)                   | (null)                               |
| http://test1.aql-testdata/book5   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/series-no           | 1                                      | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | 9-111-222-333                        |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | The Great Book of Nonsense           |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | http://test1.aql-testdata/types/book |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/isbn                | 9-111-222-333                          | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/title               | The Great Book of Nonsense             | (null)                               |
| http://test1.aql-testdata/book1   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/isbn                | 9-111-222-333                          | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/title               | The Great Book of Nonsense             | (null)                               |
| http://test1.aql-testdata/book1   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/isbn                | 9-111-222-333                          | (null)                               |
| http://test1.aql-testdata/book1   | http://test1.aql-testdata/p/title               | The Great Book of Nonsense             | (null)                               |
| http://test1.aql-testdata/book1   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/isbn                | 9-333-222-333                          | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/title               | The Book of Blah                       | (null)                               |
| http://test1.aql-testdata/book2   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/isbn                | 9-333-222-333                          | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/title               | The Book of Blah                       | (null)                               |
| http://test1.aql-testdata/book2   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/isbn                | 9-333-222-333                          | (null)                               |
| http://test1.aql-testdata/book2   | http://test1.aql-testdata/p/title               | The Book of Blah                       | (null)                               |
| http://test1.aql-testdata/book2   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/isbn                | 9-111-333-333                          | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/title               | The Art of Foo                         | (null)                               |
| http://test1.aql-testdata/book3   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/isbn                | 9-111-333-333                          | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/title               | The Art of Foo                         | (null)                               |
| http://test1.aql-testdata/book3   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/isbn                | 9-111-333-333                          | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/title               | The Art of Foo                         | (null)                               |
| http://test1.aql-testdata/book3   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/isbn                | 9-111-444-333                          | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/title               | Bar-Master                             | (null)                               |
| http://test1.aql-testdata/book4   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/isbn                | 9-111-444-333                          | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/title               | Bar-Master                             | (null)                               |
| http://test1.aql-testdata/book4   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/isbn                | 9-111-444-333                          | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/title               | Bar-Master                             | (null)                               |
| http://test1.aql-testdata/book4   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/title               | Bar-Master (bootleg)                   | (null)                               |
| http://test1.aql-testdata/book5   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/series-no           | 1                                      | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/title               | Bar-Master (bootleg)                   | (null)                               |
| http://test1.aql-testdata/book5   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/series-no           | 1                                      | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/weight              | 45.1                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/age                 | 22                                     | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/lastname            | Aadolfson                              | (null)                               |
| http://test1.aql-testdata/author1 | http://test1.aql-testdata/p/firstname           | Anne                                   | (null)                               |
| http://test1.aql-testdata/author1 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book2        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/weight              | 57.2                                   | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/age                 | 33                                     | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/lastname            | Beowulf                                | (null)                               |
| http://test1.aql-testdata/author2 | http://test1.aql-testdata/p/firstname           | Beatrice                               | (null)                               |
| http://test1.aql-testdata/author2 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/birthday            | 1966-02-24T12:42:25.311Z               | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/drunk               | 0                                      | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/weight              | 69.3                                   | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/age                 | 44                                     | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/lastname            | Chorris                                | (null)                               |
| http://test1.aql-testdata/author3 | http://test1.aql-testdata/p/firstname           | Chuck                                  | (null)                               |
| http://test1.aql-testdata/author3 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/author-of           | http://test1.aql-testdata/book4        | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/drunk               | 1                                      | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/weight              | 70.4                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/age                 | 55                                     | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/lastname            | Daft                                   | (null)                               |
| http://test1.aql-testdata/author4 | http://test1.aql-testdata/p/firstname           | David                                  | (null)                               |
| http://test1.aql-testdata/author4 | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/person | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book1        | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/isbn                | 9-111-333-333                          | (null)                               |
| http://test1.aql-testdata/book3   | http://test1.aql-testdata/p/title               | The Art of Foo                         | (null)                               |
| http://test1.aql-testdata/book3   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/isbn                | 9-111-444-333                          | (null)                               |
| http://test1.aql-testdata/book4   | http://test1.aql-testdata/p/title               | Bar-Master                             | (null)                               |
| http://test1.aql-testdata/book4   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/sequel-of           | http://test1.aql-testdata/book3        | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/title               | Bar-Master (bootleg)                   | (null)                               |
| http://test1.aql-testdata/book5   | http://www.w3.org/1999/02/22-rdf-syntax-ns#type | http://test1.aql-testdata/types/book   | (null)                               |
| http://test1.aql-testdata/book5   | http://test1.aql-testdata/p/series-no           | 1                                      | (null)                               |

283 rows