{
  "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": "tripleCollection",
            "subType": "reifiedTriple",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "s",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 110,
                    "end": 112
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 113,
                    "end": 116
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 117,
                    "end": 120
                  },
                  "prefix": ""
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 110,
                  "end": 120
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 108,
              "end": 122
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 123,
                "end": 125
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 126,
                "end": 128
              }
            },
            "annotations": [
              {
                "val": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 131,
                    "end": 135
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 129,
                  "end": 135
                }
              },
              {
                "type": "tripleCollection",
                "subType": "blankNodeProperties",
                "triples": [
                  {
                    "type": "triple",
                    "subject": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 131,
                        "end": 135
                      },
                      "prefix": ""
                    },
                    "predicate": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "r",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 139,
                        "end": 141
                      },
                      "prefix": ""
                    },
                    "object": {
                      "type": "term",
                      "subType": "variable",
                      "value": "Z",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 142,
                        "end": 144
                      }
                    },
                    "annotations": [],
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 131,
                      "end": 144
                    }
                  }
                ],
                "identifier": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "iri",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 131,
                    "end": 135
                  },
                  "prefix": ""
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 136,
                  "end": 147
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 123,
              "end": 147
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 108,
          "end": 149
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 103,
      "end": 151
    }
  },
  "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 :p1 :o1>> ?p ?o ~ :iri {| :r ?Z |} .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 151
    },
    "startOnNew": 0,
    "endOnNew": 151
  },
  "type": "query"
}
