Was M1 a German person that M3 was influenced by and a cinematographer 's spouse was influenced by
SELECT count(*) WHERE {
?x0 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 .
?x1 a ns:film.cinematographer .
FILTER ( ?x0 != ?x1 ) .
M1 a ns:people.person .
M1 ns:influence.influence_node.influenced ?x0 .
M1 ns:influence.influence_node.influenced M3 .
M1 ns:people.person.nationality ns:m.0345h
}