Were M2 and M3 produced by a production company that distributed M1
SELECT count(*) WHERE {
?x0 a ns:film.production_company .
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}