{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.com/ns#",
        "loc": {
          "sourceLocationType": "source",
          "start": 9,
          "end": 33
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 33
      }
    }
  ],
  "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": 50,
                    "end": 52
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 53,
                    "end": 55
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "o",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 56,
                    "end": 58
                  },
                  "prefix": ""
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 50,
                  "end": 58
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "source",
                "start": 61,
                "end": 65
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 68
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "prefix": ""
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "r",
              "loc": {
                "sourceLocationType": "source",
                "start": 69,
                "end": 71
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 72,
                "end": 74
              },
              "prefix": ""
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 69,
              "end": 74
            }
          },
          {
            "type": "tripleCollection",
            "subType": "reifiedTriple",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "variable",
                        "value": "S",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 84,
                          "end": 86
                        }
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "p",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 87,
                          "end": 89
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "o",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 90,
                          "end": 92
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 84,
                        "end": 92
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "iri",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 95,
                      "end": 99
                    },
                    "prefix": ""
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 82,
                    "end": 102
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "r",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 103,
                    "end": 105
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "z",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 106,
                    "end": 108
                  },
                  "prefix": ""
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 82,
                  "end": 108
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "source",
                "start": 111,
                "end": 118
              },
              "label": "e_bnode"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 79,
              "end": 121
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "e_bnode"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 122,
                "end": 124
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "literal",
              "value": "1",
              "langOrIri": {
                "type": "term",
                "subType": "namedNode",
                "value": "http://www.w3.org/2001/XMLSchema#integer",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                }
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 125,
                "end": 126
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 122,
              "end": 126
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 48,
          "end": 128
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 44,
      "end": 130
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 42,
        "end": 43
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nSELECT * {\n  <<?S :p :o ~ :iri >> :r :z .\n  << <<?S :p :o ~ :iri >> :r :z ~ _:bnode >> :q 1 .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 130
    },
    "startOnNew": 0,
    "endOnNew": 130
  },
  "type": "query"
}
