Were M3 and M5 distributed by M4 and produced by a film director that influenced M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}