Was M2 edited by M3 and M4 , edited by M5 , and written by a male person
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.edited_by M4 .
M2 ns:film.film.edited_by M5 .
M2 ns:film.film.written_by ?x0
}