who is a deceased person who belongs to the american indian group that speak nez perce language?
Entity Entity Entity Entity
m.015y0c m.0fmg20 m.02pjch7 m.03cqphz
Chief Joseph Looking Glass Old Chief Joseph Jackson Sundown
class class entity
people.deceased_person people.american_indian_group m.0868rk
people.deceased_person people.american_indian_group language.human_language
Deceased Person American Indian group Nez Perce Language
none none none
people.person.ethnicity people.ethnicity.languages_spoken
Ethnicity Languages spoken
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 :people.deceased_person . 
?x1 :type.object.type :people.american_indian_group . 
VALUES ?x2 { :m.0868rk } 
?x0 :people.person.ethnicity ?x1 . 
?x1 :people.ethnicity.languages_spoken ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND people.deceased_person (JOIN people.person.ethnicity (JOIN people.ethnicity.languages_spoken m.0868rk)))