Did M4 employ a actor , employ a female person , and employ a screenwriter 's spouse
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 a ns:people.person .
?x1 ns:people.person.gender ns:m.02zsn .
?x2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x3 .
?x3 a ns:film.writer .
FILTER ( ?x2 != ?x3 ) .
M4 ns:business.employer.employees/ns:business.employment_tenure.person ?x0 .
M4 ns:business.employer.employees/ns:business.employment_tenure.person ?x1 .
M4 ns:business.employer.employees/ns:business.employment_tenure.person ?x2
}