{
  "context": [
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "rdfs",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/2000/01/rdf-schema#",
        "loc": {
          "sourceLocationType": "source",
          "start": 13,
          "end": 52
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 52
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "rdf",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
        "loc": {
          "sourceLocationType": "source",
          "start": 65,
          "end": 110
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 53,
        "end": 110
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "bsbm",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/",
        "loc": {
          "sourceLocationType": "source",
          "start": 124,
          "end": 184
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 111,
        "end": 184
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 235,
                "end": 243
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "label",
              "loc": {
                "sourceLocationType": "source",
                "start": 244,
                "end": 254
              },
              "prefix": "rdfs"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "productLabel",
              "loc": {
                "sourceLocationType": "source",
                "start": 255,
                "end": 268
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 235,
              "end": 268
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 235,
          "end": 270
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "!=",
          "args": [
            {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28",
              "loc": {
                "sourceLocationType": "source",
                "start": 283,
                "end": 369
              }
            },
            {
              "type": "term",
              "subType": "variable",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 373,
                "end": 381
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 282,
            "end": 382
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 275,
          "end": 382
        }
      },
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28",
              "loc": {
                "sourceLocationType": "source",
                "start": 384,
                "end": 470
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productFeature",
              "loc": {
                "sourceLocationType": "source",
                "start": 471,
                "end": 490
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "prodFeature",
              "loc": {
                "sourceLocationType": "source",
                "start": 491,
                "end": 503
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 384,
              "end": 503
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 507,
                "end": 515
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productFeature",
              "loc": {
                "sourceLocationType": "source",
                "start": 516,
                "end": 535
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "prodFeature",
              "loc": {
                "sourceLocationType": "source",
                "start": 536,
                "end": 548
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 507,
              "end": 548
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28",
              "loc": {
                "sourceLocationType": "source",
                "start": 552,
                "end": 638
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productPropertyNumeric1",
              "loc": {
                "sourceLocationType": "source",
                "start": 639,
                "end": 667
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "origProperty1",
              "loc": {
                "sourceLocationType": "source",
                "start": 668,
                "end": 682
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 552,
              "end": 682
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 686,
                "end": 694
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productPropertyNumeric1",
              "loc": {
                "sourceLocationType": "source",
                "start": 695,
                "end": 723
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "simProperty1",
              "loc": {
                "sourceLocationType": "source",
                "start": 724,
                "end": 737
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 686,
              "end": 737
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 384,
          "end": 739
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "&&",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "<",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "simProperty1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 749,
                    "end": 762
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "+",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "origProperty1",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 766,
                        "end": 780
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "120",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 783,
                        "end": 786
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 765,
                    "end": 787
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 749,
                "end": 787
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": ">",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "simProperty1",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 791,
                    "end": 804
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "-",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "origProperty1",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 808,
                        "end": 822
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "120",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 825,
                        "end": 828
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 807,
                    "end": 829
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 791,
                "end": 829
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 748,
            "end": 830
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 741,
          "end": 830
        }
      },
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28",
              "loc": {
                "sourceLocationType": "source",
                "start": 832,
                "end": 918
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productPropertyNumeric2",
              "loc": {
                "sourceLocationType": "source",
                "start": 919,
                "end": 947
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "origProperty2",
              "loc": {
                "sourceLocationType": "source",
                "start": 948,
                "end": 962
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 832,
              "end": 962
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 966,
                "end": 974
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "productPropertyNumeric2",
              "loc": {
                "sourceLocationType": "source",
                "start": 975,
                "end": 1003
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "simProperty2",
              "loc": {
                "sourceLocationType": "source",
                "start": 1004,
                "end": 1017
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 966,
              "end": 1017
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 832,
          "end": 1019
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "&&",
          "args": [
            {
              "type": "expression",
              "subType": "operation",
              "operator": "<",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "simProperty2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 1029,
                    "end": 1042
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "+",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "origProperty2",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 1046,
                        "end": 1060
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "170",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 1063,
                        "end": 1066
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 1045,
                    "end": 1067
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 1029,
                "end": 1067
              }
            },
            {
              "type": "expression",
              "subType": "operation",
              "operator": ">",
              "args": [
                {
                  "type": "term",
                  "subType": "variable",
                  "value": "simProperty2",
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 1071,
                    "end": 1084
                  }
                },
                {
                  "type": "expression",
                  "subType": "operation",
                  "operator": "-",
                  "args": [
                    {
                      "type": "term",
                      "subType": "variable",
                      "value": "origProperty2",
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 1088,
                        "end": 1102
                      }
                    },
                    {
                      "type": "term",
                      "subType": "literal",
                      "value": "170",
                      "langOrIri": {
                        "type": "term",
                        "subType": "namedNode",
                        "value": "http://www.w3.org/2001/XMLSchema#integer",
                        "loc": {
                          "sourceLocationType": "noMaterialize"
                        }
                      },
                      "loc": {
                        "sourceLocationType": "source",
                        "start": 1105,
                        "end": 1108
                      }
                    }
                  ],
                  "loc": {
                    "sourceLocationType": "source",
                    "start": 1087,
                    "end": 1109
                  }
                }
              ],
              "loc": {
                "sourceLocationType": "source",
                "start": 1071,
                "end": 1109
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 1028,
            "end": 1110
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 1021,
          "end": 1110
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 231,
      "end": 1112
    }
  },
  "solutionModifiers": {
    "limitOffset": {
      "type": "solutionModifier",
      "subType": "limitOffset",
      "limit": 5,
      "loc": {
        "sourceLocationType": "source",
        "start": 1136,
        "end": 1143
      }
    },
    "order": {
      "type": "solutionModifier",
      "subType": "order",
      "orderDefs": [
        {
          "expression": {
            "type": "term",
            "subType": "variable",
            "value": "productLabel",
            "loc": {
              "sourceLocationType": "source",
              "start": 1122,
              "end": 1135
            }
          },
          "descending": false,
          "loc": {
            "sourceLocationType": "source",
            "start": 1122,
            "end": 1135
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 1113,
        "end": 1135
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "product",
      "loc": {
        "sourceLocationType": "source",
        "start": 202,
        "end": 210
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "productLabel",
      "loc": {
        "sourceLocationType": "source",
        "start": 211,
        "end": 224
      }
    }
  ],
  "distinct": true,
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\nPREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\nPREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>\n\nSELECT DISTINCT ?product ?productLabel\nWHERE { \n\t?product rdfs:label ?productLabel .\n    FILTER (<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28> != ?product)\n\t<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28> bsbm:productFeature ?prodFeature .\n\t?product bsbm:productFeature ?prodFeature .\n\t<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28> bsbm:productPropertyNumeric1 ?origProperty1 .\n\t?product bsbm:productPropertyNumeric1 ?simProperty1 .\n\tFILTER (?simProperty1 < (?origProperty1 + 120) && ?simProperty1 > (?origProperty1 - 120))\n\t<http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer1/Product28> bsbm:productPropertyNumeric2 ?origProperty2 .\n\t?product bsbm:productPropertyNumeric2 ?simProperty2 .\n\tFILTER (?simProperty2 < (?origProperty2 + 170) && ?simProperty2 > (?origProperty2 - 170))\n}\nORDER BY ?productLabel\nLIMIT 5\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 1143
    },
    "startOnNew": 0,
    "endOnNew": 1143
  },
  "type": "query"
}
