Was M1 directed by and written by M0 's star 's actor
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M0 .
M1 ns:film.film.directed_by ?x0 .
M1 ns:film.film.written_by ?x0
}