Were M2 and M5 written by a American person , edited by M3 , and directed by M4
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.nationality ns:m.09c7w0 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.edited_by M3 .
M5 ns:film.film.written_by ?x0
}