Were M3 and M5 produced by a German person that M2 was produced by and directed by M4
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
?x0 ns:people.person.nationality ns:m.0345h .
M3 ns:film.film.directed_by M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}