the company of galloway uses which manufacturing plant?
Entity Entity
m.04yjp8m m.04yjzzw
The Arrol-Johnston Factory, Heathhall Tongland Factory
class entity
automotive.manufacturing_plant m.03d1pdl
automotive.manufacturing_plant automotive.company
Manufacturing Plant Galloway
none none
automotive.manufacturing_plant.company
Company
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :automotive.manufacturing_plant . 
VALUES ?x1 { :m.03d1pdl } 
?x0 :automotive.manufacturing_plant.company ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND automotive.manufacturing_plant (JOIN automotive.manufacturing_plant.company m.03d1pdl))