Was M2 a film producer that a film 's producer was influenced by and M1 's producer married
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x1 a ns:film.film .
?x2 ns:film.producer.film|ns:film.production_company.films M1 .
FILTER ( M2 != ?x2 ) .
M2 a ns:film.producer .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x2
}