Was M2 directed by and written by a German writer , star , and editor of M1 's sequel
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.nationality ns:m.0345h .
?x1 ns:film.film.prequel M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by ?x0
}