{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "foaf",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://xmlns.com/foaf/0.1/",
        "loc": {
          "sourceLocationType": "source",
          "start": 13,
          "end": 41
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 41
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 70,
                "end": 72
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 73,
                "end": 82
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 84,
                "end": 89
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 70,
              "end": 89
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 70,
          "end": 91
        }
      },
      {
        "type": "pattern",
        "subType": "optional",
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 112,
                    "end": 114
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "mbox",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 116,
                    "end": 125
                  },
                  "prefix": "foaf"
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "mbox",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 127,
                    "end": 132
                  }
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 112,
                  "end": 132
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 112,
              "end": 132
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 101,
          "end": 134
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 68,
      "end": 143
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "name",
      "loc": {
        "sourceLocationType": "source",
        "start": 49,
        "end": 54
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "mbox",
      "loc": {
        "sourceLocationType": "source",
        "start": 55,
        "end": 60
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nSELECT ?name ?mbox\nWHERE  { ?x foaf:name  ?name .\n         OPTIONAL { ?x  foaf:mbox  ?mbox }\n       }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 143
    },
    "startOnNew": 0,
    "endOnNew": 143
  },
  "type": "query"
}
