{
  "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": 57,
                "end": 59
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "mbox",
              "loc": {
                "sourceLocationType": "source",
                "start": 60,
                "end": 69
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "mailto:alice@example",
              "loc": {
                "sourceLocationType": "source",
                "start": 70,
                "end": 92
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 57,
              "end": 92
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 99,
                "end": 101
              }
            },
            "predicate": {
              "type": "path",
              "loc": {
                "sourceLocationType": "source",
                "start": 102,
                "end": 123
              },
              "items": [
                {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "knows",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 102,
                    "end": 112
                  },
                  "prefix": "foaf"
                },
                {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "knows",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 113,
                    "end": 123
                  },
                  "prefix": "foaf"
                }
              ],
              "subType": "/"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 124,
                "end": 126
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 99,
              "end": 126
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 57,
          "end": 128
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "!=",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 142,
                "end": 144
              }
            },
            {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 148,
                "end": 150
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 140,
            "end": 152
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 133,
          "end": 152
        }
      },
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 157,
                "end": 159
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 160,
                "end": 169
              },
              "prefix": "foaf"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "name",
              "loc": {
                "sourceLocationType": "source",
                "start": 170,
                "end": 175
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 157,
              "end": 175
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 157,
          "end": 175
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 55,
      "end": 180
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "wildcard",
      "loc": {
        "sourceLocationType": "source",
        "start": 51,
        "end": 52
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX foaf: <http://xmlns.com/foaf/0.1/>\n  SELECT *\n  { ?x foaf:mbox <mailto:alice@example> .\n    ?x foaf:knows/foaf:knows ?y .\n    FILTER ( ?x != ?y )\n    ?y foaf:name ?name \n  }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 180
    },
    "startOnNew": 0,
    "endOnNew": 180
  },
  "type": "query"
}
