What is the {great power} with the {MAX(total exports)} ?
Which country has the greatest exports?
What is the great power with maximum exports?
SELECT ?c WHERE { ?c property:total_exports ?b . ?c rdf:type ontology:great_power }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q185145>.
?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/P2135>.
?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:Q185145 . ?ent wdt:P2135 ?obj } ORDER BY DESC(?obj)LIMIT 5 