Was a film that a screenwriter directed , produced , and wrote M1
SELECT count(*) WHERE {
?x0 a ns:film.writer .
M1 a ns:film.film .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M1 ns:film.film.written_by ?x0
}