phineas pett ii designed what ship?
Entity Entity Entity Entity
m.03hfzfz m.03hnz7v m.09w5cy m.03h1m91
HMS Britannia HMS Anne HMY Fubbs English ship James
class entity
boats.ship m.0gxb9q0
boats.ship boats.ship_designer
Ship Phineas Pett II
none none
boats.ship.designer
Designer
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 . 
VALUES ?x1 { :m.0gxb9q0 } 
?x0 :boats.ship.designer ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND boats.ship (JOIN boats.ship.designer m.0gxb9q0))