Was a film edited by , directed by , and written by a film producer that M2 influenced and married
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.producer .
?x1 ns:influence.influence_node.influenced_by M2 .
?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 M2 .
FILTER ( ?x1 != M2 )
}