{
  "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": "namedNode",
              "value": "iri1",
              "loc": {
                "sourceLocationType": "source",
                "start": 62,
                "end": 67
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 49,
              "end": 70
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri1",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "prefix": ""
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 71,
                "end": 73
              },
              "prefix": ""
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "a",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 76,
                      "end": 78
                    },
                    "prefix": ""
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "b",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 79,
                      "end": 81
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "term",
                    "subType": "variable",
                    "value": "C",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 82,
                      "end": 84
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 76,
                    "end": 84
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "namedNode",
                "value": "iri2",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 87,
                  "end": 92
                },
                "prefix": ""
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 74,
                "end": 95
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 71,
              "end": 95
            }
          },
          {
            "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": 106,
                          "end": 108
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "variable",
                        "value": "R",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 109,
                          "end": 111
                        }
                      },
                      "object": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "z",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 112,
                          "end": 114
                        },
                        "prefix": ""
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 106,
                        "end": 114
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 117,
                      "end": 125
                    },
                    "label": "e_bnode1"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 104,
                    "end": 128
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 129,
                    "end": 131
                  },
                  "prefix": ""
                },
                "object": {
                  "type": "tripleCollection",
                  "subType": "reifiedTriple",
                  "triples": [
                    {
                      "type": "triple",
                      "subject": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "a",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 134,
                          "end": 136
                        },
                        "prefix": ""
                      },
                      "predicate": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "b",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 137,
                          "end": 139
                        },
                        "prefix": ""
                      },
                      "object": {
                        "type": "term",
                        "subType": "blankNode",
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 140,
                          "end": 142
                        },
                        "label": "g_0"
                      },
                      "annotations": [],
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 134,
                        "end": 142
                      }
                    }
                  ],
                  "identifier": {
                    "type": "term",
                    "subType": "blankNode",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 145,
                      "end": 153
                    },
                    "label": "e_bnode1"
                  },
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 132,
                    "end": 156
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 104,
                  "end": 156
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri3",
              "loc": {
                "sourceLocationType": "source",
                "start": 159,
                "end": 164
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 101,
              "end": 167
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri3",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "prefix": ""
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 173,
                "end": 175
              },
              "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": 183,
                            "end": 185
                          },
                          "label": "g_1"
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "variable",
                          "value": "R",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 186,
                            "end": 188
                          }
                        },
                        "object": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "z",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 189,
                            "end": 191
                          },
                          "prefix": ""
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 183,
                          "end": 191
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 194,
                        "end": 202
                      },
                      "label": "e_bnode2"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 181,
                      "end": 205
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "namedNode",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 206,
                      "end": 208
                    },
                    "prefix": ""
                  },
                  "object": {
                    "type": "tripleCollection",
                    "subType": "reifiedTriple",
                    "triples": [
                      {
                        "type": "triple",
                        "subject": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "a",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 211,
                            "end": 213
                          },
                          "prefix": ""
                        },
                        "predicate": {
                          "type": "term",
                          "subType": "namedNode",
                          "value": "b",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 214,
                            "end": 216
                          },
                          "prefix": ""
                        },
                        "object": {
                          "type": "term",
                          "subType": "blankNode",
                          "loc": {
                            "sourceLocationType": "source",
                            "start": 217,
                            "end": 219
                          },
                          "label": "g_2"
                        },
                        "annotations": [],
                        "loc": {
                          "sourceLocationType": "source",
                          "start": 211,
                          "end": 219
                        }
                      }
                    ],
                    "identifier": {
                      "type": "term",
                      "subType": "blankNode",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 221,
                        "end": 229
                      },
                      "label": "e_bnode2"
                    },
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 209,
                      "end": 232
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 181,
                    "end": 232
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "namedNode",
                "value": "iri3",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 234,
                  "end": 239
                },
                "prefix": ""
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 178,
                "end": 242
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 173,
              "end": 242
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 49,
          "end": 244
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 44,
      "end": 246
    }
  },
  "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 ~ :iri1 >> :p <<:a :b ?C ~ :iri2 >> .\n\n  << <<:x ?R :z ~ _:bnode1 >> :p <<:a :b [] ~ _:bnode1 >> ~ :iri3 >>\n     :q\n  << <<[] ?R :z ~ _:bnode2 >> :p <<:a :b [] ~_:bnode2 >> ~:iri3 >> .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 246
    },
    "startOnNew": 0,
    "endOnNew": 246
  },
  "type": "query"
}
