What is the {science museum} with the {MIN(visitors per year)} whose {instance of} is {natural history museum}  ?
What is the museum of science with the lowest visitors per year whose example is the museum of natural history?
What is the science museum with the lowest visitors per year whose instance of is natural history museum?
SELECT ?s WHERE { ?s property:visitors_per_year ?g . ?s rdf:type ontology:science_museum . ?s rdf:type ontology:natural_history_museum }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q588140>.

?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/P1174>.
?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/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1970365> .

}
ORDER BY ASC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q588140 . ?ent wdt:P1174 ?obj . ?ent wdt:P31 wd:Q1970365} ORDER BY ASC(?obj)LIMIT 5 
Natural History Museum of Geneva Natural History Museum of Geneva Natural History Museum of Geneva Natural History Museum of Geneva Natural History Museum of Geneva