what domesticated animal includes the breed bearded collies?
Entity
m.0bt9lr
Dog
class entity
biology.domesticated_animal m.02nscg
biology.domesticated_animal biology.animal_breed
Domesticated animal bearded collies
none none
biology.domesticated_animal.breeds
Breeds
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 :biology.domesticated_animal . 
VALUES ?x1 { :m.02nscg } 
?x0 :biology.domesticated_animal.breeds ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND biology.domesticated_animal (JOIN biology.domesticated_animal.breeds m.02nscg))