Were M1 and M2 distributed by a film 's writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x1 a ns:film.film .
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
}