Did M5 influence a female employee of M0 , M1 , and M2 and marry a character 's actor
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M2 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 ns:film.actor.film/ns:film.performance.character ?x2 .
?x2 a ns:fictional_universe.fictional_character .
FILTER ( M5 != ?x1 ) .
M5 ns:influence.influence_node.influenced ?x0 .
M5 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
}