Was a cinematographer of M1 , M2 , and M3 influenced by M4 's producer 's spouse and influenced by M0
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M1 .
?x0 ns:film.cinematographer.film M2 .
?x0 ns:film.cinematographer.film M3 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M0 .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x2 .
?x2 ns:film.producer.film|ns:film.production_company.films M4 .
FILTER ( ?x1 != ?x2 )
}