Was a film directed by M4 's writer , directed by M2 and M3 , and written by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.directed_by M2 .
?x0 ns:film.film.directed_by M3 .
?x0 ns:film.film.written_by M1 .
?x1 ns:film.writer.film M4
}