Did M2 produce a film whose writer and editor married , was influenced by , and influenced M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:influence.influence_node.influenced M1 .
?x1 ns:influence.influence_node.influenced_by M1 .
?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 .
FILTER ( ?x1 != M1 ) .
M2 ns:film.producer.film|ns:film.production_company.films ?x0
}