{
  "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": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 48,
              "end": 61
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "r",
              "loc": {
                "sourceLocationType": "source",
                "start": 62,
                "end": 64
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 65,
                "end": 67
              },
              "prefix": ""
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 62,
              "end": 67
            }
          },
          {
            "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": 77,
                          "end": 79
                        }
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "p",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 80,
                          "end": 82
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "o",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 83,
                          "end": 85
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 77,
                        "end": 85
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_1"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 75,
                    "end": 88
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "r",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 89,
                    "end": 91
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "z",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 92,
                    "end": 94
                  },
                  "prefix": ""
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 75,
                  "end": 94
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_2"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 72,
              "end": 97
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_2"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 98,
                "end": 100
              },
              "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": 101,
                "end": 102
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 98,
              "end": 102
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 48,
          "end": 104
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 44,
      "end": 106
    }
  },
  "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 >> :r :z .\n  << <<?S :p :o >> :r :z >> :q 1 .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 106
    },
    "startOnNew": 0,
    "endOnNew": 106
  },
  "type": "query"
}
