What is {source location of group/organisation} of {Megadeth}, that has {border} is {Pasadena} ?
What is the source region of the team Megadeth, that has a border to Pasadena?
What is the source location of the group Megadeth, that has a border to Pasadena?
SELECT ?h WHERE { ?h property:shares_border_with resource:Pasadena . resource:Megadeth property:location_of_formation ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83431> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P740>. ?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/P47> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q485176> . }
SELECT ?answer WHERE { wd:Q83431 wdt:P740 ?answer . ?answer wdt:P47 wd:Q485176}
Los Angeles