What is the {dwarf planet} with the {MAX(rotation period)} ?
What is the highest rotation period of dwarf planet
which dwarf planet has the highest rotation period?
SELECT ?g WHERE { ?g rdf:type ontology:dwarf_planet . ?g property:rotation_period ?p }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q2199>.
?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/P2147>.
?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:Q2199 . ?ent wdt:P2147 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Eris Makemake Pluto Haumea