Were M3 and M5 written by M4 and directed by M2 's American female cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M2 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.nationality ns:m.09c7w0 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.written_by M4 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by M4
}