who is the film editor whose ethnicity is included in the group māori people?
Entity Entity
m.01ckhj m.0js9s
Sam Neill Peter Jackson
class class entity
film.editor people.ethnicity m.05748
film.editor people.ethnicity people.ethnicity
Film editor Ethnicity Māori people
none none none
people.ethnicity.people people.ethnicity.included_in_group
People of this ethnicity Included in group(s)
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 :film.editor . 
?x1 :type.object.type :people.ethnicity . 
VALUES ?x2 { :m.05748 } 
?x1 :people.ethnicity.people ?x0 . 
?x2 :people.ethnicity.included_in_group ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND film.editor (JOIN (R people.ethnicity.people) (JOIN (R people.ethnicity.included_in_group) m.05748)))