Were M4 and M5 written by and directed by a German executive producer of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:people.person.nationality ns:m.0345h .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by ?x0
}