Was a cinematographer that married , was influenced by , and influenced M1 M2 's star
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?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 M1 .
FILTER ( ?x0 != M1 )
}