sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?department WHERE { <http://ld.company.org/prod-instances/empl-Karen.Brant%40company.org> ns1:memberOf ?department . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?telephone WHERE { <http://ld.company.org/prod-instances/empl-Baldwin.Dirksen%40company.org> ns1:phone ?telephone . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?managerName WHERE { <http://ld.company.org/prod-instances/empl-Heinrich.Hoch%40company.org> ns1:hasManager ?manager . ?manager ns1:name ?managerName . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?email WHERE { <http://ld.company.org/prod-instances/empl-Sabrina.Geiger%40company.org> ns1:email ?email . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?employee ?name (COUNT(?product) AS ?sensorProducts) WHERE { ?employee ns1:areaOfExpertise <http://ld.company.org/prod-instances/prod-cat-Sensor> ; ns1:name ?name ; ns1:hasProductManager ?product . ?product ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Sensor> . } GROUP BY ?employee ?name ORDER BY DESC(?sensorProducts) LIMIT 1


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?employee WHERE { ?employee ns1:memberOf <http://ld.company.org/prod-instances/dept-41622> . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?label WHERE { <http://ld.company.org/prod-instances/dept-41622> rdfs:label ?label . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT (COUNT(?product) AS ?count) WHERE { ?product ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Switch> ; ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Sensor> . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?person ?name WHERE { ?person ns1:memberOf <http://ld.company.org/prod-instances/dept-85880> ; ns1:areaOfExpertise <http://ld.company.org/prod-instances/prod-cat-Network> . ?person ns1:name ?name . }


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?department WHERE { ?employee :areaOfExpertise <http://ld.company.org/prod-instances/prod-cat-Transducer> . ?employee :memberOf ?department . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?supplier WHERE { ?hardware ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Compensator> ; ns1:hasSupplier ?supplier . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> PREFIX dbpedia: <http://dbpedia.org/resource/> SELECT (COUNT(DISTINCT ?supplier) AS ?count) WHERE { ?supplier a ns1:Supplier ; ns1:country dbpedia:France . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?supplier WHERE { ?product ns1:hasSupplier ?supplier . ?product ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Compensator> . ?supplier ns1:addressCountry 'France' . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?supplier WHERE { ?supplier a ns1:Supplier ; ns1:addressLocality 'Toulouse' . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?oscillator ?price WHERE { ?oscillator a ns1:Hardware ; ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Oscillator> ; ns1:price ?priceResource . ?priceResource ns1:amount ?price . } ORDER BY ASC(?price) LIMIT 1


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?service ?price WHERE { ?service a :Service ; :price ?price . } ORDER BY DESC(?price) LIMIT 1


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?service ?price ?person WHERE { ?service a :Service ; :price ?priceSpec . ?priceSpec a :Price ; :amount ?price . ?service :hasProductManager ?person . } ORDER BY DESC(?price) LIMIT 1


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?coil ?width ?height WHERE { ?coil a ns1:Hardware ; ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Coil> ; ns1:width_mm ?width ; ns1:height_mm ?height }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?compatibleProduct ?label ?id WHERE { <http://ld.company.org/prod-instances/hw-U990-5234138> ns1:compatibleProduct ?compatibleProduct . ?compatibleProduct rdfs:label ?label . ?compatibleProduct ns1:id ?id . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?product WHERE { <http://ld.company.org/prod-instances/hw-U990-5234138> ns1:compatibleProduct ?product . ?product ns1:hasSupplier ?supplier . ?supplier ns1:country <http://dbpedia.org/resource/United_States> . FILTER(?product = <http://ld.company.org/prod-instances/hw-A360-3041803>) }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?potentiometer ?volume WHERE { ?potentiometer a ns1:Hardware ; ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Potentiometer> ; ns1:depth_mm ?depth ; ns1:height_mm ?height ; ns1:width_mm ?width . BIND(?depth * ?height * ?width AS ?volume) } ORDER BY ASC(?volume) LIMIT 1


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT ?coil ?weight ?depth ?height ?width WHERE { ?coil a ns1:Hardware ; ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-Coil> ; ns1:weight_g ?weight ; ns1:depth_mm ?depth ; ns1:height_mm ?height ; ns1:width_mm ?width . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?city WHERE { ?product ns1:hasCategory <http://ld.company.org/prod-instances/prod-cat-LCD> . ?product ns1:hasSupplier ?supplier . ?supplier ns1:country <http://dbpedia.org/resource/United_States> . ?supplier ns1:addressLocality ?city . }


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?name ?email ?phone
WHERE {
  ?employee a :Employee ;
            :name ?name ;
            :email ?email ;
            :phone ?phone .
  FILTER NOT EXISTS { ?otherEmployee :hasManager ?employee }
}
ORDER BY ?name


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT DISTINCT ?service
WHERE {
  ?service a :Service ;
           :eligibleFor ?product .
  ?bom :hasBomPart ?bomPart .
  ?bomPart :hasPart ?product .
  ?product :hasSupplier ?supplier .
  ?supplier :addressCountry 'Russian Federation' .
}


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?item ?price ?supplier ?supplierName ?country WHERE { ?item a :Hardware ; :price ?price ; :hasSupplier ?supplier . ?supplier :name ?supplierName ; :country ?country . } ORDER BY DESC(?price) OFFSET 5 LIMIT 5


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?department ?employeeName (COUNT(?employee) AS ?employeeCount)
WHERE {
  ?employee a :Employee ;
            :memberOf ?department ;
            :name ?employeeName .
}
GROUP BY ?department ?employeeName
HAVING (COUNT(?employee) > 5)


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?category ?lightestItem ?lightestWeight ?heaviestItem ?heaviestWeight
WHERE {
  {
    SELECT ?category ?item AS ?lightestItem (MIN(?weight) AS ?lightestWeight)
    WHERE {
      ?item a :Hardware ;
            :weight_g ?weight ;
            :hasCategory ?category .
    }
    GROUP BY ?category
  }
  {
    SELECT ?category ?item AS ?heaviestItem (MAX(?weight) AS ?heaviestWeight)
    WHERE {
      ?item a :Hardware ;
            :weight_g ?weight ;
            :hasCategory ?category .
    }
    GROUP BY ?category
  }
}
GROUP BY ?category ?lightestItem ?lightestWeight ?heaviestItem ?heaviestWeight


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?supplier (ROUND(AVG(?amount) * 100) / 100 AS ?averagePrice) WHERE { ?product :hasSupplier ?supplier . ?product :price ?price . ?price :currency 'EUR' . ?price :amount ?amount . } GROUP BY ?supplier ORDER BY ?supplier


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?department WHERE { ?department a :Department . FILTER NOT EXISTS { ?employee a :Employee ; :memberOf ?department ; :hasManager ?manager } }


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?supplierName ?addressCountry ?addressLocality ?addressText ?addressCountryCode WHERE { ?supplier a :Supplier . OPTIONAL { ?supplier :addressCountry ?addressCountry } . OPTIONAL { ?supplier :addressLocality ?addressLocality } . OPTIONAL { ?supplier :addressText ?addressText } . OPTIONAL { ?supplier :addressCountryCode ?addressCountryCode } . OPTIONAL { ?supplier :name ?supplierName } }


sparql:
PREFIX prod: <http://ld.company.org/prod-vocab/>
SELECT ?product ?property ?value
WHERE {
  ?product a prod:Product ;
           ?property ?value
}


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?agent ?category WHERE { ?agent :areaOfExpertise ?category . VALUES ?category { <http://ld.company.org/prod-instances/prod-cat-Compensator> <http://ld.company.org/prod-instances/prod-cat-Crystal> <http://ld.company.org/prod-instances/prod-cat-LCD> }


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT (MAX(?partCount) AS ?maxPartCount)
WHERE {
  ?bom a :BillOfMaterial ;
       :hasBomPart ?bomPart .
  {
    SELECT ?bom (COUNT(?bomPart) AS ?partCount)
    WHERE {
      ?bom :hasBomPart ?bomPart .
    }
    GROUP BY ?bom
  }
}


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT DISTINCT ?employee ?name ?email ?phone ?department ?directReport
WHERE {
  ?employee a :Employee ;
            :name ?name ;
            :email ?email ;
            :phone ?phone ;
            :memberOf ?department .
  OPTIONAL { ?employee :hasDirectReport ?directReport }
}


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?item ?width ?height ?depth WHERE { ?item a :Hardware ; :width_mm ?width ; :height_mm ?height ; :depth_mm ?depth . FILTER(?width > ?height && ?depth < 50) }


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT DISTINCT ?item ?manager
WHERE {
  ?item a :Hardware ;
        :hasProductManager ?manager
}


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?manager ?managerDepartment ((COUNT(?sameDeptReport) * 100 / COUNT(?directReport)) AS ?percentage)
WHERE {
  ?manager a :Manager ;
          :memberOf ?managerDepartment .
  ?directReport :hasManager ?manager .
  OPTIONAL {
    ?directReport :memberOf ?managerDepartment .
    BIND(?directReport AS ?sameDeptReport)
  }
}
GROUP BY ?manager ?managerDepartment
ORDER BY ?manager


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?bom (AVG(?amount) AS ?averageCost)
WHERE {
  ?bom a :BillOfMaterial ;
       :hasBomPart ?bomPart .
  ?bomPart :hasPart ?product .
  ?product a :Hardware ;
           :price ?price .
  ?price :amount ?amount .
}
GROUP BY ?bom
ORDER BY DESC(?averageCost)
LIMIT 1


sparql: PREFIX prod: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?productA ?productB WHERE { ?productA prod:compatibleProduct ?productB . ?productB prod:compatibleProduct ?productA . FILTER(?productA != ?productB) }


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?item ?id ?name ?width WHERE { ?item a :Hardware ; :width_mm ?width ; :id ?id ; :name ?name . } ORDER BY DESC(?width) LIMIT 100


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT ?supplier ?index WHERE { ?inductor :hasCategory :prod-cat-Inductor ; :reliabilityIndex ?index ; :hasSupplier ?supplier . } ORDER BY DESC(?index) LIMIT 1


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?supplier (AVG(?reliabilityIndex) AS ?averageReliability)
WHERE {
  ?product a :Hardware ;
          :hasSupplier ?supplier ;
          :reliabilityIndex ?reliabilityIndex.
}
GROUP BY ?supplier
ORDER BY DESC(?averageReliability)
LIMIT 5


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> PREFIX ns2: <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?country WHERE { <http://ld.company.org/prod-instances/bom-17> ns1:hasBomPart ?bomPart . ?bomPart ns1:hasPart ?hardwarePart . ?hardwarePart ns1:hasSupplier ?supplier . ?supplier ns1:addressCountry ?country . }


sparql: PREFIX : <http://ld.company.org/prod-vocab/> SELECT DISTINCT ?bom WHERE { ?bom :hasBomPart ?part . ?part :hasSupplier ?supplier . }


sparql: PREFIX ns1: <http://ld.company.org/prod-vocab/> SELECT (COUNT(DISTINCT ?supplier) AS ?numSuppliers) WHERE { <http://ld.company.org/prod-instances/hw-K367-1320550> ns1:compatibleProduct ?compatibleProduct . ?compatibleProduct ns1:hasSupplier ?supplier . }


sparql:
PREFIX : <http://ld.company.org/prod-vocab/>
SELECT ?department (COUNT(?product) AS ?productCount)
WHERE {
  ?department a :Department ;
              :responsibleFor ?product .
}
GROUP BY ?department
ORDER BY DESC(?productCount)
LIMIT 1