Was M2 edited and directed by a actor that M1 was written by and starred
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by ?x0
}