Was M3 directed by M2 's producer , edited by M1 's star , and executive produced by a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x2 ns:film.producer.film|ns:film.production_company.films M2 .
M3 ns:film.film.directed_by ?x2 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0
}