Was M3 written by a American female star of a prequel of M2 and edited by M4
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:people.person.gender ns:m.02zsn .
?x0 ns:people.person.nationality ns:m.09c7w0 .
?x1 ns:film.film.sequel M2 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0
}