What is the {state of Australia} with the {MAX(age of consent)} ?
In what country is the age of consent the highest?
WHICH COUNTRY HAS THE HIGHEST AGE OF CONSENT?
SELECT ?a WHERE { ?a property:age_of_consent ?m . ?a rdf:type ontology:state_of_Australia }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q5852411>.
?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/P2999>.
?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:Q5852411 . ?ent wdt:P2999 ?obj } ORDER BY DESC(?obj)LIMIT 5 
Queensland Tasmania South Australia Western Australia New South Wales