find deceased person who belongs to the american indian group that speak pawnee language.
Entity Entity Entity
m.02rfbrt m.03clyvv m.026vmxs
Chief Yellow Horse Petalesharo Acee Blue Eagle
class class entity
people.deceased_person people.american_indian_group m.06dqgy
people.deceased_person people.american_indian_group language.human_language
Deceased Person American Indian group Pawnee 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.06dqgy } 
?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.06dqgy)))