{
  "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": 68,
                "end": 70
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "mbox",
              "loc": {
                "sourceLocationType": "source",
                "start": 72,
                "end": 81
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "mailto:alice@example",
              "loc": {
                "sourceLocationType": "source",
                "start": 82,
                "end": 104
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 68,
              "end": 104
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 111,
                "end": 113
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "knows",
              "loc": {
                "sourceLocationType": "source",
                "start": 115,
                "end": 125
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "a1",
              "loc": {
                "sourceLocationType": "source",
                "start": 126,
                "end": 129
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 111,
              "end": 129
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a1",
              "loc": {
                "sourceLocationType": "source",
                "start": 136,
                "end": 139
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "knows",
              "loc": {
                "sourceLocationType": "source",
                "start": 140,
                "end": 150
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "a2",
              "loc": {
                "sourceLocationType": "source",
                "start": 151,
                "end": 154
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 136,
              "end": 154
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a2",
              "loc": {
                "sourceLocationType": "source",
                "start": 161,
                "end": 164
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 165,
                "end": 174
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 175,
                "end": 180
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 161,
              "end": 180
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 68,
          "end": 182
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 62,
      "end": 186
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "x",
      "loc": {
        "sourceLocationType": "source",
        "start": 51,
        "end": 53
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "name",
      "loc": {
        "sourceLocationType": "source",
        "start": 54,
        "end": 59
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\n  SELECT ?x ?name\n  {\n    ?x  foaf:mbox <mailto:alice@example> .\n    ?x  foaf:knows ?a1 .\n    ?a1 foaf:knows ?a2 .\n    ?a2 foaf:name ?name .\n  }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 186
    },
    "startOnNew": 0,
    "endOnNew": 186
  },
  "type": "query"
}
