Were M4 and M5 directed by a screenwriter that M3 was edited by and edited by M1 's German editor
SELECT count(*) WHERE {
?x0 ns:film.editor.film M1 .
?x0 ns:people.person.nationality ns:m.0345h .
?x1 a ns:film.writer .
?x1 ns:film.editor.film M3 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.edited_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.edited_by ?x0
}