Was a actor of M0 's star and writer M1
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.writer.film M0 .
M1 ns:film.actor.film/ns:film.performance.character ?x0
}