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