Was M1 produced by M2 , directed by a film 's star , editor , and writer , and edited by M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 a ns:film.film .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.edited_by M3 .
M1 ns:film.film.produced_by|ns:film.film.production_companies M2
}