Did M4 and M5 edit a film whose writer and cinematographer married M3 and influenced M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.cinematography ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:influence.influence_node.influenced M1 .
?x1 ns:influence.influence_node.influenced 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 M3 .
FILTER ( ?x1 != M3 ) .
M4 ns:film.editor.film ?x0 .
M5 ns:film.editor.film ?x0
}