Did M1 produce a film and distribute M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
M1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M2 .
M1 ns:film.producer.film|ns:film.production_company.films ?x0
}