Did M1 and M2 direct and write a film
SELECT count(*) WHERE {
?x0 a ns:film.film .
M1 ns:film.director.film ?x0 .
M1 ns:film.writer.film ?x0 .
M2 ns:film.director.film ?x0 .
M2 ns:film.writer.film ?x0
}