What is the {neighborhood} for {shares border with} of {Los Angeles}
Which neighborhoods share a border with Los Angeles?
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:neighborhood . resource:Los_Angeles property:shares_border_with ?r }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q65> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q123705> } 
 select distinct ?obj where { wd:Q65 wdt:P47 ?obj . ?obj wdt:P31 wd:Q123705 } 
San Pedro