Was M0 written by M1 , produced by M3 , written by M2 , and directed by M4
SELECT count(*) WHERE {
M0 ns:film.film.directed_by M4 .
M0 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M0 ns:film.film.written_by M1 .
M0 ns:film.film.written_by M2
}