Was M4 produced by a French actor and produced by M2 's female writer
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:people.person.nationality ns:m.0f8l9c .
?x1 ns:film.writer.film M2 .
?x1 ns:people.person.gender ns:m.02zsn .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}