question: Did M0 's art director and editor influence a screenwriter , marry M3 's writer , and influence a film producer
query: SELECT count(*) WHERE {
  ?x0 ns:film.editor.film M0 .
  ?x0 ns:film.film_art_director.films_art_directed M0 .
  ?x0 ns:influence.influence_node.influenced ?x1 .
  ?x0 ns:influence.influence_node.influenced ?x2 .
  ?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 ?x3 .
  ?x1 a ns:film.writer .
  ?x2 a ns:film.producer .
  ?x3 ns:film.writer.film M3 .
  FILTER ( ?x0 != ?x3 )
  }