Did a writer of M0 influence a producer and star of M1
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:influence.influence_node.influenced ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1
}