Was a film directed by a actor and written by M1 's cinematographer , writer , and costume designer
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x1 a ns:film.actor .
?x2 ns:film.cinematographer.film M1 .
?x2 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x2 ns:film.writer.film M1
}