Were M1 and M2 distributed by a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
M1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0
}