question: Did a cinematographer influence M2 's actor , influence M1 's spouse , and influence M3 's writer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.cinematographer .
  ?x0 ns:influence.influence_node.influenced ?x1 .
  ?x0 ns:influence.influence_node.influenced ?x2 .
  ?x0 ns:influence.influence_node.influenced ?x3 .
  ?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 M1 .
  ?x2 ns:film.actor.film/ns:film.performance.character M2 .
  ?x3 ns:film.writer.film M3 .
  FILTER ( ?x1 != M1 )
  }