ships were built in germany by which ship builder?
Entity Entity
m.0g41h m.0b5y3q8
Blohm + Voss Godeffroy-Zeit
class class entity
boats.ship_builder boats.ship m.03hrz
boats.ship_builder boats.ship location.de_city
Ship Builder Ship germany
none none none
boats.ship_builder.ships_built boats.ship.place_built
Ships built Place built
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 :boats.ship_builder . 
?x1 :type.object.type :boats.ship . 
VALUES ?x2 { :m.03hrz } 
?x0 :boats.ship_builder.ships_built ?x1 . 
?x1 :boats.ship.place_built ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND boats.ship_builder (JOIN boats.ship_builder.ships_built (JOIN boats.ship.place_built m.03hrz)))