What is the {automobile manufacturer} for {headquarters location} of {Barcelona}
[]
Which car manufacturer is located in Barcelona?
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:automobile_manufacturer . ?s property:headquarters_location resource:Barcelona }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P159> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1492> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q786820> } 
 select distinct ?sbj where { ?sbj wdt:P159 wd:Q1492 . ?sbj wdt:P31 wd:Q786820 } 
Balandrás National Pescara La Cuadra Abadal M.A. Nacional Sitjes vehicles Siata Española S.A. Actividades Industriales