name charles greville pets.
Entity Entity
m.0t53_0h m.0t544d1
Mango Elis
class class entity
biology.owned_animal biology.animal_ownership m.01hc0p
biology.owned_animal biology.animal_ownership biology.animal_owner
Owned animal Animal ownership Charles Greville
none none none
biology.animal_ownership.animal biology.animal_ownership.owners
Animal Owners
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.owned_animal . 
?x1 :type.object.type :biology.animal_ownership . 
VALUES ?x2 { :m.01hc0p } 
?x1 :biology.animal_ownership.animal ?x0 . 
?x1 :biology.animal_ownership.owners ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND biology.owned_animal (JOIN (R biology.animal_ownership.animal) (JOIN biology.animal_ownership.owners m.01hc0p)))