{
  "context": [
    {
      "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": 13,
          "end": 73
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 0,
        "end": 73
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "xsd",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://www.w3.org/2001/XMLSchema#",
        "loc": {
          "sourceLocationType": "source",
          "start": 86,
          "end": 121
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 74,
        "end": 121
      }
    },
    {
      "type": "contextDef",
      "subType": "prefix",
      "key": "dc",
      "value": {
        "type": "term",
        "subType": "namedNode",
        "value": "http://purl.org/dc/elements/1.1/",
        "loc": {
          "sourceLocationType": "source",
          "start": 134,
          "end": 168
        }
      },
      "loc": {
        "sourceLocationType": "source",
        "start": 123,
        "end": 168
      }
    }
  ],
  "subType": "select",
  "where": {
    "type": "pattern",
    "subType": "group",
    "patterns": [
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 209,
                "end": 215
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "product",
              "loc": {
                "sourceLocationType": "source",
                "start": 216,
                "end": 228
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer5/Product186",
              "loc": {
                "sourceLocationType": "source",
                "start": 229,
                "end": 316
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 209,
              "end": 316
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 320,
                "end": 326
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "vendor",
              "loc": {
                "sourceLocationType": "source",
                "start": 327,
                "end": 338
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "vendor",
              "loc": {
                "sourceLocationType": "source",
                "start": 339,
                "end": 346
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 320,
              "end": 346
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 353,
                "end": 359
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "publisher",
              "loc": {
                "sourceLocationType": "source",
                "start": 360,
                "end": 372
              },
              "prefix": "dc"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "vendor",
              "loc": {
                "sourceLocationType": "source",
                "start": 373,
                "end": 380
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 353,
              "end": 380
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "vendor",
              "loc": {
                "sourceLocationType": "source",
                "start": 384,
                "end": 391
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "country",
              "loc": {
                "sourceLocationType": "source",
                "start": 392,
                "end": 404
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "namedNode",
              "value": "http://downlode.org/rdf/iso-3166/countries#US",
              "loc": {
                "sourceLocationType": "source",
                "start": 405,
                "end": 452
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 384,
              "end": 452
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 456,
                "end": 462
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "deliveryDays",
              "loc": {
                "sourceLocationType": "source",
                "start": 463,
                "end": 480
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "deliveryDays",
              "loc": {
                "sourceLocationType": "source",
                "start": 481,
                "end": 494
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 456,
              "end": 494
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 209,
          "end": 496
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": "<=",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "deliveryDays",
              "loc": {
                "sourceLocationType": "source",
                "start": 506,
                "end": 519
              }
            },
            {
              "type": "term",
              "subType": "literal",
              "value": "3",
              "langOrIri": {
                "type": "term",
                "subType": "namedNode",
                "value": "http://www.w3.org/2001/XMLSchema#integer",
                "loc": {
                  "sourceLocationType": "noMaterialize"
                }
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 523,
                "end": 524
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 505,
            "end": 525
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 498,
          "end": 525
        }
      },
      {
        "type": "pattern",
        "subType": "bgp",
        "triples": [
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 527,
                "end": 533
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "price",
              "loc": {
                "sourceLocationType": "source",
                "start": 534,
                "end": 544
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "price",
              "loc": {
                "sourceLocationType": "source",
                "start": 545,
                "end": 551
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 527,
              "end": 551
            }
          },
          {
            "type": "triple",
            "subject": {
              "type": "term",
              "subType": "variable",
              "value": "offer",
              "loc": {
                "sourceLocationType": "source",
                "start": 558,
                "end": 564
              }
            },
            "predicate": {
              "type": "term",
              "subType": "namedNode",
              "value": "validTo",
              "loc": {
                "sourceLocationType": "source",
                "start": 565,
                "end": 577
              },
              "prefix": "bsbm"
            },
            "object": {
              "type": "term",
              "subType": "variable",
              "value": "date",
              "loc": {
                "sourceLocationType": "source",
                "start": 578,
                "end": 583
              }
            },
            "loc": {
              "sourceLocationType": "source",
              "start": 558,
              "end": 583
            }
          }
        ],
        "loc": {
          "sourceLocationType": "source",
          "start": 527,
          "end": 585
        }
      },
      {
        "type": "pattern",
        "subType": "filter",
        "expression": {
          "type": "expression",
          "subType": "operation",
          "operator": ">",
          "args": [
            {
              "type": "term",
              "subType": "variable",
              "value": "date",
              "loc": {
                "sourceLocationType": "source",
                "start": 598,
                "end": 603
              }
            },
            {
              "type": "term",
              "subType": "literal",
              "value": "2008-06-20T00:00:00",
              "langOrIri": {
                "type": "term",
                "subType": "namedNode",
                "value": "http://www.w3.org/2001/XMLSchema#dateTime",
                "loc": {
                  "sourceLocationType": "source",
                  "start": 629,
                  "end": 672
                }
              },
              "loc": {
                "sourceLocationType": "source",
                "start": 606,
                "end": 672
              }
            }
          ],
          "loc": {
            "sourceLocationType": "source",
            "start": 597,
            "end": 674
          }
        },
        "loc": {
          "sourceLocationType": "source",
          "start": 590,
          "end": 674
        }
      }
    ],
    "loc": {
      "sourceLocationType": "source",
      "start": 206,
      "end": 676
    }
  },
  "solutionModifiers": {
    "limitOffset": {
      "type": "solutionModifier",
      "subType": "limitOffset",
      "limit": 10,
      "loc": {
        "sourceLocationType": "source",
        "start": 710,
        "end": 718
      }
    },
    "order": {
      "type": "solutionModifier",
      "subType": "order",
      "orderDefs": [
        {
          "expression": {
            "type": "expression",
            "subType": "functionCall",
            "function": {
              "type": "term",
              "subType": "namedNode",
              "value": "double",
              "loc": {
                "sourceLocationType": "source",
                "start": 686,
                "end": 696
              },
              "prefix": "xsd"
            },
            "args": [
              {
                "type": "expression",
                "subType": "operation",
                "operator": "str",
                "args": [
                  {
                    "type": "term",
                    "subType": "variable",
                    "value": "price",
                    "loc": {
                      "sourceLocationType": "source",
                      "start": 701,
                      "end": 707
                    }
                  }
                ],
                "loc": {
                  "sourceLocationType": "source",
                  "start": 697,
                  "end": 708
                }
              }
            ],
            "distinct": false,
            "loc": {
              "sourceLocationType": "source",
              "start": 686,
              "end": 709
            }
          },
          "descending": false,
          "loc": {
            "sourceLocationType": "source",
            "start": 686,
            "end": 709
          }
        }
      ],
      "loc": {
        "sourceLocationType": "source",
        "start": 677,
        "end": 709
      }
    }
  },
  "datasets": {
    "type": "datasetClauses",
    "clauses": [],
    "loc": {
      "sourceLocationType": "noMaterialize"
    }
  },
  "variables": [
    {
      "type": "term",
      "subType": "variable",
      "value": "offer",
      "loc": {
        "sourceLocationType": "source",
        "start": 186,
        "end": 192
      }
    },
    {
      "type": "term",
      "subType": "variable",
      "value": "price",
      "loc": {
        "sourceLocationType": "source",
        "start": 193,
        "end": 199
      }
    }
  ],
  "distinct": true,
  "loc": {
    "sourceLocationType": "inlinedSource",
    "newSource": "PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>\nPREFIX xsd: <http://www.w3.org/2001/XMLSchema#> \nPREFIX dc: <http://purl.org/dc/elements/1.1/>\n\nSELECT DISTINCT ?offer ?price\nWHERE {\n\t?offer bsbm:product <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/dataFromProducer5/Product186> .\n\t?offer bsbm:vendor ?vendor .\n    ?offer dc:publisher ?vendor .\n\t?vendor bsbm:country <http://downlode.org/rdf/iso-3166/countries#US> .\n\t?offer bsbm:deliveryDays ?deliveryDays .\n\tFILTER (?deliveryDays <= 3)\n\t?offer bsbm:price ?price .\n    ?offer bsbm:validTo ?date .\n    FILTER (?date > \"2008-06-20T00:00:00\"^^<http://www.w3.org/2001/XMLSchema#dateTime> )\n}\nORDER BY xsd:double(str(?price))\nLIMIT 10\n",
    "start": 0,
    "end": 9007199254740991,
    "loc": {
      "sourceLocationType": "source",
      "start": 0,
      "end": 718
    },
    "startOnNew": 0,
    "endOnNew": 718
  },
  "type": "query"
}
