Was a screenwriter influenced by a German person and influenced by M3 's star and cinematographer
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 a ns:people.person .
?x1 ns:people.person.nationality ns:m.0345h .
?x2 ns:film.actor.film/ns:film.performance.film M3 .
?x2 ns:film.cinematographer.film M3
}