Was M2 written by M0 's country of nationality 's employee and directed by a executive producer of M1
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company ?x1 .
?x1 ^ns:people.person.nationality M0 .
?x2 ns:film.producer.films_executive_produced M1 .
M2 ns:film.film.directed_by ?x2 .
M2 ns:film.film.written_by ?x0
}