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