Did M5 influence a cinematographer of M0 , M1 , and M2 and marry M4 's American director
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.cinematographer.film M1 .
?x0 ns:film.cinematographer.film M2 .
?x1 ns:film.director.film M4 .
?x1 ns:people.person.nationality ns:m.09c7w0 .
FILTER ( M5 != ?x1 ) .
M5 ns:influence.influence_node.influenced ?x0 .
M5 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1
}