which film editor's ethnicity is included in group(s) lemko?
Entity Entity
m.0kc6 m.0bwwz5
Andy Warhol Juraj Jakubisko
class class entity
film.editor people.ethnicity m.02gkfc
film.editor people.ethnicity people.ethnicity
Film editor Ethnicity lemko
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.02gkfc } 
?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.02gkfc)))