Were M4 and M5 influenced by M0 's producer and influenced by a art director that M2 and M3 starred
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 a ns:film.film_art_director .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1 .
M5 ns:influence.influence_node.influenced_by ?x0 .
M5 ns:influence.influence_node.influenced_by ?x1
}