{
  "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": "namedNode",
          "value": "iri",
          "loc": {
            "sourceLocationType": "source",
            "start": 69,
            "end": 73
          },
          "prefix": ""
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 56,
          "end": 76
        }
      },
      {
        "type": "triple",
        "subject": {
          "type": "term",
          "subType": "namedNode",
          "value": "iri",
          "loc": {
            "sourceLocationType": "noMaterialize"
          },
          "prefix": ""
        },
        "predicate": {
          "type": "term",
          "subType": "variable",
          "value": "q",
          "loc": {
            "sourceLocationType": "source",
            "start": 77,
            "end": 79
          }
        },
        "object": {
          "type": "term",
          "subType": "variable",
          "value": "z",
          "loc": {
            "sourceLocationType": "source",
            "start": 80,
            "end": 82
          }
        },
        "annotations": [],
        "loc": {
          "sourceLocationType": "source",
          "start": 77,
          "end": 82
        }
      },
      {
        "type": "triple",
        "subject": {
          "type": "term",
          "subType": "variable",
          "value": "a",
          "loc": {
            "sourceLocationType": "source",
            "start": 88,
            "end": 90
          }
        },
        "predicate": {
          "type": "term",
          "subType": "variable",
          "value": "b",
          "loc": {
            "sourceLocationType": "source",
            "start": 91,
            "end": 93
          }
        },
        "object": {
          "type": "tripleCollection",
          "subType": "reifiedTriple",
          "triples": [
            {
              "type": "triple",
              "subject": {
                "type": "term",
                "subType": "variable",
                "value": "s",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 96,
                  "end": 98
                }
              },
              "predicate": {
                "type": "term",
                "subType": "variable",
                "value": "p",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 99,
                  "end": 101
                }
              },
              "object": {
                "type": "term",
                "subType": "variable",
                "value": "o",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 102,
                  "end": 104
                }
              },
              "annotations": [],
              "loc": {
                "sourceLocationType": "source",
                "start": 96,
                "end": 104
              }
            }
          ],
          "identifier": {
            "type": "term",
            "subType": "blankNode",
            "loc": {
              "sourceLocationType": "source",
              "start": 107,
              "end": 114
            },
            "label": "e_bnode"
          },
          "loc": {
            "sourceLocationType": "source",
            "start": 94,
            "end": 117
          }
        },
        "annotations": [],
        "loc": {
          "sourceLocationType": "source",
          "start": 88,
          "end": 117
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 56,
      "end": 119
    }
  },
  "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": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "source",
                "start": 69,
                "end": 73
              },
              "prefix": ""
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 56,
              "end": 76
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "iri",
              "loc": {
                "sourceLocationType": "noMaterialize"
              },
              "prefix": ""
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "q",
              "loc": {
                "sourceLocationType": "source",
                "start": 77,
                "end": 79
              }
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "z",
              "loc": {
                "sourceLocationType": "source",
                "start": 80,
                "end": 82
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 77,
              "end": 82
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 88,
                "end": 90
              }
            },
            "predicate": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 91,
                "end": 93
              }
            },
            "object": {
              "type": "tripleCollection",
              "subType": "reifiedTriple",
              "triples": [
                {
                  "type": "triple",
                  "subject": {
                    "type": "term",
                    "subType": "variable",
                    "value": "s",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 96,
                      "end": 98
                    }
                  },
                  "predicate": {
                    "type": "term",
                    "subType": "variable",
                    "value": "p",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 99,
                      "end": 101
                    }
                  },
                  "object": {
                    "type": "term",
                    "subType": "variable",
                    "value": "o",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 102,
                      "end": 104
                    }
                  },
                  "annotations": [],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 96,
                    "end": 104
                  }
                }
              ],
              "identifier": {
                "type": "term",
                "subType": "blankNode",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 107,
                  "end": 114
                },
                "label": "e_bnode"
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 94,
                "end": 117
              }
            },
            "annotations": [],
            "loc": {
              "sourceLocationType": "source",
              "start": 88,
              "end": 117
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 56,
          "end": 119
        }
      }
    ],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "solutionModifiers": {},
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX : <http://example.com/ns#>\n\nCONSTRUCT WHERE {\n   <<?s ?p ?o ~ :iri >> ?q ?z .\n   ?a ?b <<?s ?p ?o ~ _:bnode >> .\n}\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 121
    },
    "startOnNew": 0,
    "endOnNew": 121
  },
  "type": "query"
}
