What is the {federation} with the {MAX(median income)} ?
What building was named the highest after the Chrysler Building?
What federation has the highest median income?
SELECT ?g WHERE { ?g rdf:type ontology:federation . ?g property:median_income ?w }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q43702>.
?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/P3529>.
?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:Q43702 . ?ent wdt:P3529 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Australia United States of America Germany