Was M2 produced by a film director whose spouse influenced M1 , distributed by M3 , and distributed by M4
SELECT count(*) WHERE {
?x0 a ns:film.director .
?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 M1 .
FILTER ( ?x0 != ?x1 ) .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}