What is the {ship} with the {MAX(number of masts)} ?
What ship has the most masts?
Which ship has the most masts?
SELECT ?t WHERE { ?t property:number_of_masts ?w . ?t rdf:type ontology:ship }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q11446>.
?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/P1099>.
?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:Q11446 . ?ent wdt:P1099 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Glenlee Redoutable