What is {bordered by} of {Puerto Princesa}, that has {human population} is {31232} ?
human population} is {31232}bordered by} of {Puerto Princesa
SELECT ?answer WHERE { wd:Q111739 wdt:P47 ?answer . ?answer wdt:P1082 ?x FILTER(contains(?x,'31232'))}
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q111739> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1082> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <31232> . }
human population} is {31232}bordered by} of {Puerto Princesa