{
  "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": "construct",
  "template": {
    "type": "pattern",
    "subType": "bgp",
    "triples": [
      {
        "type": "tripleCollection",
        "subType": "reifiedTriple",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "s",
              "loc": {
                "sourceLocationType": "source",
                "start": 58,
                "end": 60
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "p",
              "loc": {
                "sourceLocationType": "source",
                "start": 61,
                "end": 63
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "o",
              "loc": {
                "sourceLocationType": "source",
                "start": 64,
                "end": 66
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 58,
              "end": 66
            }
          }
        ],
        "identifier": {
          "type": "term",
          "subType": "blankNode",
          "loc": {
            "sourceLocationType": "noMaterialize"
          },
          "label": "g_0"
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 56,
          "end": 69
        }
      },
      {
        "type": "triple",
        "subject": {
          "type": "term",
          "subType": "blankNode",
          "loc": {
            "sourceLocationType": "noMaterialize"
          },
          "label": "g_0"
        },
        "predicate": {
          "type": "term",
          "subType": "variable",
          "value": "q",
          "loc": {
            "sourceLocationType": "source",
            "start": 70,
            "end": 72
          }
        },
        "object": {
          "type": "term",
          "subType": "variable",
          "value": "z",
          "loc": {
            "sourceLocationType": "source",
            "start": 73,
            "end": 75
          }
        },
        "annotations": [],
        "loc": {
          "sourceLocationType": "source",
          "start": 70,
          "end": 75
        }
      },
      {
        "type": "triple",
        "subject": {
          "type": "term",
          "subType": "variable",
          "value": "a",
          "loc": {
            "sourceLocationType": "source",
            "start": 81,
            "end": 83
          }
        },
        "predicate": {
          "type": "term",
          "subType": "variable",
          "value": "b",
          "loc": {
            "sourceLocationType": "source",
            "start": 84,
            "end": 86
          }
        },
        "object": {
          "type": "tripleCollection",
          "subType": "reifiedTriple",
          "triples": [
            {
              "type": "triple",
              "subject": {
                "type": "term",
                "subType": "variable",
                "value": "s",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 89,
                  "end": 91
                }
              },
              "predicate": {
                "type": "term",
                "subType": "variable",
                "value": "p",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 92,
                  "end": 94
                }
              },
              "object": {
                "type": "term",
                "subType": "variable",
                "value": "o",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 95,
                  "end": 97
                }
              },
              "annotations": [],
              "loc": {
                "sourceLocationType": "source",
                "start": 89,
                "end": 97
              }
            }
          ],
          "identifier": {
            "type": "term",
            "subType": "blankNode",
            "loc": {
              "sourceLocationType": "noMaterialize"
            },
            "label": "g_1"
          },
          "loc": {
            "sourceLocationType": "source",
            "start": 87,
            "end": 100
          }
        },
        "annotations": [],
        "loc": {
          "sourceLocationType": "source",
          "start": 81,
          "end": 100
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 56,
      "end": 102
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "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": 58,
                    "end": 60
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "variable",
                  "value": "p",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 61,
                    "end": 63
                  }
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "o",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 64,
                    "end": 66
                  }
                },
                "annotations": [],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 58,
                  "end": 66
                }
              }
            ],
            "identifier": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 56,
              "end": 69
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "blankNode",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "label": "g_0"
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 70,
                "end": 72
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 73,
                "end": 75
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 70,
              "end": 75
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 81,
                "end": 83
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 84,
                "end": 86
              }
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "variable",
                    "value": "s",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 89,
                      "end": 91
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 92,
                      "end": 94
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "variable",
                    "value": "o",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 95,
                      "end": 97
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 89,
                    "end": 97
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                },
                "label": "g_1"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 87,
                "end": 100
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 81,
              "end": 100
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 56,
          "end": 102
        }
      }
    ],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "solutionModifiers": {},
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nCONSTRUCT WHERE {\n   <<?s ?p ?o >> ?q ?z .\n   ?a ?b <<?s ?p ?o >> .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 104
    },
    "startOnNew": 0,
    "endOnNew": 104
  },
  "type": "query"
}
