Were M3 and M6 written by M1 's female American producer , written by M4 , and written by M5
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.nationality ns:m.09c7w0 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by M4 .
M3 ns:film.film.written_by M5 .
M6 ns:film.film.written_by ?x0 .
M6 ns:film.film.written_by M4 .
M6 ns:film.film.written_by M5
}