Was M1 a film producer that M3 was edited by , a film starred , and M4 was written by
SELECT count(*) WHERE {
?x0 a ns:film.film .
M1 a ns:film.producer .
M1 ns:film.actor.film/ns:film.performance.film ?x0 .
M1 ns:film.editor.film M3 .
M1 ns:film.writer.film M4
}