{
  "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": 61,
                "end": 63
              }
            },
            "predicate": {
              "type": "path",
              "loc": {
                "sourceLocationType": "source",
                "start": 64,
                "end": 86
              },
              "items": [
                {
                  "type": "term",
                  "subType": "namedNode",
                  "value": "knows",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 64,
                    "end": 74
                  },
                  "prefix": "foaf"
                },
                {
                  "type": "path",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 75,
                    "end": 86
                  },
                  "items": [
                    {
                      "type": "term",
                      "subType": "namedNode",
                      "value": "knows",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 76,
                        "end": 86
                      },
                      "prefix": "foaf"
                    }
                  ],
                  "subType": "^"
                }
              ],
              "subType": "/"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 87,
                "end": 89
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 61,
              "end": 89
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 61,
          "end": 91
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "!=",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "x",
              "loc": {
                "sourceLocationType": "source",
                "start": 105,
                "end": 107
              }
            },
            {
              "type": "term",
              "subType": "variable",
              "value": "y",
              "loc": {
                "sourceLocationType": "source",
                "start": 111,
                "end": 113
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 104,
            "end": 114
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 98,
          "end": 114
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 55,
      "end": 118
    }
  },
  "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  {\n    ?x foaf:knows/^foaf:knows ?y .  \n    FILTER(?x != ?y)\n  }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 118
    },
    "startOnNew": 0,
    "endOnNew": 118
  },
  "type": "query"
}
