What is the {brand} for {headquarters location} of {Barcelona}
Which brand is found in Barcelona?
Which brand is located in Barcelona?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:brand . ?o 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/Q431289> } 
 select distinct ?sbj where { ?sbj wdt:P159 wd:Q1492 . ?sbj wdt:P31 wd:Q431289 } 
America Otro Ford Castro vehicles AFA Balandrás El Fenix Edis National Pescara Huracan motorcycles Hispano-Suiza Junior vehicles Mymsa Nacional RG vehicles Ideal vehicles Kapi Actividades Industriales