Was M1 directed by M3 , directed by a screenwriter , and edited by M2
SELECT count(*) WHERE {
?x0 a ns:film.writer .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.directed_by M3 .
M1 ns:film.film.edited_by M2
}