Were M3 and M4 distributed by a film producer and distributed by a distributor of M0 and M1
SELECT count(*) WHERE {
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M0 .
?x0 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
?x1 a ns:film.producer .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x1 .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x1
}