What is the {highly urbanized city} with the {MAX(mains voltage)} whose {country} is {Philippines}  ?
What is the name of the highly urbanized city with the lowest mains voltage whose country is the Philippines?
tell me the highly urbanized city with the lowest mains voltage whose country is philippines?
SELECT ?y WHERE { ?y rdf:type ontology:highly_urbanized_city . ?y property:country resource:Philippines . ?y property:mains_voltage ?m }
select ?ent where {
?ent <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q29946056>.

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

}
ORDER BY DESC(?obj1)
LIMIT 5
select ?ent where { ?ent wdt:P31 wd:Q29946056 . ?ent wdt:P2884 ?obj . ?ent wdt:P17 wd:Q928 } ORDER BY DESC(?obj)LIMIT 5 