{
  "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": "noMaterialize"
                },
                "label": "g_1"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 66,
                "end": 79
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 63,
              "end": 79
            }
          },
          {
            "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": 90,
                          "end": 92
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "variable",
                        "value": "R",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 93,
                          "end": 95
                        }
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "z",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 96,
                          "end": 98
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 90,
                        "end": 98
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_2"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 88,
                    "end": 101
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 102,
                    "end": 104
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "a",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 107,
                          "end": 109
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 110,
                          "end": 112
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 113,
                          "end": 115
                        },
                        "label": "g_3"
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 107,
                        "end": 115
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "noMaterialize"
                    },
                    "label": "g_4"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 105,
                    "end": 118
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 88,
                  "end": 118
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_5"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 85,
              "end": 121
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_5"
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 127,
                "end": 129
              },
              "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": 137,
                            "end": 139
                          },
                          "label": "g_6"
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "variable",
                          "value": "R",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 140,
                            "end": 142
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "z",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 143,
                            "end": 145
                          },
                          "prefix": ""
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 137,
                          "end": 145
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_7"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 135,
                      "end": 148
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 149,
                      "end": 151
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "tripleCollection",
                    "subType": "reifiedTriple",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 154,
                            "end": 156
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "b",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 157,
                            "end": 159
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "blankNode",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 160,
                            "end": 162
                          },
                          "label": "g_8"
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 154,
                          "end": 162
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "noMaterialize"
                      },
                      "label": "g_9"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 152,
                      "end": 165
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 135,
                    "end": 165
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                },
                "label": "g_10"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 132,
                "end": 168
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 127,
              "end": 168
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 49,
          "end": 170
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 44,
      "end": 172
    }
  },
  "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 >> .\n\n  << <<:x ?R :z >> :p <<:a :b [] >> >>\n     :q\n  << <<[] ?R :z >> :p <<:a :b [] >> >> .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 172
    },
    "startOnNew": 0,
    "endOnNew": 172
  },
  "type": "query"
}
