Did a German writer of M4 's prequel executive produce 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:film.writer.film ?x1 .
?x0 ns:people.person.nationality ns:m.0345h .
?x1 ns:film.film.sequel M4
}