what are the ships in the class nassau-class battleship.
Entity Entity Entity
m.09ndx3 m.026vkg9 m.026vkq7
SMS Nassau SMS Posen SMS Westfalen
class entity
boats.ship m.02pp69p
boats.ship boats.ship_class
Ship Nassau-class battleship
none none
boats.ship.ship_class
Ship Class
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.02pp69p } 
?x0 :boats.ship.ship_class ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND boats.ship (JOIN boats.ship.ship_class m.02pp69p))