# BSBM Explore Query 1: Find products for a given set of generic features. 
#
# Use Case Motivation: A consumer is looking for a product and has a general idea about what he wants.
#
#    touches subsumption hierarchy on product types.
#    touches a large amount of data.
#    uses ORDER BY and LIMIT.

PREFIX bsbm-inst: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/>
PREFIX bsbm: <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/vocabulary/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

SELECT DISTINCT ?product ?label
WHERE {
    ?product rdfs:label ?label .
    ?product a <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductType5> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature164> .
    ?product bsbm:productFeature <http://www4.wiwiss.fu-berlin.de/bizer/bsbm/v01/instances/ProductFeature35> .
    ?product bsbm:productPropertyNumeric1 ?value1 .
        FILTER (?value1 > 491)
        }
ORDER BY ?label
LIMIT 10
