What is the {building} with the {MAX(cost)} ?
What is the most expensive building?
which building has the highest cost?
SELECT ?s WHERE { ?s property:cost ?n . ?s rdf:type ontology:building }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q41176>.
?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/P2130>.
?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:Q41176 . ?ent wdt:P2130 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Keihanna Open Innovation Center @KYOTO Kyoto Keizai Center City Tower MGM Cotai TELUS Garden