which organism classification in zoo exhibit has species of american black bear?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.01dx8 m.086tj m.01zh5 m.02mdrb m.04d24t m.0633h m.01dxs m.025sk_9 m.018zt6 m.099rg3 m.04f73nc m.01x_3p m.02qcb7
Bald eagle Wolverine Capybara Guanaco Spectacled bear Polar bear Brown bear Greater rhea Chilean flamingo Black-tailed prairie dog South American coati Giant anteater Sun bear
class class entity
biology.organism_classification zoos.zoo_exhibit m.0dglm
biology.organism_classification zoos.zoo_exhibit biology.animal
Organism Classification Zoo Exhibit American black bear
none none none
zoos.zoo_exhibit.species zoos.zoo_exhibit.species
Species Species
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.organism_classification . 
?x1 :type.object.type :zoos.zoo_exhibit . 
VALUES ?x2 { :m.0dglm } 
?x1 :zoos.zoo_exhibit.species ?x0 . 
?x1 :zoos.zoo_exhibit.species ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND biology.organism_classification (JOIN (R zoos.zoo_exhibit.species) (JOIN zoos.zoo_exhibit.species m.0dglm)))