{
  "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": "namedNode",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 51,
                    "end": 53
                  },
                  "prefix": ""
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "R",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 54,
                    "end": 56
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "z",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 57,
                    "end": 59
                  },
                  "prefix": ""
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 51,
                  "end": 59
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 49,
              "end": 62
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 63,
                "end": 65
              },
              "prefix": ""
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "a",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 68,
                      "end": 70
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "b",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 71,
                      "end": 73
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "term",
                    "subType": "variable",
                    "value": "C",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 74,
                      "end": 76
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 68,
                    "end": 76
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 79,
                  "end": 86
                },
                "label": "e_bnode"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 66,
                "end": 89
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 63,
              "end": 89
            }
          },
          {
            "type": "tripleCollection",
            "subType": "reifiedTriple",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "x",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 100,
                          "end": 102
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "variable",
                        "value": "R",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 103,
                          "end": 105
                        }
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "z",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 106,
                          "end": 108
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 100,
                        "end": 108
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_1"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 98,
                    "end": 111
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 112,
                    "end": 114
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "term",
                  "subType": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "a",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 118,
                      "end": 120
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "b",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 121,
                      "end": 123
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 124,
                      "end": 126
                    },
                    "label": "g_2"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 115,
                    "end": 130
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 98,
                  "end": 130
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "source",
                "start": 133,
                "end": 140
              },
              "label": "e_bnode"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 95,
              "end": 143
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "e_bnode"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 149,
                "end": 151
              },
              "prefix": ""
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "tripleCollection",
                    "subType": "reifiedTriple",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "blankNode",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 159,
                            "end": 161
                          },
                          "label": "g_3"
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "variable",
                          "value": "R",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 162,
                            "end": 164
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "z",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 165,
                            "end": 167
                          },
                          "prefix": ""
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 159,
                          "end": 167
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "iri",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 170,
                        "end": 174
                      },
                      "prefix": ""
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 157,
                      "end": 177
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 178,
                      "end": 180
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "tripleCollection",
                    "subType": "reifiedTriple",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 183,
                            "end": 185
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "b",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 186,
                            "end": 188
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "blankNode",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 189,
                            "end": 191
                          },
                          "label": "g_4"
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 183,
                          "end": 191
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_5"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 181,
                      "end": 194
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 157,
                    "end": 194
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                },
                "label": "g_6"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 154,
                "end": 197
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 149,
              "end": 197
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 49,
          "end": 199
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 44,
      "end": 201
    }
  },
  "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\n  <<:x ?R :z >> :p <<:a :b ?C ~ _:bnode >> .\n\n  << <<:x ?R :z >> :p <<(:a :b [] )>> ~ _:bnode >>\n     :q\n  << <<[] ?R :z ~ :iri >> :p <<:a :b [] >> >> .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 201
    },
    "startOnNew": 0,
    "endOnNew": 201
  },
  "type": "query"
}
