Were M2 and M5 produced by M3 and M4 and executive produced by a German director of M1
SELECT count(*) WHERE {
?x0 ns:film.director.film M1 .
?x0 ns:people.person.nationality ns:m.0345h .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4
}