Did M0 's male writer direct and write a film
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 a ns:film.film
}