What is the {republic} with the {MAX(total fertility rate)} whose {instance of} is {country}  ?
What republic as the highest fertility rate?
Name the republic with the highest fertility rate ?
SELECT ?v WHERE { ?v rdf:type ontology:country . ?v property:total_fertility_rate ?a . ?v rdf:type ontology:republic }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q7270>.

?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P4841>.
?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj1.

?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?ent .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q6256> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q7270 . ?ent wdt:P4841 ?obj . ?ent wdt:P31 wd:Q6256 } ORDER BY DESC(?obj)LIMIT 5 
Niger Somalia Uganda Mozambique Zambia