What is the {municipality of the Philippines} with the {MAX(electorate)} whose {located in the administrative territorial entity} is {Bohol}  ?
What Bohol city has the largest electorate?
What Philippine city with the largest electorate is in Bohol?
SELECT ?l WHERE { ?l property:located_in_the_administrative_territorial_entity resource:Bohol . ?l property:electorate ?y . ?l rdf:type ontology:municipality_of_the_Philippines }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q24764>.

?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/P1831>.
?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/P131> .
?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q13752> .

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q24764 . ?ent wdt:P1831 ?obj . ?ent wdt:P131 wd:Q13752 } ORDER BY DESC(?obj)LIMIT 5 
Ubay Talibon Carmen Talibon Tubigon