What is the {working life museum} with the {MIN(lighthouse range)} whose {source of energy} is {rapeseed oil}  ?
What is the lowest lighthouse range, whose energy source is rapeseed oil, of all the working life museums?
What is the working life museum with the lowest lighthouse range whose source of energy is rapeseed oil ?
SELECT ?l WHERE { ?l rdf:type ontology:working_life_museum . ?l property:source_of_energy resource:canola . . ?l property:lighthouse_range ?y }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q10416961>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2929>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P618> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q10657384> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q10416961 . ?ent wdt:P2929 ?obj . ?ent wdt:P618 wd:Q10657384. } ORDER BY ASC(?obj)LIMIT 5 