{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.org/WMterms#",
        "loc": {
          "sourceLocationType": "source",
          "start": 15,
          "end": 44
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 44
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "t",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://example.org/types#",
        "loc": {
          "sourceLocationType": "source",
          "start": 60,
          "end": 87
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 45,
        "end": 87
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 121,
                "end": 123
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "label",
              "loc": {
                "sourceLocationType": "source",
                "start": 125,
                "end": 131
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "aLabel",
              "loc": {
                "sourceLocationType": "source",
                "start": 139,
                "end": 146
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 121,
              "end": 146
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 157,
                "end": 159
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "weight",
              "loc": {
                "sourceLocationType": "source",
                "start": 161,
                "end": 168
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "aWeight",
              "loc": {
                "sourceLocationType": "source",
                "start": 175,
                "end": 183
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 157,
              "end": 183
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "a",
              "loc": {
                "sourceLocationType": "source",
                "start": 194,
                "end": 196
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "displacement",
              "loc": {
                "sourceLocationType": "source",
                "start": 198,
                "end": 211
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "aDisp",
              "loc": {
                "sourceLocationType": "source",
                "start": 212,
                "end": 218
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 194,
              "end": 218
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 230,
                "end": 232
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "label",
              "loc": {
                "sourceLocationType": "source",
                "start": 234,
                "end": 240
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "bLabel",
              "loc": {
                "sourceLocationType": "source",
                "start": 248,
                "end": 255
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 230,
              "end": 255
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 266,
                "end": 268
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "weight",
              "loc": {
                "sourceLocationType": "source",
                "start": 270,
                "end": 277
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "bWeight",
              "loc": {
                "sourceLocationType": "source",
                "start": 284,
                "end": 292
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 266,
              "end": 292
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "b",
              "loc": {
                "sourceLocationType": "source",
                "start": 303,
                "end": 305
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "displacement",
              "loc": {
                "sourceLocationType": "source",
                "start": 307,
                "end": 320
              },
              "prefix": ""
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "bDisp",
              "loc": {
                "sourceLocationType": "source",
                "start": 321,
                "end": 327
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 303,
              "end": 327
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 121,
          "end": 329
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "&&",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "sameterm",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "aWeight",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 357,
                    "end": 365
                  }
                },
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "bWeight",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 367,
                    "end": 375
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 348,
                "end": 376
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": "!",
              "args": [
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "sameterm",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "aDisp",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 390,
                        "end": 396
                      }
                    },
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "bDisp",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 398,
                        "end": 404
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 381,
                    "end": 405
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 380,
                "end": 405
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 346,
            "end": 406
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 339,
          "end": 406
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 119,
      "end": 408
    }
  },
  "solutionModifiers": {},
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "aLabel1",
      "loc": {
        "sourceLocationType": "source",
        "start": 96,
        "end": 104
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "bLabel",
      "loc": {
        "sourceLocationType": "source",
        "start": 105,
        "end": 112
      }
    }
  ],
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX  :      <http://example.org/WMterms#>\nPREFIX  t:     <http://example.org/types#>\n\nSELECT ?aLabel1 ?bLabel\nWHERE { ?a  :label        ?aLabel .\n        ?a  :weight       ?aWeight .\n        ?a  :displacement ?aDisp .\n\n        ?b  :label        ?bLabel .\n        ?b  :weight       ?bWeight .\n        ?b  :displacement ?bDisp .\n\n        FILTER ( sameTerm(?aWeight, ?bWeight) && !sameTerm(?aDisp, ?bDisp)) }\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 408
    },
    "startOnNew": 0,
    "endOnNew": 408
  },
  "type": "query"
}
