Was M3 directed by M2 's writer , producer , and director and executive produced by a American star of M1
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:people.person.nationality ns:m.09c7w0 .
?x1 ns:film.director.film M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.writer.film M2 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0
}