question: Who was a Canadian screenwriter whose spouse was influenced by M3 , M4 , M5 , and M6 and married M7
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:film.writer .
  ?x0 a ns:people.person .
  ?x0 ns:people.person.nationality ns:m.0d060g .
  ?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 ns:influence.influence_node.influenced_by M3 .
  ?x1 ns:influence.influence_node.influenced_by M4 .
  ?x1 ns:influence.influence_node.influenced_by M5 .
  ?x1 ns:influence.influence_node.influenced_by M6 .
  ?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 M7 .
  FILTER ( ?x0 != ?x1 ) .
  FILTER ( ?x1 != M7 )
  }