Was a star of a film whose star married M3 , M4 , and M5 a Mexican film director
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:people.person.nationality ns:m.0b90_r .
?x1 a ns:film.film .
?x1 ns:film.film.starring/ns:film.performance.actor ?x2 .
?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 M3 .
?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 M4 .
?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 M5 .
FILTER ( ?x2 != M3 ) .
FILTER ( ?x2 != M4 ) .
FILTER ( ?x2 != M5 )
}