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