Were M1 , M3 , and M4 edited by a person , executive produced by M2 , and directed by a person
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x1 a ns:people.person .
M1 ns:film.film.directed_by ?x1 .
M1 ns:film.film.edited_by ?x0 .
M1 ns:film.film.executive_produced_by M2 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.executive_produced_by M2 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.executive_produced_by M2
}