Was M3 written by M1 's female actor and written by M0 's cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x1 ns:film.actor.film/ns:film.performance.character M1 .
?x1 ns:people.person.gender ns:m.02zsn .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1
}