Was a actor a director , art director , and writer of M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.film_art_director.films_art_directed M1 .
?x0 ns:film.film_art_director.films_art_directed M2 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2
}