What is the {big city} for {shares border with} of {Los Angeles}
[]
Which is the city that shares a border with LA?
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:big_city . resource:Los_Angeles property:shares_border_with ?b }
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/Q1549591> } 
 select distinct ?obj where { wd:Q65 wdt:P47 ?obj . ?obj wdt:P31 wd:Q1549591 } 
Pasadena Glendale Torrance Inglewood Long Beach Burbank