pete melvin designed what ship?
Entity
m.05mz2z1
Cheyenne
class entity
boats.ship m.025m1y7
boats.ship boats.ship_designer
Ship Pete Melvin
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.025m1y7 } 
?x0 :boats.ship.designer ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND boats.ship (JOIN boats.ship.designer m.025m1y7))