Was M0 's executive producer and writer influenced by M1 and influenced by M2 's producer
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.writer.film M0 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M2
}