{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.com/ns#",
        "loc": {
          "sourceLocationType": "source",
          "start": 16,
          "end": 40
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 40
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "xsd",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/2001/XMLSchema#",
        "loc": {
          "sourceLocationType": "source",
          "start": 57,
          "end": 92
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 41,
        "end": 92
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "s",
              "loc": {
                "sourceLocationType": "source",
                "start": 108,
                "end": 110
              },
              "prefix": ""
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 111,
                "end": 113
              },
              "prefix": ""
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "a",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 116,
                      "end": 118
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "b",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 119,
                      "end": 121
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "c",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 122,
                      "end": 124
                    },
                    "prefix": ""
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 116,
                    "end": 124
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                },
                "label": "g_0"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 114,
                "end": 126
              }
            },
            "annotations": [
              {
                "val": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 129,
                    "end": 133
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 127,
                  "end": 133
                }
              },
              {
                "type": "tripleCollection",
                "subType": "blankNodeProperties",
                "triples": [
                  {
                    "type": "triple",
                    "subject": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 129,
                        "end": 133
                      },
                      "prefix": ""
                    },
                    "predicate": {
                      "type": "term",
                      "subType": "variable",
                      "value": "q",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 137,
                        "end": 139
                      }
                    },
                    "object": {
                      "type": "tripleCollection",
                      "subType": "reifiedTriple",
                      "triples": [
                        {
                          "type": "triple",
                          "subject": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "s1",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 142,
                              "end": 145
                            },
                            "prefix": ""
                          },
                          "predicate": {
                            "type": "term",
                            "subType": "namedNode",
                            "value": "p1",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 146,
                              "end": 149
                            },
                            "prefix": ""
                          },
                          "object": {
                            "type": "term",
                            "subType": "variable",
                            "value": "z",
                            "loc": {
                              "sourceLocationType": "source",
                              "start": 150,
                              "end": 152
                            }
                          },
                          "annotations": [],
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 142,
                            "end": 152
                          }
                        }
                      ],
                      "identifier": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        },
                        "label": "g_1"
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 140,
                        "end": 154
                      }
                    },
                    "annotations": [],
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 129,
                      "end": 154
                    }
                  }
                ],
                "identifier": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 129,
                    "end": 133
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 134,
                  "end": 157
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 108,
              "end": 157
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 108,
          "end": 157
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 103,
      "end": 159
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 101,
        "end": 102
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX :        <http://example.com/ns#>\nPREFIX xsd:     <http://www.w3.org/2001/XMLSchema#>\n\nSELECT * {\n   :s :p <<:a :b :c>> ~ :iri {| ?q <<:s1 :p1 ?z>> |}\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 159
    },
    "startOnNew": 0,
    "endOnNew": 159
  },
  "type": "query"
}
