What is the {science museum} with the {MAX(visitors per year)} ?
What science museum has the most visitors every year?
WHICH IS THE SCIENCE MUSEUM WITH THE MAXIMUM VISITORS PER YEAR
SELECT ?c WHERE { ?c rdf:type ontology:science_museum . ?c property:visitors_per_year ?i }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q588140>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1174>.
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .}
ORDER BY DESC(?obj)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q588140 . ?ent wdt:P1174 ?obj } ORDER BY DESC(?obj)LIMIT 5 
National Museum of Natural Science Science Museum CosmoCaixa Barcelona National Science and Technology Museum Museu de les Ciències Príncipe Felipe