{
  "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": 77,
                "end": 79
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 80,
                "end": 89
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 91,
                "end": 96
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 77,
              "end": 96
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 77,
          "end": 98
        }
      },
      {
        "type": "pattern",
        "subType": "optional",
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 119,
                    "end": 121
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "mbox",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 122,
                    "end": 131
                  },
                  "prefix": "foaf"
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "mbox",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 132,
                    "end": 137
                  }
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 119,
                  "end": 137
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 119,
              "end": 137
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 108,
          "end": 139
        }
      },
      {
        "type": "pattern",
        "subType": "optional",
        "patterns": [
          {
            "type": "pattern",
            "subType": "bgp",
            "triples": [
              {
                "type": "triple",
                "subject": {
                  "type": "term",
                  "subType": "variable",
                  "value": "x",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 162,
                    "end": 164
                  }
                },
                "predicate": {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "homepage",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 165,
                    "end": 178
                  },
                  "prefix": "foaf"
                },
                "object": {
                  "type": "term",
                  "subType": "variable",
                  "value": "hpage",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 179,
                    "end": 185
                  }
                },
                "loc": {
                  "sourceLocationType": "source",
                  "start": 162,
                  "end": 185
                }
              }
            ],
            "loc": {
              "sourceLocationType": "source",
              "start": 162,
              "end": 185
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 151,
          "end": 187
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 75,
      "end": 196
    }
  },
  "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
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "hpage",
      "loc": {
        "sourceLocationType": "source",
        "start": 61,
        "end": 67
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\nSELECT ?name ?mbox ?hpage\nWHERE  { ?x foaf:name  ?name .\n         OPTIONAL { ?x foaf:mbox ?mbox } .\n         OPTIONAL { ?x foaf:homepage ?hpage }\n       }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 196
    },
    "startOnNew": 0,
    "endOnNew": 196
  },
  "type": "query"
}
