the ship designed who also designed the peter pett is who?
Entity
m.0341fb
Phineas Pett
class class entity
boats.ship_designer boats.ship m.033jrn
boats.ship_designer boats.ship boats.ship_designer
Ship Designer Ship Peter Pett
none none none
boats.ship_designer.boats_designed boats.ship.designer
Boats Designed 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_designer . 
?x1 :type.object.type :boats.ship . 
VALUES ?x2 { :m.033jrn } 
?x0 :boats.ship_designer.boats_designed ?x1 . 
?x1 :boats.ship.designer ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND boats.ship_designer (JOIN boats.ship_designer.boats_designed (JOIN boats.ship.designer m.033jrn)))