Was a spouse of a actor of M1 , M2 , M3 , and M4 M0 's art director and costume designer
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
?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:film.actor.film/ns:film.performance.character M1 .
?x1 ns:film.actor.film/ns:film.performance.character M2 .
?x1 ns:film.actor.film/ns:film.performance.character M3 .
?x1 ns:film.actor.film/ns:film.performance.character M4 .
FILTER ( ?x0 != ?x1 )
}